Blame view

Threads/Makefile 425 Bytes
32c9271a   skhinach   modif
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
29
30
31
32
  #
  # Makefile pour generer la bibliotheque de fonctions de communication
  #
  
  CC=gcc
  CFLAGS=-W -Wall -Wextra
  CLIBS=ar -rcs
  LIB=libthrd.a
  LDIR=../libs/
  IDIR=../includes/
  LDFLAGS=-lpthread
  
  
  
  all: $(LIB)
  
  $(LIB): threadSocket.o
  	rm -f $@
  	$(CLIBS) $(LDIR)$@ $^
  	ranlib $(LDIR)$@ 
  	rm -f *.o
  	
  threadSocket.o: threadSocket.c
  	$(CC) -o $@ -c $^ $(CFLAGS) $(LDFLAGS)
  
  
  #
  # La cible de nettoyage
  #
  
  clean: 
  	rm -f *.o $(LDIR)$(LIB)