Blame view

bin/Makefile 439 Bytes
32c9271a   skhinach   modif
1
2
  
  CC=gcc
08f8ef8d   skhinach   modifs
3
  CFLAGS=-W -Wall -Wextra -g
32c9271a   skhinach   modif
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
  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