-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
59 lines (39 loc) · 1.57 KB
/
makefile
File metadata and controls
59 lines (39 loc) · 1.57 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# cse3310 project sample makefile
CXX=g++
# note the below asio package may be in a
# different place
CPPFLAGS=-I../asio-1.13.0/include
CXXFLAGS=-Wall -g -std=c++11 -O0
GTKLINKFLAGS=$(shell pkg-config --libs gtk+-2.0)
GTKCOMPILEFLAGS=$(shell pkg-config --cflags gtk+-2.0)
#TARGETS=chat_client chat_server gtk_chat gtk_chat2 gtk_chat3 chat_server2 chat_client2
TARGETS=chat_server chat_client2
all:${TARGETS}
# these compile and link in the same command.
# no intermediate object code files
# (sacrifice compilation speed for not having to
# deal with dependencies)
#chat_client: chat_client.cpp chat_message.hpp
# ${CXX} ${CXXFLAG} ${CPPFLAGS} -o $@ $< -lpthread
chat_server: chat_server.cpp chat_message2.hpp
${CXX} ${CXXFLAGS} ${GTKCOMPILEFLAGS} ${CPPFLAGS} -o $@ $< -lpthread
#gtk_chat: gtk_chat.cpp
# ${CXX} ${CXXFLAGS} ${GTKCOMPILEFLAGS} ${CPPFLAGS} -o $@ $< \
${GTKLINKFLAGS} -lpthread
#gtk_chat2: gtk_chat2.cpp
# ${CXX} ${CXXFLAGS} ${GTKCOMPILEFLAGS} ${CPPFLAGS} -o $@ $< \
${GTKLINKFLAGS} -lpthread
#gtk_chat3: gtk_chat3.cpp chat_message2.hpp
# ${CXX} ${CXXFLAGS} ${GTKCOMPILEFLAGS} ${CPPFLAGS} -o $@ $< \
${GTKLINKFLAGS} -lpthread
chat_client2: chat_client2.cpp chat_message2.hpp
${CXX} ${CXXFLAGS} ${CPPFLAGS} -o $@ $< -lpthread
#chat_server2: chat_server2.cpp chat_message2.hpp
# ${CXX} ${CXXFLAGS} ${CPPFLAGS} -o $@ $< -lpthread
#blackjack.o: blackjack.cpp blackjack.h
#test_example: test_example.cpp blackjack.o
# ${CXX} ${CXXFLAGS} ${CPPFLAGS} -o $@ $< \
blackjack.o \
-lboost_unit_test_framework
clean:
-rm -f ${TARGETS}