-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
37 lines (25 loc) · 831 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
29
30
31
32
33
34
35
36
37
CXX = g++
CXXFLAGS = -O0 -g3 -Wall -fmessage-length=0
LINK = $(CXX)
TARGET = bin/slothjson
OBJS = bin/main.o \
bin/perf_test.o \
bin/sample_test.o \
bin/slothjson.o
INCS = -I include/rapidjson \
-I include
DEPS = include/rapidjson/rapidjson.h
$(TARGET): $(OBJS)
$(LINK) -o $(TARGET) $(OBJS)
bin/main.o: $(DEPS) src/main.cpp
$(CXX) -c $(CXXFLAGS) $(INCS) -o bin/main.o src/main.cpp
bin/perf_test.o: $(DEPS) src/perf_test.cpp
$(CXX) -c $(CXXFLAGS) $(INCS) -o bin/perf_test.o src/perf_test.cpp
bin/sample_test.o: $(DEPS) src/sample_test.cpp
$(CXX) -c $(CXXFLAGS) $(INCS) -o bin/sample_test.o src/sample_test.cpp
SLOTHJSON_CPP = include/slothjson.cpp
bin/slothjson.o: $(DEPS) $(SLOTHJSON_CPP)
$(CXX) -c $(CXXFLAGS) $(INCS) -o bin/slothjson.o $(SLOTHJSON_CPP)
all: $(TARGET)
clean:
rm -f $(OBJS) $(TARGET)