135b3e3b78
PR: 175103 Submitted by: maintainer
26 lines
921 B
Text
26 lines
921 B
Text
--- /dev/null 2013-01-06 20:26:43.000000000 +0200
|
|
+++ Makefile 2013-01-06 20:26:46.000000000 +0200
|
|
@@ -0,0 +1,23 @@
|
|
+DESTDIR := ${PREFIX}
|
|
+MANDIR := ${DESTDIR}/man
|
|
+INSTALL_PROGRAM := /usr/bin/install -s -m 0700
|
|
+INSTALL_MAN := /usr/bin/install -m 0444
|
|
+GZIP_CMD := /usr/bin/gzip -9
|
|
+MKDIR_CMD := /bin/mkdir -p
|
|
+
|
|
+all: unhide unhide-tcp
|
|
+
|
|
+unhide: unhide-posix.c
|
|
+ gcc -Wall -O2 --static unhide-posix.c -o unhide
|
|
+
|
|
+unhide-tcp: unhide-tcp.c unhide-tcp-fast.c unhide-output.c
|
|
+ gcc -Wall -O2 --static unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp
|
|
+
|
|
+install: all
|
|
+ ${MKDIR_CMD} ${DESTDIR}/sbin ${MANDIR}/man8
|
|
+ ${INSTALL_PROGRAM} unhide ${DESTDIR}/sbin/unhide
|
|
+ ${INSTALL_PROGRAM} unhide-tcp ${DESTDIR}/sbin/unhide-tcp
|
|
+ ${INSTALL_MAN} man/unhide.8 ${MANDIR}/man8 && \
|
|
+ ${GZIP_CMD} ${MANDIR}/man8/unhide.8
|
|
+ ${INSTALL_MAN} man/unhide-tcp.8 ${MANDIR}/man8 && \
|
|
+ ${GZIP_CMD} ${MANDIR}/man8/unhide-tcp.8
|