blob: a5ba3f8c7086f573f3b8442941a2a1ede55427e8 (
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
42
43
44
|
# $NetBSD: Makefile,v 1.6 2001/10/18 06:12:48 matt Exp $
# Makefile for _G_config.h, a machine-dependent automatically generated
# configuration file.
INCS= _G_config.h
.if ${MACHINE_ARCH} == "arm"
INCSDIR= /usr/include/${MACHINE_ARCH}
.else
INCSDIR= /usr/include/${MACHINE}
.endif
.include <bsd.own.mk>
.if defined(USE_NEW_TOOLCHAIN)
.PATH: ${.CURDIR}/../arch/${MACHINE_ARCH}
.else
# Old toolchain goop
DPSRCS= _G_config.h
CLEANFILES= dummy.c dummy.h dummy.C _G_config.h
DIST= ${.CURDIR}/../../../dist
.ifdef DESTDIR
LDPRE= -nostdlib -L${DESTDIR}/usr/lib -R${DESTDIR}/usr/lib ${LIBCRT0} \
${LIBCRTBEGIN}
LDSUF= -lgcc -lc -lgcc ${LIBCRTEND}
.endif
_G_config.h: Makefile ${DIST}/libio/gen-params
rootme=${.OBJDIR} CC="${CC}" CXX="${CXX}" CONFIG_NM="${NM}" \
CPP="${CC} -E" CPPFLAGS="${CPPFLAGS}" LDPRE="${LDPRE}" \
LDSUF="${LDSUF}" \
/bin/sh ${DIST}/libio/gen-params LIB_VERSION=2.9.0 >$@
all: ${DPSRCS}
.endif
.include <bsd.prog.mk>
incinstall:: linksinstall
|