how to enable #ifdef macro in the command line of make?

Compilers normally use the -D flags

eg


Code:
test.o: test.cpp
     $(CC) $(CFLAGS) -DTEST1 test.cpp -o $@
posted @   jvava  阅读(142)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示