summaryrefslogtreecommitdiff
path: root/other/b-scan/tmp/src/Makefile
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/b-scan/tmp/src/Makefile
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/b-scan/tmp/src/Makefile')
-rw-r--r--other/b-scan/tmp/src/Makefile88
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
6CC=gcc
7COPT=-Wall -ggdb -I../include -I/usr/include/pcap -static
8LEX=flex
9LEXOPT=
10OBJS=bscan.o arpg.o snarf.o network_raw.o restore.o
11OBJS2=tty.o system.o signal.o dcd_icmp.o garage.o cf_prse.o module.o
12SUPOBJ=../support/hpuxdl.o ../support/snprintf.o
13TARGET=bscan
14INDENT=indent
15INDENT_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#######
19LOPT=-export-dynamic
20DEFS=`libnet-config --defines` -DHAVE_DLSYM -D_SVID_SOURCE #-DDEBUG
21LIBS=-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
50all: $(SUPOBJ) $(OBJS2) $(OBJS)
51 $(CC) $(SUPOBJ) $(OBJS) $(OBJS2) $(LOPT) $(LIBS) $(COPT) -o $(TARGET)
52
53cf_prse.o:
54 $(LEX) $(LEXOPT) -ocf_prse.c cf_prse.l
55 $(CC) $(COPT) -c cf_prse.c
56
57dcd_icmp.o: dcd_icmp.c
58 $(CC) $(COPT) -c dcd_icmp.c
59
60garage.o: garage.c
61 $(CC) $(COPT) -c garage.c
62
63module.o: module.c
64 $(CC) $(COPT) $(DEFS) -c module.c
65
66system.o: system.c
67 $(CC) $(COPT) -c system.c
68
69tty.o: tty.c
70 $(CC) $(COPT) -c tty.c
71
72signal.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
84clean:
85 rm -f $(OBJS) $(OBJS2) $(TARGET) cf_prse.c core *~
86
87indent:
88 $(INDENT) $(INDENT_OPT) *.c *.h