mirror of
https://github.com/glauth/glauth.git
synced 2026-10-26 14:09:33 +00:00
1b92cfbae6
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de> Co-authored-by: Zhou Wenzong <wenzong@users.noreply.github.com> Co-authored-by: Jairo Llopis <Yajo@users.noreply.github.com> Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz> Co-authored-by: Nicolai Willems <172633+nwillems@users.noreply.github.com> Co-authored-by: Thibault Soubiran <soubi.thibault@gmail.com> Co-authored-by: Clement JACOB <clems71@gmail.com> Co-authored-by: Lutz Horn <code@lhorn.de> Co-authored-by: Márk Sági-Kazár <sagikazarmark@users.noreply.github.com> Co-authored-by: Peter Heise <pheise@koprolalie.com> Co-authored-by: Ben Yanke <ben@benyanke.com> Co-authored-by: Chris F Ravenscroft <chris@voilaweb.com> Co-authored-by: fanlix <fanlix@gmail.com>
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 $@ $^
|