mirror of https://github.com/dirtbags/fluffy.git
48 lines
773 B
Makefile
48 lines
773 B
Makefile
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
|
|
|
|
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
|