blob: ce177a8061e4a7c70cb66291741e9f0f2889cdde (
plain)
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
|
CC=gcc
#CFLAGS?=-Wall -ggdb
CFLAGS?=-O2
LDFLAGS+=-lpcap -lssl -lcrypto -lpthread
PROGRAMS=parasite6 dos-new-ip6 detect-new-ip6 fake_router6 fake_advertise6 fake_mld6 fake_mipv6 redir6 smurf6 alive6 toobig6 rsmurf6 implementation6 implementation6d sendpees6 fuzz_ip6 flood_router6 flood_advertise6 trace6 dnsdict6 recon6
LIBS=thc-ipv6-lib.o
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
all: $(LIBS) $(PROGRAMS)
%: %.c $(LIBS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
install: all
install -m0755 -d ${DESTDIR}${PREFIX}/bin
install -m0755 $(PROGRAMS) ${DESTDIR}${PREFIX}/bin
install -m0755 -d ${DESTDIR}${MANPREFIX}/man8
install -m0644 -D thc-ipv6.8 ${DESTDIR}${MANPREFIX}/man8
clean:
rm -f $(PROGRAMS) $(LIBS) core DEADJOE *~
.PHONY: all install clean
|