summaryrefslogtreecommitdiff
path: root/lib/libarch/Makefile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
commitd6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch)
treeece253b876159b39c620e62b6c9b1174642e070e /lib/libarch/Makefile
initial import of NetBSD tree
Diffstat (limited to 'lib/libarch/Makefile')
-rw-r--r--lib/libarch/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/libarch/Makefile b/lib/libarch/Makefile
new file mode 100644
index 00000000000..7c5ef2530f4
--- /dev/null
+++ b/lib/libarch/Makefile
@@ -0,0 +1,33 @@
+# $Id: Makefile,v 1.1 1995/10/18 08:41:19 deraadt Exp $
+
+.if exists(${.CURDIR}/${MACHINE})
+.PATH: ${.CURDIR}/${MACHINE}
+.include "${.CURDIR}/${MACHINE}/Makefile.inc"
+AINC+= -I${.CURDIR}/${MACHINE}
+.endif
+
+.if exists(${.CURDIR}/${MACHINE_ARCH}) && (${MACHINE} != ${MACHINE_ARCH})
+.PATH: ${.CURDIR}/${MACHINE_ARCH}
+.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
+AINC+= -I${.CURDIR}/${MACHINE_ARCH}
+.endif
+
+OBJS+= ${ASM}
+POBJS+= ${ASM:.o=.po}
+CLEANFILES+= ${ASM} ${POBJS}
+
+
+.if exists(${.CURDIR}/${MACHINE}) || exists(${.CURDIR}/${MACHINE_ARCH})
+# then there's a lib for this machine/machine architecture
+LIB= ${MACHINE}
+.include <bsd.lib.mk>
+.else
+# there's NOT, so get the targets right
+all:
+clean:
+cleandir:
+depend:
+install:
+lint:
+obj:
+.endif