title: Multiple Conditional compilation Macros with C
body: <p>I'm trying to set up a makefile that compiles multiple segments of a rather lagrge program. In order to do so I want a Makefile to be able to pass MULTIPLE debug flags at once So I can test multiple different sets of functions together. </p>
  
  <p>So in my Makefile :</p>
  
  <pre><code>debug:
      gcc -Wall -O -o my_malloc main.c -D experimental leak  &lt;-- SECOND FLAG
      ./my_malloc 
  </code></pre>
  
  <p>And in my C code I want to do  :</p>
  
  <pre><code>    #ifdef experimental
          printf("MALLOC PROGRAM IN DEBUGGING MODE\n");
      #endif
      //executing both conditionals at once in one line. 
      #ifdef leak
      puts("TESTING LEAK DETECTION");
      #endif
  </code></pre>