forked from djalan/chat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
56 lines (31 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
CC = gcc
CFLAGS = -W -Wall -ggdb
all: client.out server.out
OBJS_CLIENT = client.o fenetre.o chaine.o gui.o
OBJS_SERVER = server.o groupe.o usager.o info.o listeUsager.o listeGroupe.o
client.out: $(OBJS_CLIENT)
$(CC) $(CFLAGS) -lcurses -lsocket -lnsl $(OBJS_CLIENT) -o client.out
client.o: client.c fenetre.h chaine.h gui.h
$(CC) $(CFLAGS) -c client.c
fenetre.o: fenetre.c fenetre.h
$(CC) $(CFLAGS) -c fenetre.c
chaine.o: chaine.c chaine.h
$(CC) $(CFLAGS) -c chaine.c
gui.o: gui.c gui.h
$(CC) $(CFLAGS) -c gui.c
server.out: $(OBJS_SERVER)
$(CC) $(CFLAGS) -lsocket -lnsl $(OBJS_SERVER) -o server.out
server.o: server.c groupe.h usager.h info.h listeUsager.h listeGroupe.h
$(CC) $(CFLAGS) -c server.c
groupe.o: groupe.c groupe.h usager.h info.h
$(CC) $(CFLAGS) -c groupe.c
usager.o: usager.c usager.h
$(CC) $(CFLAGS) -c usager.c
info.o: info.c info.h
$(CC) $(CFLAGS) -c info.c
listeUsager.o: listeUsager.c listeUsager.h usager.h
$(CC) $(CFLAGS) -c listeUsager.c
listeGroupe.o: listeGroupe.c listeGroupe.h groupe.h
$(CC) $(CFLAGS) -c listeGroupe.c
clean:
rm *.o *~ *.nfs*