-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 815 Bytes
/
Makefile
File metadata and controls
49 lines (36 loc) · 815 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
DESTDIR ?= $(HOME)
CFLAGS = -Wall -Werror
TARGETS += pmerge
TARGETS += puniq
TARGETS += hd
TARGETS += pyesc
TARGETS += xor
TARGETS += unhex
TARGETS += undec
TARGETS += unoct
TARGETS += pcat
TARGETS += slice
TARGETS += hex
TARGETS += entropy
TARGETS += freq
TARGETS += histogram
TARGETS += printy
TARGETS += bubblebabble
SCRIPTS += octets
all: $(TARGETS)
install: $(TARGETS) $(SCRIPTS)
install -d $(DESTDIR)$(PREFIX)/bin
install $(TARGETS) $(DESTDIR)$(PREFIX)/bin
install $(SCRIPTS) $(DESTDIR)$(PREFIX)/bin
uninstall:
cd $(PREFIX)/bin && rm -f $(TARGETS) $(SCRIPTS)
test: $(TARGETS) test.sh
./test.sh
pmerge: pmerge.o pcap.o
puniq: puniq.o pcap.o
p4split: p4split.o pcap.o
pcat: pcat.o pcap.o stream.o
pcat.o: CFLAGS += -Wno-unused-variable
entropy: LDLIBS += -lm
clean:
rm -f $(TARGETS) *.o