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 @ 2014-05-25 15:31  jvava  阅读(140)  评论(0编辑  收藏  举报