-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
28 lines (20 loc) · 884 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
CFLAGS:=-c -Wall -Weffc++ -g -std=c++11 -Iinclude
LDFLAGS:=-lboost_system
CFLAGS += -pthread
LDFLAGS += -pthread
all: StompBookClubClient
StompBookClubClient: bin/connectionHandler.o bin/MainClient.o bin/Read.o bin/User.o bin/Write.o
g++ -o bin/StompBookClubClient bin/connectionHandler.o bin/MainClient.o bin/Read.o bin/User.o bin/Write.o $(LDFLAGS)
bin/connectionHandler.o: src/connectionHandler.cpp include/connectionHandler.h
g++ $(CFLAGS) -o bin/connectionHandler.o src/connectionHandler.cpp
bin/MainClient.o: src/MainClient.cpp
g++ $(CFLAGS) -o bin/MainClient.o src/MainClient.cpp
bin/Read.o: src/Read.cpp include/Read.h
g++ $(CFLAGS) -o bin/Read.o src/Read.cpp
bin/User.o: src/User.cpp include/User.h
g++ $(CFLAGS) -o bin/User.o src/User.cpp
bin/Write.o: src/Write.cpp include/Write.h
g++ $(CFLAGS) -o bin/Write.o src/Write.cpp
.PHONY: clean
clean:
rm -f bin/*