diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/b-scan/tmp/src/Makefile | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/b-scan/tmp/src/Makefile')
| -rw-r--r-- | other/b-scan/tmp/src/Makefile | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/other/b-scan/tmp/src/Makefile b/other/b-scan/tmp/src/Makefile new file mode 100644 index 0000000..6deefc4 --- /dev/null +++ b/other/b-scan/tmp/src/Makefile | |||
| @@ -0,0 +1,88 @@ | |||
| 1 | # | ||
| 2 | # Makefile of (m)bscan v0.0, skyper | ||
| 3 | # Massiv Banner Scanner | ||
| 4 | # | ||
| 5 | |||
| 6 | CC=gcc | ||
| 7 | COPT=-Wall -ggdb -I../include -I/usr/include/pcap -static | ||
| 8 | LEX=flex | ||
| 9 | LEXOPT= | ||
| 10 | OBJS=bscan.o arpg.o snarf.o network_raw.o restore.o | ||
| 11 | OBJS2=tty.o system.o signal.o dcd_icmp.o garage.o cf_prse.o module.o | ||
| 12 | SUPOBJ=../support/hpuxdl.o ../support/snprintf.o | ||
| 13 | TARGET=bscan | ||
| 14 | INDENT=indent | ||
| 15 | INDENT_OPT=-bap -nbc -bbo -bl -bli0 -bls -ncdb -nce -cp1 -cs -di2 -ndj -nfc1 -nfca -hnl -i4 -ip5 -lp -psl -nsc -nsob | ||
| 16 | |||
| 17 | # LINUX | ||
| 18 | ####### | ||
| 19 | LOPT=-export-dynamic | ||
| 20 | DEFS=`libnet-config --defines` -DHAVE_DLSYM -D_SVID_SOURCE #-DDEBUG | ||
| 21 | LIBS=-lpcap -ldl -lm `libnet-config --libs` -lpthread | ||
| 22 | |||
| 23 | # SunOS 5.7/5.8 + gcc | ||
| 24 | ##################### | ||
| 25 | #LOPT=-export-dynamic | ||
| 26 | #DEFS=`libnet-config --defines` -DHAVE_DLSYM #-DDEBUG | ||
| 27 | #LIBS=-lpcap -ldl -lm `libnet-config --libs` -lpthread | ||
| 28 | |||
| 29 | # HP-UX 11.00 | ||
| 30 | ############# | ||
| 31 | #LOPT=-Xlinker -E | ||
| 32 | #DEFS=`libnet-config --defines` -DHAVE_DLSYM #-DDEBUG | ||
| 33 | #LIBS=-lpcap -ldld -lm `libnet-config --libs` -lpthread | ||
| 34 | |||
| 35 | # HP-UX 10.20 | ||
| 36 | # HP-UX 10.20 is not supported. You need snprintf.c and | ||
| 37 | # some hacks to use IP_HDRINCL and the kernel patches | ||
| 38 | # to access the link_layer interface. | ||
| 39 | ############# | ||
| 40 | #LOPT=-Xlinker -E | ||
| 41 | #DEFS=`libnet-config --defines` -DHAVE_DLSYM -DHP10 #-DDEBUG | ||
| 42 | #LIBS=-lpcap -ldld -lm `libnet-config --libs` -lpthread | ||
| 43 | |||
| 44 | # OpenBSD | ||
| 45 | ######### | ||
| 46 | #LOPT= | ||
| 47 | #DEFS=`libnet-config --defines` -DHAVE_DLSYM #-DDEBUG | ||
| 48 | #LIBS=-lpcap -lm `libnet-config --libs` -lpthread | ||
| 49 | |||
| 50 | all: $(SUPOBJ) $(OBJS2) $(OBJS) | ||
| 51 | $(CC) $(SUPOBJ) $(OBJS) $(OBJS2) $(LOPT) $(LIBS) $(COPT) -o $(TARGET) | ||
| 52 | |||
| 53 | cf_prse.o: | ||
| 54 | $(LEX) $(LEXOPT) -ocf_prse.c cf_prse.l | ||
| 55 | $(CC) $(COPT) -c cf_prse.c | ||
| 56 | |||
| 57 | dcd_icmp.o: dcd_icmp.c | ||
| 58 | $(CC) $(COPT) -c dcd_icmp.c | ||
| 59 | |||
| 60 | garage.o: garage.c | ||
| 61 | $(CC) $(COPT) -c garage.c | ||
| 62 | |||
| 63 | module.o: module.c | ||
| 64 | $(CC) $(COPT) $(DEFS) -c module.c | ||
| 65 | |||
| 66 | system.o: system.c | ||
| 67 | $(CC) $(COPT) -c system.c | ||
| 68 | |||
| 69 | tty.o: tty.c | ||
| 70 | $(CC) $(COPT) -c tty.c | ||
| 71 | |||
| 72 | signal.o: signal.c | ||
| 73 | $(CC) $(COPT) -c signal.c | ||
| 74 | |||
| 75 | ../support/hpuxdl.o: ../support/hpuxdl.c | ||
| 76 | $(MAKE) -C ../support | ||
| 77 | |||
| 78 | ../support/snprintf.o: ../support/snprintf.c | ||
| 79 | $(MAKE) -C ../support | ||
| 80 | |||
| 81 | .c.o: | ||
| 82 | $(CC) $(COPT) $(DEFS) -c $< | ||
| 83 | |||
| 84 | clean: | ||
| 85 | rm -f $(OBJS) $(OBJS2) $(TARGET) cf_prse.c core *~ | ||
| 86 | |||
| 87 | indent: | ||
| 88 | $(INDENT) $(INDENT_OPT) *.c *.h | ||
