-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (27 loc) · 1.64 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PROJECT := plugins
BIN_PATH := $(CURDIR)/bin/
OS := $(if $(GOOS),$(GOOS),linux)
ARCH := $(if $(GOARCH),$(GOARCH),amd64)
RUN_PATH := ./
PARENT_PATH := ../
EXTENSION :=
ifeq ($(shell go env GOOS), windows)
RUN_PATH :=
PARENT_PATH := ..\\
EXTENSION := .exe
endif
build-plugins:
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/excel.so ./excel/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/word.so ./word/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/gob-stream.so ./gob-stream/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/sonic-json.so ./sonic-json/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/go-json.so ./go-json/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/mysql.so ./mysql/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/xid.so ./xid/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/snowflake.so ./snowflake/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/redis.so ./redis/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/local-fs.so ./local-fs/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/pgsql.so ./pgsql/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/dameng.so ./dameng/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/mxtong-sms.so ./mxtong-sms/main.go
go build -ldflags="-s -w" -buildmode=plugin -o=../../test/bin/plugins/chrome2pdf.so ./chrome2pdf/main.go