Improve the process for GNU tools
[minix3.git] / external / gpl3 / gcc / usr.bin / Makefile.gcc-tool
blobd439a1b74070c662955b53a0f06c4eadb85293fe
1 #       $NetBSD: Makefile.gcc-tool,v 1.2 2014/05/31 22:55:16 mrg Exp $
3 PROG=   gcc-${GCC_TOOL}
4 SRCS=   gcc-ar.c file-find.c
6 CPPFLAGS= \
7         -DPERSONALITY=\"${GCC_TOOL}\" \
8         -DSTANDARD_EXEC_PREFIX=\"/usr/bin\" \
9         -DSTANDARD_LIBEXEC_PREFIX=\"/usr/lib\" \
10         -DSTANDARD_BINDIR_PREFIX=\"/usr/bin\" \
11         -DTOOLDIR_BASE_PREFIX=\"/usr/bin\" \
12         -DDEFAULT_TARGET_MACHINE=\"\" \
13         -DDEFAULT_TARGET_VERSION=\"\"
15 # Skip these because we don't have them in paths.
16 #       -DDEFAULT_TARGET_VERSION=\"${G_version}\"
17 #       -DDEFAULT_TARGET_MACHINE=\"{GNU_MACHINE_ARCH}\"
19 # ${SRCS}: ${GCCARCH}/defs.mk
21 CPPFLAGS+=      -I${GCCARCH} -I${BACKENDOBJ} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
23 BINDIR=         /usr/bin
24 NOMAN=          # defined
26 .include <bsd.prog.mk>
28 # Force using C++ for this
29 HOST_CC:=       ${HOST_CXX}
30 CC:=            ${CXX}
31 CFLAGS:=        ${CXXFLAGS}
33 .include "../Makefile.common"
34 .include "../Makefile.libcpp"
35 .include "../Makefile.backtrace"
36 .include "../Makefile.libiberty"
37 .include "../Makefile.libdecnumber"
39 COPTS+=         -Wno-stack-protector
41 .PATH: ${DIST}/gcc