forked from keithw/datagrump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (26 loc) · 987 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
38
source = socket.cc address.cc packet.cc int64.cc timestamp.cc \
datagrump-sender.cc datagrump-receiver.cc tcp-sender.cc tcp-receiver.cc \
util.cc controller.cc
objects = socket.o address.o packet.o int64.o timestamp.o util.o controller.o
executables = datagrump-sender datagrump-receiver tcp-sender tcp-receiver
CXX = g++
CXXFLAGS = -g -O3 -std=c++0x -ffast-math -pedantic -Werror -Wall -Wextra \
-Weffc++ -fno-default-inline -pipe
LIBS = -lm -lrt
all: $(executables)
datagrump-sender: datagrump-sender.o $(objects)
$(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS)
datagrump-receiver: datagrump-receiver.o $(objects)
$(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS)
tcp-sender: tcp-sender.o $(objects)
$(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS)
tcp-receiver: tcp-receiver.o $(objects)
$(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS)
%.o: %.cc
$(CXX) $(CXXFLAGS) -c -o $@ $<
-include depend
depend: $(source)
$(CXX) $(INCLUDES) -MM $(source) > depend
.PHONY: clean
clean:
-rm -f $(executables) depend *.o *.rpo