2013-07-23 16:30:38 -06:00
|
|
|
CFLAGS = -Wall -Werror
|
2013-01-29 21:53:17 -07:00
|
|
|
TARGETS = pmerge puniq p4split pcat
|
|
|
|
TARGETS += hd pyesc printfesc xor unhex
|
2011-04-21 16:12:01 -06:00
|
|
|
|
2011-04-22 12:47:08 -06:00
|
|
|
all: $(TARGETS)
|
|
|
|
|
2013-07-23 16:30:38 -06:00
|
|
|
%: %.go
|
|
|
|
go build $<
|
2014-03-17 12:45:55 -06:00
|
|
|
|
|
|
|
install: $(TARGETS)
|
|
|
|
install -d $(DESTDIR)$(PREFIX)
|
|
|
|
install $(TARGETS) $(DESTDIR)$(PREFIX)/bin
|
2013-07-23 16:30:38 -06:00
|
|
|
|
2011-04-22 12:47:08 -06:00
|
|
|
pmerge: pmerge.o pcap.o
|
2013-07-23 16:30:38 -06:00
|
|
|
|
2011-04-22 12:47:08 -06:00
|
|
|
puniq: puniq.o pcap.o
|
2013-07-23 16:30:38 -06:00
|
|
|
|
|
|
|
p4split: p4split.o pcap.o
|
|
|
|
|
|
|
|
pcat: pcat.o pcap.o stream.o
|
|
|
|
pcat.o: CFLAGS += -Wno-unused-variable
|
2011-04-22 12:47:08 -06:00
|
|
|
|
|
|
|
clean:
|
2011-07-14 18:55:41 -06:00
|
|
|
rm -f $(TARGETS) *.o
|