2020-07-13 20:55:46 +00:00
|
|
|
CFLAGS += -Wall -Wextra -pedantic
|
|
|
|
|
2020-07-20 14:41:49 +00:00
|
|
|
all: passt qrap
|
2020-07-13 20:55:46 +00:00
|
|
|
|
2021-04-13 19:59:47 +00:00
|
|
|
passt: passt.c passt.h arp.c arp.h dhcp.c dhcp.h dhcpv6.c dhcpv6.h ndp.c ndp.h siphash.c siphash.h tap.c tap.h icmp.c icmp.h tcp.c tcp.h udp.c udp.h util.c util.h
|
|
|
|
$(CC) $(CFLAGS) passt.c arp.c dhcp.c dhcpv6.c ndp.c siphash.c tap.c icmp.c tcp.c udp.c util.c -o passt
|
2020-07-13 20:55:46 +00:00
|
|
|
|
2020-07-20 14:41:49 +00:00
|
|
|
qrap: qrap.c passt.h
|
2021-05-10 10:38:50 +00:00
|
|
|
$(CC) $(CFLAGS) -DARCH=\"$(shell uname -m)\" qrap.c -o qrap
|
2020-07-17 23:02:39 +00:00
|
|
|
|
2020-07-13 20:55:46 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2020-07-20 14:41:49 +00:00
|
|
|
-${RM} passt *.o qrap
|