BUILD := debug cflags.debug := -Wall -o0 -g -DDEBUG=1 cflags.release := -os -s CFLAGS := ${cflags.${BUILD}} LIBS := -lcups CFLAGS += -L/usr/local/lib CFLAGS += -I/usr/local/include FILES := cgi.c http_parser.c test: main ./main.${BUILD} main: clean $(CC) $(CFLAGS) -o $@.${BUILD} $(FILES) main.c $(LIBS) clean: rm -f ./main.${BUILD} # %: # $(CC) $(CFLAGS) -o $@ $(FILES) main.c $(LIBS)