Originally Posted by
MasteAceVentura
The problem is that I have to make a makefile that compiles for typeA or typeB but not both.
Okay, so make those two targets. It's not going to build both unless you make it happen.
A further complication is that I can have typeB compiled for either N (a variable in code ) = 10 or = 56 (This controls the number of decimal places the code works into ).
In your code, you will need to initialize this variable N like so:
Code:
#ifndef N_INITIAL_VALUE
#define N_INITIAL_VALUE 10
#endif
int N = N_INITIAL_VALUE;
Then in your makefile you must add -DN_INITIAL_VALUE=10 or -DN_INITIAL_VALUE=56 to the CFLAGS.