Skip to content

Commit

Permalink
clkmgr: update CLKMGR_CXXFLAGS to include CLKMGR_PUB_DIR.
Browse files Browse the repository at this point in the history
This update resolves issues related to missing header files during utest.

utest result:
$ make utest_clkmgr_client
[CC] clkmgr/utest/subscription.cpp
[CC] clkmgr/utest/client_state.cpp
[LD] clkmgr/utest/utest_client
[UTEST C++]
[==========] Running 2 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 1 test from SubscriptionTest
[ RUN      ] SubscriptionTest.MacroMajor
[       OK ] SubscriptionTest.MacroMajor (0 ms)
[----------] 1 test from SubscriptionTest (0 ms total)

[----------] 1 test from ClientStateTest
[ RUN      ] ClientStateTest.ApiTest
[       OK ] ClientStateTest.ApiTest (0 ms)
[----------] 1 test from ClientStateTest (0 ms total)

[----------] Global test environment tear-down
[==========] 2 tests from 2 test cases ran. (0 ms total)
[  PASSED  ] 2 tests.

Signed-off-by: Song Yoong Siang <[email protected]>
  • Loading branch information
yoongsiang2 committed Nov 7, 2024
1 parent b234aed commit 6da0291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clkmgr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CLKMGR_GEN_CPP=$(Q_GEN)$(M4) -I $(CLKMGR_COMMON_DIR) -D lang=cpp $< > $@
CLKMGR_GEN_C=$(Q_GEN)$(M4) -I $(CLKMGR_COMMON_DIR) -D lang=c $< > $@

CLKMGR_LDLIBS:=$(foreach lib,pthread rt rtpi,-l$(lib))
CLKMGR_CXXFLAGS:=-I$(CLKMGR_DIR)
CLKMGR_CXXFLAGS:=-I$(CLKMGR_DIR) -I$(CLKMGR_PUB_DIR)

CLKMGR_COMMON_SRCS:=$(wildcard $(CLKMGR_COMMON_DIR)/*.cpp)
CLKMGR_COMMON_LOBJS:=$(CLKMGR_COMMON_SRCS:.cpp=.lo)
Expand Down

0 comments on commit 6da0291

Please sign in to comment.