-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
24 lines (17 loc) · 1.54 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
build:
go build
v6.7.0:
@sed -i '16c #cgo linux LDFLAGS: -fPIC -L. -L$${SRCDIR}/api/v6.7.0_20230209_api_traderapi_se_linux64 -Wl,-rpath=$${SRCDIR}/api/v6.7.0_20230209_api_traderapi_se_linux64 -lthostmduserapi_se -lthosttraderapi_se -lstdc++' libctp.go
@sed -i '17c #cgo linux CPPFLAGS: -fPIC -I. -I$${SRCDIR}/api/v6.7.0_20230209_api_traderapi_se_linux64' libctp.go
v6.6.9:
@sed -i '16c #cgo linux LDFLAGS: -fPIC -L. -L$${SRCDIR}/api/v6.6.9_20220914_api_tradeapi_se_linux64 -Wl,-rpath=$${SRCDIR}/api/v6.6.9_20220914_api_tradeapi_se_linux64 -lthostmduserapi_se -lthosttraderapi_se -lstdc++' libctp.go
@sed -i '17c #cgo linux CPPFLAGS: -fPIC -I. -I$${SRCDIR}/api/v6.6.9_20220914_api_tradeapi_se_linux64' libctp.go
v6.6.7:
@sed -i '16c #cgo linux LDFLAGS: -fPIC -L. -L$${SRCDIR}/api/v6.6.7_20220613_api_tradeapi_linux64 -Wl,-rpath=$${SRCDIR}/api/v6.6.7_20220613_api_tradeapi_linux64 -lthostmduserapi_se -lthosttraderapi_se -lstdc++' libctp.go
@sed -i '17c #cgo linux CPPFLAGS: -fPIC -I. -I$${SRCDIR}/api/v6.6.7_20220613_api_tradeapi_linux64' libctp.go
v6.6.1_P1:
@sed -i '16c #cgo linux LDFLAGS: -fPIC -L. -L$${SRCDIR}/api/v6.6.1_P1_20210406_api_tradeapi_se_linux64 -Wl,-rpath=$${SRCDIR}/api/v6.6.1_P1_20210406_api_tradeapi_se_linux64 -lthostmduserapi_se -lthosttraderapi_se -lstdc++' libctp.go
@sed -i '17c #cgo linux CPPFLAGS: -fPIC -I. -I/$${SRCDIR}/api/v6.6.1_P1_20210406_api_tradeapi_se_linux64/' libctp.go
example:
go build -linkshared sample/market/goctp_md_example.go
go build -linkshared sample/trader/goctp_trader_example.go