-
Notifications
You must be signed in to change notification settings - Fork 36
/
alt-makefile
37 lines (26 loc) · 1.27 KB
/
alt-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
MEMORY_STYLE := ./protobufs-default
CXX := g++
CXXFLAGS := -DHAVE_CONFIG_H -std=c++11 -pthread -pedantic -Wall -Wextra -Weffc++ -Werror -fno-default-inline -g -O2
INCLUDES := -I./protobufs-default -I./udt
LIBS := -ljemalloc -lm -pthread -lprotobuf -lpthread -ljemalloc
#$(MEMORY_STYLE)/libremyprotos.a
OBJECTS := protobufs-default/dna.pb.o random.o memory.o memoryrange.o rat.o whisker.o whiskertree.o udp-socket.o traffic-generator.o remycc.o markoviancc.o utilities.o
all: sender receiver prober
.PHONY: all
sender: $(OBJECTS) sender.o # $(MEMORY_STYLE)/libremyprotos.a
$(CXX) $(OBJECTS) sender.o -o $@ $(LIBS)
prober: prober.o udp-socket.o
$(CXX) prober.o udp-socket.o -o $@ $(LIBS)
receiver: receiver.o udp-socket.o
$(CXX) receiver.o udp-socket.o -o $@ $(LIBS)
%.o: %.cc
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
#$(OBJECTS):
#.cpp.o:
# $(CC) $(CFLAGS) $< -o $@
protobufs-default/dna.pb.cc: protobufs-default/dna.proto
protoc --cpp_out=. protobufs-default/dna.proto
protobufs-default/dna.pb.o: protobufs-default/dna.pb.cc
$(CXX) -I.. -I. -O2 -c protobufs-default/dna.pb.cc -o protobufs-default/dna.pb.o
pcc-tcp.o: pcc-tcp.cc
g++ -DHAVE_CONFIG_H -I. -I./udt -std=c++11 -pthread -fno-default-inline -g -O2 -MT pcc-tcp.o -MD -MP -c -o pcc-tcp.o pcc-tcp.cc