--- branches/mmeineke/madProps/Makefile 2002/07/19 01:37:38 38 +++ trunk/madProps/Makefile 2002/07/19 01:44:34 41 @@ -1,13 +1,14 @@ bin = $(HOME)/bin +INC = ./headers CC = gcc C_FLAGS = -O3 #C_FLAGS = -g MP_OBJ = madProps.o frameCount.o -MP_HEADERS = frameCount.h +MP_HEADERS = $(INC)/frameCount.h -%.o:%.c %.h - $(CC) $(C_FLAGS) -c $*.c +%.o:%.c $(INC)/%.h + $(CC) $(C_FLAGS) -c -I$(INC) $*.c all: $(bin)/madProps @@ -15,7 +16,7 @@ madProps.o: madProps.c $(MP_HEADERS) $(CC) $(C_FLAGS) -o $@ $(MP_OBJ) -lm madProps.o: madProps.c $(MP_HEADERS) - $(CC) $(C_FLAGS) -c madProps.c + $(CC) $(C_FLAGS) -c -I$(INC) madProps.c clean: rm *~; rm *.o; rm $(bin)/madProps