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 $@
Compilers normally use the -D flags
eg
test.o: test.cpp
$(CC) $(CFLAGS) -DTEST1 test.cpp -o $@