1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
CC ?= cc CFLAGS=-std=c99 -W -Wall -pedantic -O2 -Iinclude OBJS=fhp.o test.o APP=./fhp-test all: $(OBJS) $(CC) -o $(APP) $(OBJS) test: all $(APP) %.o: %.c include/fhp/fhp.h $(CC) -c $(CFLAGS) $< clean: rm -f $(APP) $(OBJS)