-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (19 loc) · 625 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
CC = gcc
CFLAGS = -Wall -g -O3
all: clean Serveur Client
clean:
rm -Rf *.o *.out Client Serveur
### Compilation des fichiers du serveur ###
Serveur: mainServeur.o serveur.o
$(CC) $(CFLAGS) mainServeur.o serveur.o -o Serveur
mainServeur.o: mainServeur.c
$(CC) $(CFLAGS) -c mainServeur.c -o mainServeur.o
serveur.o:
$(CC) $(CFLAGS) -c serveur.c -o serveur.o
### Compilation des fichiers du client ###
Client: mainClient.o client.o
$(CC) $(CFLAGS) mainClient.o client.o -o Client -lcrypt
mainClient.o: mainClient.c
$(CC) $(CFLAGS) -c mainClient.c -o mainClient.o
client.o:
$(CC) $(CFLAGS) -c client.c -o client.o