summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2002-07-04 21:19:49 +0000
committeritojun <itojun@openbsd.org>2002-07-04 21:19:49 +0000
commit6b76c134fd9e54130d413fd633393351ddf08eb6 (patch)
treed5885a4773658eb71bd1f17a30350ee36d63cd33
parentep at isapnp works (dma on isapnp is still non-working). (diff)
downloadwireguard-openbsd-6b76c134fd9e54130d413fd633393351ddf08eb6.tar.xz
wireguard-openbsd-6b76c134fd9e54130d413fd633393351ddf08eb6.zip
support non-"objdir" build. From: David Krause <openbsd@davidkrause.com>
-rw-r--r--usr.sbin/dhcp/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/dhcp/Makefile.inc b/usr.sbin/dhcp/Makefile.inc
index a8e5e4dfe38..5a1958fe98b 100644
--- a/usr.sbin/dhcp/Makefile.inc
+++ b/usr.sbin/dhcp/Makefile.inc
@@ -41,7 +41,11 @@ CPPFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../includes \
-DCLIENT_PATH=${CLIENT_PATH} -Wall -Werror
COMMONDIR0!= cd ${.CURDIR}/../common; pwd
+.if exists(${COMMONDIR0}/${__objdir})
COMMONDIR= ${COMMONDIR0}/${__objdir}
+.else
+COMMONDIR= ${COMMONDIR0}
+.endif
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"