-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
28 lines (22 loc) · 1013 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CXX = g++ -std=c++11
CXXFLAGS = -Wall -Werror
LDFLAGS = -lboost_system
SRC_DIR = ./src:./src/lazurite_core
BUILD_DIR = ./tmp
BIN_DIR = ./bin
vpath %.cpp $(SRC_DIR)
.PHONY : clean
default : $(BIN_DIR)/lazurite
$(BIN_DIR)/lazurite : $(BUILD_DIR)/main.o \
$(BUILD_DIR)/http_listen.o \
$(BUILD_DIR)/http_server.o \
$(BUILD_DIR)/http_session.o \
$(BUILD_DIR)/http_response.o \
$(BUILD_DIR)/http_request.o \
$(BUILD_DIR)/http_route.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
$(BUILD_DIR)/%.o : %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $^
clean :
-rm -rf $(BUILD_DIR)/*
-rm -rf $(BIN_DIR)/*