-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (25 loc) · 795 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
CXX=g++
CXXFLAGS=-Wall
LDFLAGS=-lgloox -lpthread -lncurses -lpanel
EXEC_CPTALK=cptalk
EXEC_GUI=gui
EXEC_TEST=test
all: cptalk
cptalk: main.o ICore.o common.o IO.o Linker.o XMPP.o
$(CXX) -o $(EXEC_CPTALK) main.o ICore.o common.o IO.o Linker.o XMPP.o $(CXXFLAGS) $(LDFLAGS)
ICore.o: ICore.cpp ICore.h
$(CXX) -c ICore.cpp $(CXXFLAGS) $(LDFLAGS)
common.o: common.cpp common.h
$(CXX) -c common.cpp $(CXXFLAGS) $(LDFLAGS)
IO.o: IO.cpp IO.h
$(CXX) -c IO.cpp $(CXXFLAGS) $(LDFLAGS)
Linker.o: Linker.cpp Linker.h
$(CXX) -c Linker.cpp $(CXXFLAGS) $(LDFLAGS)
XMPP.o: XMPP.cpp XMPP.h
$(CXX) -c XMPP.cpp $(CXXFLAGS) $(LDFLAGS)
# cibles particulieres: si jamais un fichier "clean" existe il ne sera pas pris en compte
.PHONY: clean mrproper
clean:
rm -f *.o
mrproper: clean
rm -f $(EXEC)