summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchctl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/switchctl/Makefile')
-rw-r--r--usr.sbin/switchctl/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/switchctl/Makefile b/usr.sbin/switchctl/Makefile
index e894ddd044f..892c4c19cb3 100644
--- a/usr.sbin/switchctl/Makefile
+++ b/usr.sbin/switchctl/Makefile
@@ -1,18 +1,15 @@
-# $OpenBSD: Makefile,v 1.1 2016/07/19 16:54:26 reyk Exp $
+# $OpenBSD: Makefile,v 1.2 2016/07/19 18:14:08 reyk Exp $
-NAME= switch
+.PATH: ${.CURDIR}/../switchd
-.PATH: ${.CURDIR}/../${NAME}d
-
-PROG= ${NAME}ctl
-MAN= ${NAME}ctl.8
-SRCS= log.c ${NAME}ctl.c parser.c util.c
+PROG= switchctl
+MAN= switchctl.8
+SRCS= log.c switchctl.c parser.c util.c
LDADD= -lutil
DPADD= ${LIBUTIL}
-CFLAGS+= -DOFD_NAME=\"${NAME}\"
-CFLAGS+= -Wall -I${.CURDIR} -I${.CURDIR}/../${NAME}d
+CFLAGS+= -Wall -I${.CURDIR} -I${.CURDIR}/../switchd
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -Wmissing-declarations
CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual