aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-08-19 20:23:04 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-01 17:00:27 +0200
commitb9c6fca46907b9face617b2d916a41042cb3fd7b (patch)
tree5f8dbf848b7e1c4b8b3b2d099c99c585f86b6046 /Makefile
parentda20f57f19dc75f86b6313b3397218056782792e (diff)
downloadpasst-b9c6fca46907b9face617b2d916a41042cb3fd7b.tar
passt-b9c6fca46907b9face617b2d916a41042cb3fd7b.tar.gz
passt-b9c6fca46907b9face617b2d916a41042cb3fd7b.tar.bz2
passt-b9c6fca46907b9face617b2d916a41042cb3fd7b.tar.lz
passt-b9c6fca46907b9face617b2d916a41042cb3fd7b.tar.xz
passt-b9c6fca46907b9face617b2d916a41042cb3fd7b.tar.zst
passt-b9c6fca46907b9face617b2d916a41042cb3fd7b.zip
Makefile: Add install, uninstall targets
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b539310..5ab0ac6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
CFLAGS += -Wall -Wextra -pedantic
CFLAGS += -DRLIMIT_STACK_VAL=$(shell ulimit -s)
+prefix ?= /usr/local
+
all: passt pasta passt4netns qrap
avx2: CFLAGS += -Ofast -mavx2 -ftree-vectorize -funroll-loops
@@ -18,6 +20,7 @@ passt: passt.c passt.h arp.c arp.h checksum.c checksum.h conf.c conf.h \
pasta: passt
ln -s passt pasta
+ ln -s passt.1 pasta.1
passt4netns: passt
ln -s passt passt4netns
@@ -27,4 +30,16 @@ qrap: qrap.c passt.h
.PHONY: clean
clean:
- -${RM} passt *.o qrap pasta passt4netns
+ -${RM} passt *.o qrap pasta pasta.1 passt4netns
+
+install: passt pasta qrap
+ cp -d passt pasta qrap $(prefix)/bin
+ cp -d passt.1 pasta.1 qrap.1 $(prefix)/man/man1
+
+uninstall:
+ -${RM} $(prefix)/bin/passt
+ -${RM} $(prefix)/bin/pasta
+ -${RM} $(prefix)/bin/qrap
+ -${RM} $(prefix)/man/man1/passt.1
+ -${RM} $(prefix)/man/man1/pasta.1
+ -${RM} $(prefix)/man/man1/qrap.1