Blame view

bin/Makefile 700 Bytes
32c9271a   skhinach   modif
1
2
  
  CC=gcc
08f8ef8d   skhinach   modifs
3
  CFLAGS=-W -Wall -Wextra -g
32c9271a   skhinach   modif
4
  CLIBS=ar -rcs
a69a94a7   skhinach   Ajout de gestion ...
5
  LIB=libnet.a libthrd.a
32c9271a   skhinach   modif
6
7
8
9
10
11
12
  LDIR=../libs/
  LIBS=$(LDIR)libnet.a $(LDIR)libthrd.a
  IDIR=../includes/
  LDFLAGS=-lpthread -lpcap
  
  
  
a69a94a7   skhinach   Ajout de gestion ...
13
  all: sonde serverTCP
32c9271a   skhinach   modif
14
  
a69a94a7   skhinach   Ajout de gestion ...
15
16
17
18
19
20
21
22
  serverTCP: serverTCP.c
  	cd ../Threads/ && make
  	cd ../Network/ && make
  	$(CC) -o $@ $< -I$(IDIR) -L$(LDIR) $(LDIR)libthrd.a $(LDIR)libnet.a $(CFLAGS) $(LDFLAGS) 
  	rm -f *.o
  
  
  sonde: sonde.c
32c9271a   skhinach   modif
23
24
25
26
27
28
29
30
31
32
33
34
  	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
a69a94a7   skhinach   Ajout de gestion ...
35
36
37
38
39
  	rm -f *.o sonde serverTCP
  
  
  #	cd ../Threads/ && make
  #	cd ../Network/ && make
32c9271a   skhinach   modif