Hello,
I am trying to compile two programs using the same header
file and definitions. I need help on the makefile part to make this work.
================================
My headerfile looks like this:
#ifdef ONE
void hello(int s);
#else
int pin;
int verification(char* name);
#endif
=============================
My makefile
SRCONE = hello.c input.c
OBJONE = hello.o input.o
SRCTWO = name.c account.c
OBJTWO = name.o account.o
INCLUDEPATH = ../include/
CFLAGS += -I$(INCLUDEPATH)
all: one two
one: $(OBJONE)
two: $(OBJTWO)
===============================
How can I include the flag -DONE in my makefile so that
it includes void hello(int s); for "one" and
int pin;
int verification(char* name);
for "two"