summaryrefslogtreecommitdiff
path: root/sys/arch/aviion/stand/libz
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/aviion/stand/libz')
-rw-r--r--sys/arch/aviion/stand/libz/Makefile8
-rw-r--r--sys/arch/aviion/stand/libz/Makefile.inc14
2 files changed, 22 insertions, 0 deletions
diff --git a/sys/arch/aviion/stand/libz/Makefile b/sys/arch/aviion/stand/libz/Makefile
new file mode 100644
index 00000000000..2f50fcf7123
--- /dev/null
+++ b/sys/arch/aviion/stand/libz/Makefile
@@ -0,0 +1,8 @@
+# $OpenBSD: Makefile,v 1.1 2006/05/16 22:48:18 miod Exp $
+
+S=${.CURDIR}/../../../..
+ZDST=${.OBJDIR}
+
+.PATH: ${S}/lib/libz
+
+.include "${S}/lib/libz/Makefile"
diff --git a/sys/arch/aviion/stand/libz/Makefile.inc b/sys/arch/aviion/stand/libz/Makefile.inc
new file mode 100644
index 00000000000..1ee745fd0f9
--- /dev/null
+++ b/sys/arch/aviion/stand/libz/Makefile.inc
@@ -0,0 +1,14 @@
+# $OpenBSD: Makefile.inc,v 1.1 2006/05/16 22:48:18 miod Exp $
+
+LIB_Z_DIR=${S}/arch/aviion/stand/libz
+
+LIBZ_DIR!= cd ${LIB_Z_DIR}; \
+ printf "xxx:\n\techo \$${.OBJDIR}\n" | ${MAKE} -r -s -f - xxx
+
+LIBZ=${LIBZ_DIR}/libz.a
+
+$(LIBZ): .NOTMAIN __always_make_libz
+ @echo making sure the libz is up to date...
+ @(cd ${LIB_Z_DIR}; ${MAKE} "XCFLAGS=${CFLAGS}")
+
+__always_make_libz: .NOTMAIN