summaryrefslogtreecommitdiff
path: root/sys/arch/aviion/stand/libsa/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/aviion/stand/libsa/Makefile.inc')
-rw-r--r--sys/arch/aviion/stand/libsa/Makefile.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arch/aviion/stand/libsa/Makefile.inc b/sys/arch/aviion/stand/libsa/Makefile.inc
new file mode 100644
index 00000000000..e7684c0719a
--- /dev/null
+++ b/sys/arch/aviion/stand/libsa/Makefile.inc
@@ -0,0 +1,15 @@
+# $OpenBSD: Makefile.inc,v 1.1 2006/05/16 22:48:18 miod Exp $
+
+LIB_SA_DIR=${S}/arch/aviion/stand/libsa
+
+LIBSA_DIR!= cd ${LIB_SA_DIR}; \
+ printf "xxx:\n\techo \$${.OBJDIR}\n" | ${MAKE} -r -s -f - xxx
+
+LIBSA=${LIBSA_DIR}/libsa.a
+SRTOBJ?= ${LIBSA_DIR}/SRT0.o
+
+$(LIBSA): .NOTMAIN __always_make_libsa
+ @echo making sure the libsa is up to date...
+ @(cd ${LIB_SA_DIR}; ${MAKE} "XCFLAGS=${CFLAGS}")
+
+__always_make_libsa: .NOTMAIN