@@ -16,6 +16,8 @@ PROGRAMMER = -c arduino -P $(TTY) -b 115200
1616# Directory path ####################################################################
1717OS_DIR = $(TOP ) /submodules/ChibiOS/
1818ARDUINO_MAKEFILE_DIR = $(TOP ) /submodules/Arduino-Makefile
19+ CXXTEST_DIR = $(TOP ) /submodules/cxxtest
20+ GTEST_DIR = $(TOP ) /submodules/googletest
1921UTILS_DIR = $(TOP ) /common/utils/
2022MKFILES_DIR = $(TOP ) /common/makefiles/
2123
@@ -100,6 +102,9 @@ TEST_CFLAGS += -DDEBUG=1 -g -O0
100102endif
101103
102104# # help menu #########################################################################
105+ GCC_COLOR =\033[1;34m
106+ SRC_COLOR =\033[1;35m
107+ NO_COLOR =\033[0;0m
103108define helpMenu
104109--------------------------------------------------------------------------------------
105110Configurable Variable names (* means required)
@@ -112,31 +117,35 @@ Device DEVICE uController chip $(DEVICE)
112117Project CPP_PROJECT is C++ project? $(CPP_PROJECT )
113118 WITH_OS uses ChibiOS? $(WITH_OS )
114119 UTILS_SUPPORT utils such as i2c, debug, etc. $(UTILS_SUPPORT )
115- UTILS_DIR path to utils source code $(UTILS_DIR )
120+ UTILS_DIR path to utils source code $(UTILS_DIR )
116121 FLOAT_SUPPORT support float printf/scanf $(FLOAT_SUPPORT )
117122 IDE_SUPPORT support ide lib (setup, loop)? $(IDE_SUPPORT )
118123 DEBUG add -DDEBUG=1 to cflags $(DEBUG )
119- OPTIMIZE enable optimization? $(OPTIMIZE )
124+ OPTIMIZE enable optimization? $(OPTIMIZE )
120125 PROJECT_NAME name of project $(PROJECT_NAME )
121126
122- Compiler CFLAGS add to cflag of avr gcc $(CFLAGS )
123- CPPFLAGS add to c++ flags of avr g++ $(CPPFLAGS )
124- *INCLUDES list of directories to include $(INCLUDES )
125- *SOURCES all .c and .cpp files $(SOURCES )
127+ Compiler CFLAGS add to cflag of avr gcc $(GCC_COLOR )$(CFLAGS )$(NO_COLOR )
128+ CPPFLAGS add to c++ flags of avr g++ $(GCC_COLOR )$(CPPFLAGS )$(NO_COLOR )
129+ *INCLUDES list of directories to include $(SRC_COLOR )$(INCLUDES )$(NO_COLOR )
130+
131+ *SOURCES all .c and .cpp files $(SRC_COLOR )$(SOURCES )$(NO_COLOR )
126132
127133SW Unittest UNITTEST_SUPPORT cxx test support $(UNITTEST_SUPPORT )
128134 GTEST_SUPPORT Google test support $(GTEST_SUPPORT )
129- TEST_SOURCES files to be tested $(TEST_SOURCES )
135+ TEST_SOURCES files to be tested $(SRC_COLOR )$( TEST_SOURCES )$( NO_COLOR )
130136 (required if UNITTEST_SUPPORT is enabled)
131- TEST_HEADERS list of .h files for cxxtest $(TEST_HEADERS )
137+ TEST_HEADERS list of .h files for cxxtest $(SRC_COLOR )$( TEST_HEADERS )$( NO_COLOR )
132138 usually inside proj/test/
133139 TEST_DEBUG add -DDEBUG flag to unittest? $(TEST_DEBUG )
134140 TEST_CC g++ of unit test $(TEST_CC )
135- TEST_CFLAGS cflags of unit test $(TEST_CFLAGS )
141+ TEST_CFLAGS cflags of unit test $(GCC_COLOR )$( TEST_CFLAGS )$( NO_COLOR )
136142--------------------------------------------------------------------------------------
137143endef
138144export helpMenu
145+ export GCC_COLOR
146+ export NO_COLOR
147+ export SRC_COLOR
139148help :
140149 @$(TOP ) /project_manager.sh -t ' Skeleton help menu:'
141- @echo " $$ helpMenu"
150+ @echo -e " $$ helpMenu"
142151
0 commit comments