summaryrefslogtreecommitdiff
path: root/lib/libarch/Makefile
blob: 4c1ea1b2cf43770f65463e3c3b3f2ed0fc685beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#	$Id: Makefile,v 1.7 1994/07/02 22:32:15 cgd 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