|
@@ -29,7 +29,7 @@ SETGO_ENV = \
|
|
|
DATE := $(shell date +%Y%m%d_%H%M%S)
|
|
DATE := $(shell date +%Y%m%d_%H%M%S)
|
|
|
|
|
|
|
|
# 编译的目标
|
|
# 编译的目标
|
|
|
-all : camera_test.out hk_takephoto.out dh_takephoto.out air720u_4g.out rtu_linux_modules.out yfkj_sshd.out yfkj_ssh_client.out yfkj_ssh_client.exe
|
|
|
|
|
|
|
+all : camera_test.out hk_takephoto.out dh_takephoto.out air720u_4g.out rtu_linux_modules.out yfkj_sshd.out yfkj_ssh_client.out yfkj_ssh_client.exe yfkj_timesync.out
|
|
|
|
|
|
|
|
# 通用基础库
|
|
# 通用基础库
|
|
|
libswapi.a :
|
|
libswapi.a :
|
|
@@ -142,6 +142,12 @@ yfkj_ssh_client.exe : ./sshd/client/client.go
|
|
|
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 $(GO_BUILD) $(GO_FLAGS) -o $@ ./sshd/client/*.go
|
|
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 $(GO_BUILD) $(GO_FLAGS) -o $@ ./sshd/client/*.go
|
|
|
@cp $@ ./build/$(basename $@)_$(DATE)$(suffix $@)
|
|
@cp $@ ./build/$(basename $@)_$(DATE)$(suffix $@)
|
|
|
|
|
|
|
|
|
|
+yfkj_timesync.out : libswapi.a libair530z.a ./tools/timesync/main.go
|
|
|
|
|
+ mkdir -p ./build
|
|
|
|
|
+ $(GO) mod tidy
|
|
|
|
|
+ $(SETGO_ENV) CGO_LDFLAGS="$(LIB6)" $(GO_BUILD) $(GO_FLAGS) -o $@ ./tools/timesync/main.go
|
|
|
|
|
+ @cp $@ ./build/$(basename $@)_$(DATE)$(suffix $@)
|
|
|
|
|
+
|
|
|
# 综合应用测试程序
|
|
# 综合应用测试程序
|
|
|
LIBS := -Wl,-Bstatic -L./swapi -lswapi -L./hk_takephoto -lhk_takephoto -L./dh_takephoto -ldh_takephoto -L./air720u -lair720u -L./air530z -lair530z -L./ec200u -lec200u
|
|
LIBS := -Wl,-Bstatic -L./swapi -lswapi -L./hk_takephoto -lhk_takephoto -L./dh_takephoto -ldh_takephoto -L./air720u -lair720u -L./air530z -lair530z -L./ec200u -lec200u
|
|
|
ifeq ($(target),armv7hf)
|
|
ifeq ($(target),armv7hf)
|