File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ COLOUR_BLUE=\033[0;34m
28
28
END_COLOUR =\033[0m
29
29
30
30
# Plugins
31
- NHP_PLUGINS = server/plugins
31
+ NHP_PLUGINS = server/plugins
32
32
33
33
generate-version-and-build :
34
34
@echo " $( COLOUR_BLUE) [OpenNHP] Start building... $( END_COLOUR) "
@@ -42,6 +42,7 @@ generate-version-and-build:
42
42
@$(MAKE ) serverd
43
43
@$(MAKE ) agentsdk
44
44
@$(MAKE ) devicesdk
45
+ @$(MAKE ) kgc
45
46
@$(MAKE ) plugins
46
47
@$(MAKE ) archive
47
48
@echo " $( COLOUR_GREEN) [OpenNHP] Build for platform ${OS_NAME} successfully done!$( END_COLOUR) "
@@ -75,6 +76,15 @@ ifeq ($(OS_NAME), linux)
75
76
# gcc ./core/sdkdemo/nhp-device-demo.c -I ./release/nhp-device -I ./core/main -l:nhpdevice.so -L./release/nhp-device -Wl,-rpath=. -o ./release/nhp-device/nhp-device-demo
76
77
endif
77
78
79
+ # kgc module build rules
80
+ kgc :
81
+ @echo " $( COLOUR_BLUE) [KGC] Building KGC module... $( END_COLOUR) "
82
+ mkdir -p ./release/kgc/etc
83
+ @cd kgc/main && go build -trimpath -ldflags ${LD_FLAGS} -v -o ../../release/kgc/kgc ./main.go
84
+ cp ./kgc/main/etc/* .toml ./release/kgc/etc/ 2> /dev/null || true
85
+ @echo " $( COLOUR_GREEN) [KGC] Build completed!$( END_COLOUR) "
86
+
87
+
78
88
plugins :
79
89
@if test -d $(NHP_PLUGINS ) ; then $(MAKE ) -C $(NHP_PLUGINS ) ; fi
80
90
You can’t perform that action at this time.
0 commit comments