summaryrefslogtreecommitdiffstats
path: root/sys/pc98/boot/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pc98/boot/Makefile.inc')
-rw-r--r--sys/pc98/boot/Makefile.inc20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/pc98/boot/Makefile.inc b/sys/pc98/boot/Makefile.inc
new file mode 100644
index 0000000..ce48279
--- /dev/null
+++ b/sys/pc98/boot/Makefile.inc
@@ -0,0 +1,20 @@
+.if exists(${.CURDIR}/../../../../include)
+CFLAGS+= -nostdinc -I${.CURDIR}/../../../../include
+MKDEP+= -nostdinc -I${.CURDIR}/../../../../include
+.endif
+CFLAGS+= -I${.CURDIR}/../../.. -I${.OBJDIR}
+MKDEP+= -I${.CURDIR}/../../.. -I${.OBJDIR}
+CLEANFILES+= machine
+
+.if defined(SRCS)
+${SRCS:M*.[sS]:R:S/$/.o/g} ${SRCS:M*.c:R:S/$/.o/g}: machine
+${SRCS:M*.cc:R:S/$/.o/g} ${SRCS:M*.C:R:S/$/.o/g}: machine
+${SRCS:M*.cxx:R:S/$/.o/g} ${SRCS:N*.h:R:S/$/.o/g}: machine
+.endif
+.if defined(OBJS)
+${OBJS}: machine
+.endif
+
+beforedepend: machine
+machine:
+ ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine
OpenPOWER on IntegriCloud