Blame view

Makefile 593 Bytes
8d4694b6   achemin1   feat: server list...
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 les executables du pont virtuel
  #
  
  OBJS_SWITCH=libnet.o virtual_bridge.o server.o
  OBJS_CLIENT=libnet.o virtual_client.o
  
  CFLAGS += -Wall -DDEBUG
  
  all: virtual_bridge virtual_client
  
  #
  # La cible de nettoyage
  #
  
  clean:
  	rm -f core *.o virtual_bridge virtual_client
  
  #
  # Les cibles
  #
  
  virtual_bridge:	$(OBJS_SWITCH)
  	$(CC) $(CFLAGS) -o $@ $(OBJS_SWITCH)
  virtual_client:	$(OBJS_CLIENT)
  	$(CC) $(CFLAGS) -o $@ $(OBJS_CLIENT)
  
  
  libnet.o: libnet.c libnet.h
  virtual_bridge.o: virtual_bridge.c libnet.h server.h
  virtual_client.o: virtual_client.c libnet.h
  server.o: server.c