summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/stand/libkern/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hp300/stand/libkern/Makefile.inc')
-rw-r--r--sys/arch/hp300/stand/libkern/Makefile.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/arch/hp300/stand/libkern/Makefile.inc b/sys/arch/hp300/stand/libkern/Makefile.inc
new file mode 100644
index 00000000000..4dc628fd6a1
--- /dev/null
+++ b/sys/arch/hp300/stand/libkern/Makefile.inc
@@ -0,0 +1,23 @@
+# $OpenBSD: Makefile.inc,v 1.1 1997/01/17 08:33:05 downsj Exp $
+
+# NOTE: $S must correspond to the top of the 'sys' tree
+
+KERN_DIR= $S/arch/hp300/stand/libkern
+
+.if exists($(KERN_DIR)/${__objdir})
+KERN_LIBDIR= $(KERN_DIR)/${__objdir}
+.else
+KERN_LIBDIR= $(KERN_DIR)
+.endif
+
+KERN_LIB= $(KERN_LIBDIR)/libkern.a
+
+$(KERN_LIB): .NOTMAIN __always_make_kern_lib
+ @echo making sure the kernel library is up to date...
+ @(cd $(KERN_DIR) ; make)
+
+clean:: .NOTMAIN __always_make_kern_lib
+ @echo cleaning the kernel library objects
+ @(cd $(KERN_DIR) ; make clean)
+
+__always_make_kern_lib: .NOTMAIN