CC = gcc CPP = foo OBJ= src/main.o mongoose/mongoose.o OUT = main CFLAGS = CXXFLAGS = -std=c++11 -Imongoose LDFLAGS = -lleveldb -lboost_regex all: build build: $(OBJ) $(CC) $(CPPFLAGS) $(OBJ) -o $(OUT) $(LDFLAGS) clean: rm -rf $(OUT) $(OBJ)