Skip to content

Commit

Permalink
Update kgc in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-zs committed Nov 30, 2024
1 parent c8e42d8 commit 665b6e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ generate-version-and-build:
@$(MAKE) agentd
@$(MAKE) acd
@$(MAKE) serverd
@$(MAKE) kgc
@$(MAKE) agentsdk
@$(MAKE) devicesdk
@$(MAKE) plugins
Expand All @@ -63,6 +64,14 @@ serverd:
mkdir -p ./release/nhp-server/etc
cp ./server/main/etc/*.toml ./release/nhp-server/etc/

kgc:
@echo "$(COLOUR_BLUE)[KGC] Building KGC module... $(END_COLOUR)"
mkdir -p ./release/kgc/etc
@cd kgc/main && go build -trimpath -ldflags ${LD_FLAGS} -v -o ../../release/kgc/kgc ./main.go
cp ./kgc/main/etc/*.toml ./release/kgc/etc/ 2>/dev/null || true
@echo "$(COLOUR_GREEN)[KGC] Build completed!$(END_COLOUR)"


agentsdk:
ifeq ($(OS_NAME), linux)
go build -a -trimpath -buildmode=c-shared -ldflags ${LD_FLAGS} -v -o ./release/nhp-agent/nhp-agent.so ./agent/main/main.go ./agent/main/export.go
Expand Down

0 comments on commit 665b6e4

Please sign in to comment.