Blame view

Threads/Makefile 498 Bytes
32c9271a   skhinach   modif
1
2
3
4
5
  #
  # Makefile pour generer la bibliotheque de fonctions de communication
  #
  
  CC=gcc
08f8ef8d   skhinach   modifs
6
  CFLAGS=-W -Wall -Wextra -g
32c9271a   skhinach   modif
7
8
9
10
11
12
13
14
15
16
  CLIBS=ar -rcs
  LIB=libthrd.a
  LDIR=../libs/
  IDIR=../includes/
  LDFLAGS=-lpthread
  
  
  
  all: $(LIB)
  
a69a94a7   skhinach   Ajout de gestion ...
17
  $(LIB): http.o threadSocket.o
32c9271a   skhinach   modif
18
19
20
21
  	rm -f $@
  	$(CLIBS) $(LDIR)$@ $^
  	ranlib $(LDIR)$@ 
  	rm -f *.o
a69a94a7   skhinach   Ajout de gestion ...
22
23
   
  
32c9271a   skhinach   modif
24
  threadSocket.o: threadSocket.c
a69a94a7   skhinach   Ajout de gestion ...
25
  	$(CC) -o $@ -c $^ -I$(IDIR) $(CFLAGS)
32c9271a   skhinach   modif
26
  
a69a94a7   skhinach   Ajout de gestion ...
27
28
  http.o: ../Sioux/http.c
  	$(CC) -o $@ -c $^ -I$(IDIR) $(CFLAGS)
32c9271a   skhinach   modif
29
30
31
32
33
34
35
  
  #
  # La cible de nettoyage
  #
  
  clean: 
  	rm -f *.o $(LDIR)$(LIB)