Commit 32c9271a85f628239d9d70a22d7446de5d525b39
1 parent
685f1984
modif
Showing
302 changed files
with
272 additions
and
173 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 302 files are displayed.
Network/.sender.c.swp deleted
No preview for this file type
@@ -2,29 +2,40 @@ | @@ -2,29 +2,40 @@ | ||
2 | # Makefile pour generer la bibliotheque de fonctions de communication | 2 | # Makefile pour generer la bibliotheque de fonctions de communication |
3 | # | 3 | # |
4 | 4 | ||
5 | -all : sniffer sender | 5 | +CC=gcc |
6 | +CFLAGS=-W -Wall -Wextra | ||
7 | +CLIBS=ar -rcs | ||
8 | +LIB=libnet.a | ||
9 | +LDIR=../libs/ | ||
10 | +LIBS=$(LDIR)libnet.a $(LDIR)libthrd.a | ||
11 | +IDIR=../includes/ | ||
12 | +LDFLAGS=-lpthread -lpcap | ||
6 | 13 | ||
7 | -sniffer: sniffer.c | ||
8 | - gcc -o sniffer sniffer.c -lpcap | ||
9 | 14 | ||
10 | -sender: sender.c | ||
11 | - gcc -o sender sender.c | ||
12 | 15 | ||
13 | -#all: libnet.a | 16 | +all: $(LIB) |
14 | 17 | ||
15 | -# | ||
16 | -# La cible de nettoyage | ||
17 | -# | 18 | +$(LIB): sender.o sniffer.o tcpserver.o |
19 | + rm -f $@ | ||
20 | + $(CLIBS) $(LDIR)$@ $^ | ||
21 | + ranlib $(LDIR)$@ | ||
22 | + rm -f *.o | ||
23 | + | ||
24 | + | ||
25 | +tcpserver.o: tcpserver.c | ||
26 | + $(CC) -o $@ -c $^ -I$(IDIR) $(CFLAGS) | ||
27 | + | ||
28 | +sniffer.o: sniffer.c | ||
29 | + $(CC) -o $@ -c $^ $(CFLAGS) | ||
30 | + | ||
31 | +sender.o: sender.c | ||
32 | + $(CC) -o $@ -c $^ $(CFLAGS) | ||
18 | 33 | ||
19 | -#clean: | ||
20 | -# rm -f core *.o libnet.a | ||
21 | 34 | ||
22 | # | 35 | # |
23 | -# Les cibles pour la bibliotheque | 36 | +# La cible de nettoyage |
24 | # | 37 | # |
25 | 38 | ||
26 | -#libnet.o: libnet.c libnet.h | 39 | +clean: |
40 | + rm -f *.o $(LDIR)$(LIB) ../bin/test | ||
27 | 41 | ||
28 | -#libcom.a: libnet.o | ||
29 | -# rm -f $@ | ||
30 | -# $(CLIB) $@ $+ |
Network/libpcap-1.9.0/ChmodBPF/StartupParameters.plist
100644 → 100755
Network/libpcap-1.9.0/Win32/Prj/wpcap.vcxproj.filters
100644 → 100755
Network/libpcap-1.9.0/cmake/Modules/FindDAG.cmake
100644 → 100755
Network/libpcap-1.9.0/cmake/Modules/FindFseeko.cmake
100644 → 100755
Network/libpcap-1.9.0/cmake/Modules/FindLFS.cmake
100644 → 100755
Network/libpcap-1.9.0/cmake/Modules/FindPacket.cmake
100644 → 100755
Network/libpcap-1.9.0/cmake/Modules/FindSNF.cmake
100644 → 100755
Network/libpcap-1.9.0/cmake/Modules/FindTC.cmake
100644 → 100755
Network/libpcap-1.9.0/cmake/have_siocglifconf.c
100644 → 100755
Network/libpcap-1.9.0/cmake_uninstall.cmake.in
100644 → 100755
Network/libpcap-1.9.0/doc/DLT_ALLOCATE_HOWTO.md
100644 → 100755
Network/libpcap-1.9.0/org.tcpdump.chmod_bpf.plist
100644 → 100755