BUILD := debug cflags.debug := -Wall -o0 -g -DDEBUG=1 cflags.release := -os -s CFLAGS := ${cflags.${BUILD}} LIBS := -lcups test: main ./main main: clean clean: rm -f ./main %: $(CC) $(CFLAGS) -o $@ cgi.c main.c $(LIBS)