-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
41 lines (29 loc) · 1.34 KB
/
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
38
39
40
41
OBJS = Dispatcher.o jsoncpp.o RoundRobinDistributor.o StreamDistributor.o
CXX = g++
CXXFLAGS = -Wall -std=c++11 -g -O3
CFLAGS = -Wall -g -O3
LDLIBS = -lpthread
INCLUDEPATHS = ./jsoncpp
all: start_dispatcher hyrise_mock query_hyrise dict_test simple_dispatcher hyrise_mock2
simple_dispatcher: http.o simple_dispatcher.c
cc http.o dict.o simple_dispatcher.c -o simple_dispatcher $(CFLAGS) $(LDLIBS)
start_dispatcher : $(OBJS) http.o main.cpp
$(CXX) main.cpp $(OBJS) dict.o http.o -o start_dispatcher $(CXXFLAGS) $(LDLIBS)
hyrise_mock : http.o hyrise_mock.c
cc http.o dict.o hyrise_mock.c -o hyrise_mock $(CFLAGS) $(LDLIBS)
hyrise_mock2 : http.o hyrise_mock2.c
cc http.o dict.o hyrise_mock2.c -o hyrise_mock2 $(CFLAGS) $(LDLIBS)
query_hyrise : http.o query_hyrise.o
cc -D_GNU_SOURCE http.o dict.o query_hyrise.o -o query_hyrise $(CFLAGS) $(LDLIBS) -pg
query_hyrise.o: query_hyrise.c http.h
cc -D_GNU_SOURCE -c query_hyrise.c $(CFLAGS) -pg
http.o: http.h http.c dict.o
cc -D_GNU_SOURCE -c http.c $(CFLAGS) -pg
dict.o: dict.h dict.c
cc -D_GNU_SOURCE -c dict.c $(CFLAGS) -pg
dict_test: dict.o dict_test.c
cc dict.o dict_test.c -o dict_test $(CFLAGS) $(LDLIBS)
jsoncpp.o : jsoncpp/jsoncpp.cpp jsoncpp/json.h
$(CXX) -c jsoncpp/jsoncpp.cpp $(CXXFLAGS) -I $(INCLUDEPATHS)
clean:
rm *.o start_dispatcher hyrise_mock query_hyrise dict_test simple_dispatcher