-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
36 lines (22 loc) · 1.08 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
CFLAGS:=-c -Wall -Weffc++ -g -std=c++11 -Iinclude
LDFLAGS:=-lboost_system
all: Client
g++ -pthread -o main bin/main.o bin/Client.o bin/ClientProtocol.o bin/connectionHandler.o bin/Inventory.o bin/Message.o bin/Transmitter.o $(LDFLAGS) $(DEPS)
Client: bin/main.o bin/Client.o bin/ClientProtocol.o bin/connectionHandler.o bin/Inventory.o bin/Message.o bin/Transmitter.o
bin/main.o: main.cpp
g++ -pthread $(CFLAGS) -o bin/main.o main.cpp
bin/connectionHandler.o: src/connectionHandler.cpp
g++ -pthread $(CFLAGS) -o bin/connectionHandler.o src/connectionHandler.cpp
bin/Client.o: src/Client.cpp
g++ -pthread $(CFLAGS) -o bin/Client.o src/Client.cpp
bin/ClientProtocol.o: src/ClientProtocol.cpp
g++ -pthread $(CFLAGS) -o bin/ClientProtocol.o src/ClientProtocol.cpp
bin/Inventory.o: src/Inventory.cpp
g++ -pthread $(CFLAGS) -o bin/Inventory.o src/Inventory.cpp
bin/Message.o: src/Message.cpp
g++ -pthread $(CFLAGS) -o bin/Message.o src/Message.cpp
bin/Transmitter.o: src/Transmitter.cpp
g++ -pthread $(CFLAGS) -o bin/Transmitter.o src/Transmitter.cpp
.PHONY: clean
clean:
rm -f bin/*