c35daaf6
Souheib Khinache
Organisation, cré...
|
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
|
CC=gcc
CFLAGS=-W -Wall -Wextra
CLIBS=ar -rcs
LIB=libnet.a
LDIR=../libs/
LIBS=$(LDIR)libnet.a $(LDIR)libthrd.a
IDIR=../includes/
LDFLAGS=-lpthread -lpcap
all: test
test: test.c
cd ../Threads/ && make
cd ../Network/ && make
$(CC) -o $@ $< -I$(IDIR) $(LDIR)libnet.a $(LDIR)libthrd.a $(CFLAGS) $(LDFLAGS)
rm -f *.o
#
# La cible de nettoyage
#
clean:
cd ../Threads/ && make clean
cd ../Network/ && make clean
rm -f *.o test
|