PROGRAM = example_log OBJ = example_log.o log.o HEADER = -I./3rdparty/log.c/src OUT = CC = gcc CFLAGS = -O2 -g -Wall $(HEADER) LFLAGS = LIBS = all: $(PROGRAM) $(PROGRAM): $(OBJ) $(CC) $(CFLAGS) -o $@ $(OBJ) log.o: $(CC) $(CFLAGS) -c -DLOG_USE_COLOR -o $@ ./3rdparty/log.c/src/log.c clean: rm -f $(OBJ) $(PROGRAM)