blob: 1451eba1958e9d00b124c175dcbe9cd5143211bf (
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
34
35
36
37
38
39
40
41
|
# $OpenBSD: Makefile.inc,v 1.5 2002/02/04 22:17:56 mickey Exp $
#
# NOTE: $S must correspond to the top of the 'sys' tree
# $HPPA must correspond to the top of hppa tree
SPMATHDIR= ${HPPA}/spmath
SPMATHDST?= ${.OBJDIR}/lib/spmath
SPMATH= ${SPMATHDST}/spmath.o
SPMATH_PROF= ${SPMATHDST}/spmath.po
SPMATHMAKE= \
cd ${SPMATHDIR} && MAKEOBJDIR=${SPMATHDST} ${MAKE} \
CC='${CC}' CFLAGS='${CFLAGS}' \
CPPFLAGS='${CPPFLAGS:S@^-I.@-I../../.@g}'\
AS='${AS}' AFLAGS='${AFLAGS}' \
LD='${LD}' STRIP='${STRIP}' \
CPP='${CPP}' STRIP='${STRIP}' AR='${AR}' \
NM='${NM}' LORDER='${LORDER}' \
XMACHINE='${MACHINE}' XMACHINE_ARCH='${MACHINE_ARCH}' \
${SPMATH}: .NOTMAIN __always_make_spmath
@echo making sure the spmath library is up to date...
@${SPMATHMAKE} spmath.o
${SPMATH_PROF}: .NOTMAIN __always_make_spmath
@echo making sure the profiled spmath library is up to date...
@${SPMATHMAKE} spmath.po
clean:: .NOTMAIN __always_make_spmath
@echo cleaning the spmath library objects
@${SPMATHMAKE} clean
depend:: .NOTMAIN __always_make_spmath
@echo depending the spmath library objects
@${SPMATHMAKE} depend
__always_make_spmath: .NOTMAIN
-mkdir -p ${SPMATHDST}
|