mirror of
https://github.com/glauth/glauth.git
synced 2026-10-25 05:30:47 +00:00
cbb84b8641
* Mac M1 Support * Augmented root DSS and schema discovery based on content of schema directory * LDAP workaround where req. attribute gets injected in response now works with combined filters * SubSchema query can return a minimal set, freeipa or openldap's schemas
26 lines
901 B
Makefile
26 lines
901 B
Makefile
#####################
|
|
# Plugins Targets
|
|
#####################
|
|
|
|
# Note: to make a plugin compatible with a binary built in debug mode, add `-gcflags='all=-N -l'`
|
|
|
|
PLUGIN_OS ?= linux
|
|
PLUGIN_ARCH ?= amd64
|
|
|
|
plugins: plugin_mysql plugin_postgres plugin_sqlite
|
|
|
|
plugin_mysql: bin/mysql.so
|
|
|
|
bin/mysql.so: pkg/plugins/mysql.go pkg/plugins/basesqlhandler.go
|
|
GOOS=$(PLUGIN_OS) GOARCH=$(PLUGIN_ARCH) go build ${TRIM_FLAGS} -ldflags "${BUILD_VARS}" -buildmode=plugin -o $@ $^
|
|
|
|
plugin_postgres: bin/postgres.so
|
|
|
|
bin/postgres.so: pkg/plugins/postgres.go pkg/plugins/basesqlhandler.go
|
|
GOOS=$(PLUGIN_OS) GOARCH=$(PLUGIN_ARCH) go build ${TRIM_FLAGS} -ldflags "${BUILD_VARS}" -buildmode=plugin -o $@ $^
|
|
|
|
plugin_sqlite: bin/sqlite.so
|
|
|
|
bin/sqlite.so: pkg/plugins/sqlite.go pkg/plugins/basesqlhandler.go
|
|
GOOS=$(PLUGIN_OS) GOARCH=$(PLUGIN_ARCH) go build ${TRIM_FLAGS} -ldflags "${BUILD_VARS}" -buildmode=plugin -o $@ $^
|