Commit c35daaf678677555cf1884d1e5abe4419482975c
1 parent
685f1984
Organisation, création des librairies et des Makefiles
Showing
305 changed files
with
337 additions
and
78 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 305 files are displayed.
Network/.sender.c.swp deleted
No preview for this file type
@@ -2,29 +2,39 @@ | @@ -2,29 +2,39 @@ | ||
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 | + | ||
23 | + | ||
24 | +tcpserver.o: tcpserver.c | ||
25 | + $(CC) -o $@ -c $^ -I$(IDIR) $(CFLAGS) | ||
26 | + | ||
27 | +sniffer.o: sniffer.c | ||
28 | + $(CC) -o $@ -c $^ $(CFLAGS) | ||
29 | + | ||
30 | +sender.o: sender.c | ||
31 | + $(CC) -o $@ -c $^ $(CFLAGS) | ||
18 | 32 | ||
19 | -#clean: | ||
20 | -# rm -f core *.o libnet.a | ||
21 | 33 | ||
22 | # | 34 | # |
23 | -# Les cibles pour la bibliotheque | 35 | +# La cible de nettoyage |
24 | # | 36 | # |
25 | 37 | ||
26 | -#libnet.o: libnet.c libnet.h | 38 | +clean: |
39 | + rm -f *.o $(LDIR)$(LIB) ../bin/test | ||
27 | 40 | ||
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