-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 837 Bytes
/
Makefile
File metadata and controls
24 lines (16 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Note: to make a plugin compatible with a binary built in debug mode, add `-gcflags='all=-N -l'`
PLUGIN_OS ?= linux
PLUGIN_ARCH ?= amd64
plugin_postgres: bin/$(PLUGIN_OS)$(PLUGIN_ARCH)/postgres.so
bin/$(PLUGIN_OS)$(PLUGIN_ARCH)/postgres.so: pkg/plugins/glauth-postgres/postgres.go
GOOS=$(PLUGIN_OS) GOARCH=$(PLUGIN_ARCH) go build ${TRIM_FLAGS} -ldflags "${BUILD_VARS}" -buildmode=plugin -o $@ $^
plugin_postgres_linux_amd64:
PLUGIN_OS=linux PLUGIN_ARCH=amd64 make plugin_postgres
plugin_postgres_linux_arm64:
PLUGIN_OS=linux PLUGIN_ARCH=arm64 make plugin_postgres
plugin_postgres_darwin_amd64:
PLUGIN_OS=darwin PLUGIN_ARCH=amd64 make plugin_postgres
plugin_postgres_darwin_arm64:
PLUGIN_OS=darwin PLUGIN_ARCH=arm64 make plugin_postgres
release-glauth-postgres:
@P=postgres M=pkg/plugins/glauth-postgres make releaseplugin