aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fb4494a..2f48c35 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,20 @@
CFLAGS += -Wall -Wextra -pedantic
+CFLAGS += -DRLIMIT_STACK_VAL=$(shell ulimit -s)
-all: passt qrap
+all: passt pasta passt4netns qrap
passt: passt.c passt.h arp.c arp.h dhcp.c dhcp.h dhcpv6.c dhcpv6.h pcap.c pcap.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 pcap.c ndp.c siphash.c tap.c icmp.c tcp.c udp.c util.c -o passt
+pasta: passt
+ ln -s passt pasta
+
+passt4netns: passt
+ ln -s passt passt4netns
+
qrap: qrap.c passt.h
$(CC) $(CFLAGS) -DARCH=\"$(shell uname -m)\" qrap.c -o qrap
.PHONY: clean
clean:
- -${RM} passt *.o qrap
+ -${RM} passt *.o qrap pasta passt4netns