xref: /netbsd-src/lib/libarch/Makefile (revision ae9172d6cd9432a6a1a56760d86b32c57a66c39c)
1#	$Id: Makefile,v 1.7 1994/07/02 22:32:15 cgd Exp $
2
3.if exists(${.CURDIR}/${MACHINE})
4.PATH:	${.CURDIR}/${MACHINE}
5.include "${.CURDIR}/${MACHINE}/Makefile.inc"
6AINC+= -I${.CURDIR}/${MACHINE}
7.endif
8
9.if exists(${.CURDIR}/${MACHINE_ARCH}) && (${MACHINE} != ${MACHINE_ARCH})
10.PATH:	${.CURDIR}/${MACHINE_ARCH}
11.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
12AINC+= -I${.CURDIR}/${MACHINE_ARCH}
13.endif
14
15OBJS+= ${ASM}
16POBJS+=	${ASM:.o=.po}
17CLEANFILES+= ${ASM} ${POBJS}
18
19
20.if exists(${.CURDIR}/${MACHINE}) || exists(${.CURDIR}/${MACHINE_ARCH})
21# then there's a lib for this machine/machine architecture
22LIB=	${MACHINE}
23.include <bsd.lib.mk>
24.else
25# there's NOT, so get the targets right
26all:
27clean:
28cleandir:
29depend:
30install:
31lint:
32obj:
33.endif
34