summaryrefslogtreecommitdiffstats
path: root/tools/tools/kttcp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tools/kttcp/Makefile')
-rw-r--r--tools/tools/kttcp/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/tools/kttcp/Makefile b/tools/tools/kttcp/Makefile
new file mode 100644
index 0000000..781e077
--- /dev/null
+++ b/tools/tools/kttcp/Makefile
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+SHELL= /bin/sh
+
+PROG= kttcp
+SRCS= kttcp.c
+BINDIR= /usr/local/bin
+SYSDIR= /usr/src/sys
+
+CFLAGS += -I${SYSDIR} -Isys
+
+all: kttcp module
+
+module:
+ cd sys; SYSDIR=${SYSDIR} make
+
+install:
+ install kttcp ${DESTDIR}/${BINDIR}
+ cd sys; SYSDIR=${SYSDIR} make install
+
+clean:
+ rm -f ${PROG}
+ cd sys; SYSDIR=${SYSDIR} make clean
OpenPOWER on IntegriCloud