blob: 2feb3dad8e3dd2793ec28f4faa58455576fbe775 (
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
45
46
47
48
49
50
51
52
|
# $NetBSD: Makefile,v 1.4 2014/05/31 22:55:17 mrg Exp $
LIBISPRIVATE= yes
# For ../Makefile.inc and bsd.own.mk
.include <bsd.init.mk>
LIB= common-target
SRCS= prefix.c params.c opts.c opts-common.c options.c vec.c \
hooks.c common-targhooks.c hash-table.c file-find.c \
${G_common_out_file:T}
CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} -I. \
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
-DPREFIX=\"/usr\" \
-DDEFAULT_TARGET_VERSION=\"${G_version}\" \
-DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \
-DCONFIGURE_SPECS="\"\"" \
-I${BACKENDOBJ}
COPTS.prefix.c= -Wno-stack-protector
COPTS.opts-common.c= -Wno-stack-protector
GENPROG_ERROR_DEPENDS=errors.lo
.include "../Makefile.options"
.include "../../Makefile.hooks"
${SRCS}: ${GCCARCH}/defs.mk
${G_common_out_file:T:R}.o: common/common-target-hooks-def.h
DPSRCS+= options.h
HOST_CPPFLAGS+= -I${BACKENDOBJ} -I${GCCARCH} -I. -I${DIST}/include -I${DIST}/gcc
HOST_CPPFLAGS+= -DGENERATOR_FILE
MKPIC:= no
MKPICLIB:= no
HOSTPROG_CXX= 1
.include <bsd.lib.mk>
# Force using C++ for this
HOST_CC:= ${HOST_CXX}
CC:= ${CXX}
CFLAGS:= ${CXXFLAGS}
.PATH: ${DIST}/gcc ${DIST}/gcc/common
.PATH: ${G_common_out_file:H}
|