I have created a (very simple) makefile:
DEBUG = -DDEBUG
main: main.c add.c
   gcc $(DEBUG) main.c add.c -o main -lm
What I want (and don't understand how to do), is to create the makefile so that if the user prints make debug, the code will compile with the debug option, but when printing only make, the debug will be left out. What is the best way to do this? 
 
     
     
     
    