remove stuff from the wrong directory. oops.

This commit is contained in:
mrg 2011-06-21 05:34:50 +00:00
parent a93fef591a
commit c6121f4c92
21 changed files with 0 additions and 770 deletions

View File

@ -1,21 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
NOOBJ=# defined
.include <bsd.own.mk>
.if ${MKGCC} != "no" && exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
SUBDIR+= host-libiberty libiberty .WAIT \
backend .WAIT \
frontend .WAIT \
libcpp gcov .WAIT \
cc1 cc1obj cc1plus cpp g++ gcc \
include protoize unprotoize
.include <bsd.subdir.mk>
.else
# Do nothing. (PROG undefined)
.include <bsd.prog.mk>
.endif

View File

@ -1,44 +0,0 @@
# $NetBSD: Makefile.backend,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
NOMAN= # defined
BINDIR= /usr/libexec
CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} \
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
.include <bsd.own.mk>
DPADD= ${BACKENDOBJ}/libbackend.a ${LIBIBERTYOBJ}/libiberty.a
LDADD= -L${BACKENDOBJ} -lbackend -L${LIBIBERTYOBJ} -liberty
CLEANFILES+= ${PROG}-checksum.c ${PROG}-dummy dummy-checksum.d \
dummy-checksum.o genchecksum genchecksum.lo
.include <bsd.prog.mk>
# Don't auto-frob .y or .l files.
.l.c .y.c .y.h:
@true
CPPFLAGS.genchecksum.c+= -DGENERATOR_FILE -I${GCCARCH} -I${DIST}/include -I${BACKENDOBJ}
genchecksum.lo:
genchecksum: genchecksum.lo
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
# This is a copy of the ${PROG} target from bsd.prog.mk.
DUMMYOBJS= ${SRCS:N${PROG}-checksum.c:.c=.o} dummy-checksum.o
${PROG}-dummy: ${DUMMYOBJS}
${_MKTARGET_LINK}
.if defined(DESTDIR)
${_CCLINK} -Wl,-nostdlib \
${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${_PROGLDOPTS} \
-B${_GCC_CRTDIR}/ -B${DESTDIR}/usr/lib/ \
${DUMMYOBJS} ${LDADD} \
-L${_GCC_LIBGCCDIR} -L${DESTDIR}/usr/lib
.else
${_CCLINK} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${_PROGLDOPTS} ${DUMMYOBJS} ${LDADD}
.endif # defined(DESTDIR)
${PROG}-checksum.c: genchecksum ${PROG}-dummy
${_MKTARGET_CREATE}
./genchecksum ${PROG}-dummy >${.TARGET}

View File

@ -1,23 +0,0 @@
# $NetBSD: Makefile.frontend,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
BINDIR= /usr/bin
CPPFLAGS+= -I${GCCARCH} -I${FRONTENDOBJ} \
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
.include <bsd.own.mk>
DPADD= ${FRONTENDOBJ}/libfrontend.a ${LIBIBERTYOBJ}/libiberty.a
LDADD= -L${FRONTENDOBJ} -lfrontend -L${LIBIBERTYOBJ} -liberty
.include <bsd.prog.mk>
gcc-vers.texi:
(echo "@set version-GCC $(BASEVER)"; \
if [ "$(DEVPHASE)" = "experimental" ]; then \
echo "@set DEVELOPMENT"; \
else \
echo "@clear DEVELOPMENT"; \
fi) > ${.TARGET}
CLEANFILES+= gcc-vers.texi

View File

@ -1,66 +0,0 @@
# $NetBSD: Makefile.inc,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
.include <bsd.own.mk>
TOP= ${NETBSDSRCDIR}/gnu
DIST= ${TOP}/dist/gcc4
GCCARCH= ${.CURDIR}/../arch/${MACHINE_ARCH}
CPPFLAGS+= -DLOCALEDIR=\"/usr/share/locale\" -DNETBSD_NATIVE
HOST_CPPFLAGS+= -I${.CURDIR}/..
.if ${USETOOLS} == "yes"
COMPATOBJDIR!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
NBCOMPATLIB= -L${COMPATOBJDIR} -lnbcompat
.endif
GNUHOSTDIST= ${DIST}
BUILD_PREFIX= ${C_BUILD_PREFIX}
LIBIBERTYOBJ!= cd ${.CURDIR}/../libiberty && ${PRINTOBJDIR}
FRONTENDOBJ!= cd ${.CURDIR}/../frontend && ${PRINTOBJDIR}
BACKENDOBJ!= cd ${.CURDIR}/../backend && ${PRINTOBJDIR}
LIBCPPOBJ!= cd ${.CURDIR}/../libcpp && ${PRINTOBJDIR}
HOSTLIBIBERTYOBJ!= cd ${.CURDIR}/../host-libiberty && ${PRINTOBJDIR}
HOSTLIBIBERTY= ${HOSTLIBIBERTYOBJ}/libiberty/libiberty.a
BASEVER!= cat ${GNUHOSTDIST}/gcc/BASE-VER
DEVPHASE!= cat ${GNUHOSTDIST}/gcc/DEV-PHASE
DATESTAMP!= cat ${GNUHOSTDIST}/gcc/DATESTAMP
BASEVERSTR= "\"$(BASEVER)\""
.if !empty(DEVPHASE)
DEVPHASESTR= "\" $(DEVPHASE)\""
.else
DEVPHASESTR= "\"\""
.endif
.if !empty(DEVPHASE)
DATESTAMPSTR= "\" $(DATESTAMP)\""
.else
DATESTAMPSTR= "\"\""
.endif
VER_CPPFLAGS= -DBASEVER=${BASEVERSTR} \
-DDATESTAMP=${DATESTAMPSTR} \
-DDEVPHASE=${DEVPHASESTR}
CPPFLAGS.version.c= ${VER_CPPFLAGS}
.include "${GCCARCH}/defs.mk"
.if ${MKPIC} != "no"
.if ${G_ENABLE_SHARED} == "yes" && ${G_SHLIB_LINK} != ""
CPPFLAGS+= -DENABLE_SHARED_LIBGCC
.endif
.if empty(G_SHLIB_MULTILIB)
CPPFLAGS+= -DNO_SHARED_LIBGCC_MULTILIB
.endif
.endif
# This depends on the "extern inline" mess, so downgrade to something safe.
# CPPFLAGS is applied after CFLAGS, which gets the -std=gnu99
CPPFLAGS+= -std=gnu89
NOCLANGERROR= # defined

View File

@ -1,4 +0,0 @@
# $NetBSD: Makefile.libcpp,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
DPADD+= ${LIBCPPOBJ}/libcpp.a
LDADD+= ${LIBCPPOBJ}/libcpp.a

View File

@ -1,307 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
LIBISPRIVATE= yes
LIB= backend
SRCS= ${G_OBJS:.o=.c} ${G_out_file:T}
CPPFLAGS+= -I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
-DTARGET_NAME=\"${MACHINE_GNU_PLATFORM}\"
HOST_CPPFLAGS+= -I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
DPSRCS+= insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
.include <bsd.lib.mk>
# For early builders.
EXTRADEPENDSEARLY= ${G_BUILD_EARLY_SUPPORT:.o=.lo} ${G_BUILD_RTL:.o=.lo} \
${G_BUILD_ERRORS:.o=.lo}
# Don't auto-frob .y or .l files.
.l.c .y.c .y.h:
@true
#
# Independent generation programs.
#
CLEANFILES+= gengenrtl genrtl.c genrtl.h \
gengtype gtyp-gen.h gtype-desc.c gtype-desc.h \
gtype-c.h gtype-cp.h gtype-f.h gtype-objc.h \
genflags genflags.h \
gencheck tree-check.h \
insn-preds.c genpreds tm-preds.h tm_p.h cs-tm_p.h \
genmodes insn-modes.c insn-modes.h min-insn-modes.c \
auto-host.h build-print-rtl.c \
build-rtl.c build-errors.c build-varray.c \
build-bitmap.c build-ggc-none.c \
gt-*.h *.o *.lo \
cs-config.h \
gcov-iov gcov-iov.h \
#
# These files have special needs
#
.for f in \
build-errors build-ggc-none build-print-rtl build-rtl build-varray dummy-conditions gcov-iov genattr genattrtab genautomata gencheck genchecksum gencodes genconditions genconfig genconstants genemit genextract genflags gengenrtl gengtype gengtype-lex gengtype-yacc genmddeps genmodes genopinit genoutput genpeep genpreds genrecog gensupport insn-conditions min-insn-modes read-rtl
CPPFLAGS.${f}.c= -DGENERATOR_FILE
.endfor
# XXX
COPTS.varasm.c= -Wno-error
# Headers that host objects depend on (except gen*rtl*)
HH_NORTL= ${G_tm_file_list} ${G_build_xm_include_list}
HH= ${HH_NORTL} genrtl.h insn-modes.h
#
# Generate the various header files we need.
#
genrtl.c: gengenrtl
${_MKTARGET_CREATE}
./gengenrtl >${.TARGET}
genrtl.h: gengenrtl
${_MKTARGET_CREATE}
./gengenrtl -h >${.TARGET}
gengenrtl.lo: ${HH_NORTL}
gengenrtl: gengenrtl.lo build-errors.lo
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
tm-preds.h: genpreds ${G_md_file}
${_MKTARGET_CREATE}
./genpreds -h ${G_md_file} >${.TARGET}
insn-preds.c: genpreds ${G_md_file}
${_MKTARGET_CREATE}
./genpreds ${G_md_file} >${.TARGET}
genpreds.lo: ${HH}
genpreds: genpreds.lo ${EXTRADEPENDSEARLY}
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
tree-check.h: gencheck
${_MKTARGET_CREATE}
./gencheck >${.TARGET}
gencheck.lo: ${HH}
gencheck: gencheck.lo
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
gtype-desc.c: gtype-desc.h
gtype-desc.h: gengtype
${_MKTARGET_CREATE}
rm -f auto-host.h
ln -s ${.CURDIR}/../arch/${MACHINE_ARCH}/auto-host.h .
./gengtype
# gengtype is the real need for options.h
gengtype.lo gengtype-lex.lo gengtype-yacc.lo: ${HH} gtyp-gen.h config.h options.h
gengtype: gengtype.lo gengtype-lex.lo gengtype-yacc.lo build-errors.lo
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
gtyp-gen.h: Makefile
${_MKTARGET_CREATE}
(\
echo "static const char *srcdir = \"$(G_GTFILES_SRCDIR)\";" ; \
echo "static const char *lang_files[] = {" ; \
for f in $(G_GTFILES_FILES_FILES); do echo "\"$$f\", "; done ; \
echo "NULL };" ; \
echo "static const char *langs_for_lang_files[] = {" ; \
for f in $(G_GTFILES_FILES_LANGS); do echo "\"$$f\", "; done ; \
echo "NULL };" ; \
echo "static const char *all_files[] = {" ; \
for f in $(G_GTFILES); do echo "\"$$f\", "; done ; \
echo " NULL };" ; \
echo "static const char *lang_dir_names[] = {" ; \
echo "\"c\", " ; \
for f in $(G_GTFILES_LANG_DIR_NAMES); do echo "\"$$f\", "; done ; \
echo "NULL };" ; \
) >${.TARGET}
insn-modes.c: genmodes
${_MKTARGET_CREATE}
./genmodes >${.TARGET}
insn-modes.h: genmodes
${_MKTARGET_CREATE}
./genmodes -h >${.TARGET}
min-insn-modes.c: genmodes
${_MKTARGET_CREATE}
./genmodes -m >${.TARGET}
genmodes.lo: ${HH_NORTL}
genmodes: genmodes.lo build-errors.lo
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
gcov-iov.h: gcov-iov
${_MKTARGET_CREATE}
./gcov-iov "${BASEVER}" "${DEVPHASE}" >${.TARGET}
gcov-iov.lo: ${HH_NORTL}
gcov-iov: gcov-iov.lo
${_MKTARGET_CREATE}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
#config.h: Makefile
# ${_MKTARGET_CREATE}
# TM_DEFINES="$(G_tm_defines)" \
# HEADERS="$(G_host_xm_file)" XM_DEFINES="$(G_host_xm_defines)" \
# TARGET_CPU_DEFAULT="$(G_target_cpu_default)" \
# ${HOST_SH} ${GNUHOSTDIST}/gcc/mkconfig.sh ${.TARGET}
tm_p.h: Makefile
${_MKTARGET_CREATE}
TARGET_CPU_DEFAULT="" \
HEADERS="$(G_tm_p_include_list)" DEFINES="" \
${HOST_SH} ${GNUHOSTDIST}/gcc/mkconfig.sh ${.TARGET}
CLEANFILES+= options.h options.c optionlist
optionlist: ${G_ALL_OPT_FILES} ${GCCARCH}/defs.mk Makefile ${DIST}/gcc/opt-gather.awk
${TOOL_AWK} -f ${DIST}/gcc/opt-gather.awk ${G_ALL_OPT_FILES} > ${.TARGET}
options.c: optionlist ${DIST}/gcc/opt-functions.awk ${DIST}/gcc/optc-gen.awk
${TOOL_AWK} -f ${DIST}/gcc/opt-functions.awk -f ${DIST}/gcc/optc-gen.awk \
-v header_name="config.h system.h coretypes.h tm.h" < optionlist > ${.TARGET}
options.h: optionlist ${DIST}/gcc/opt-functions.awk ${DIST}/gcc/opth-gen.awk
${TOOL_AWK} -f ${DIST}/gcc/opt-functions.awk -f ${DIST}/gcc/opth-gen.awk \
< optionlist > ${.TARGET}
options.o: options.c coretypes.h opts.h intl.h
#options.o: options.c ${G_CONFIG_H} ${G_SYSTEM_H} coretypes.h ${G_TM_H} opts.h intl.h
# Yuck, we have to run configure to generate this one...
CLEANFILES+= auto-build.h
auto-build.h: Makefile
${_MKTARGET_CREATE}
rm -rf .ab && \
mkdir .ab && \
(cd .ab && \
AWK=${TOOL_AWK:Q} \
CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \
MAKE=${MAKE:Q} \
CONFIG_SHELL=${HOST_SH:Q} \
${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
--build=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
--host=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
--target=${MACHINE_GNU_PLATFORM} && \
mv auto-host.h ../auto-build.h) && \
rm -rf .ab
#
# These are copies of files we build for the build host that are used
# by the genfoo programs.
#
build-rtl.c: rtl.c \
${G_RTL_H} real.h ${G_GCC_H} errors.h gtype-desc.h
${_MKTARGET_CREATE}
rm -f build-rtl.c
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/rtl.c >${.TARGET}
build-rtl.lo: ${HH}
build-print-rtl.c: print-rtl.c \
${G_RTL_H} ${G_TREE_H} hard-reg-set.h ${G_BASIC_BLOCK_H}
${_MKTARGET_CREATE}
rm -f buid-print-rtl.c
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/print-rtl.c >${.TARGET}
build-print-rtl.lo: ${HH}
build-bitmap.c: bitmap.c \
${G_RTL_H} flags.h ${G_BASIC_BLOCK_H} ${REGS_H} ${G_GCC_H} gtype-desc.h
${_MKTARGET_CREATE}
rm -f build-bitmap.c
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/bitmap.c >${.TARGET}
build-bitmap.lo: ${HH}
build-errors.c: errors.c errors.h
${_MKTARGET_CREATE}
rm -f build-errors.c
cat ${GNUHOSTDIST}/gcc/errors.c >${.TARGET}
build-errors.lo: ${HH_NORTL}
build-varray.c: varray.c \
${G_RTL_H} ${G_GCC_H} ${TREE_H} bitmap.h errors.h
${_MKTARGET_CREATE}
rm -f build-varray.c
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/varray.c >${.TARGET}
build-varray.lo: ${HH} gtype-desc.h
build-ggc-none.c: ggc-none.c \
${G_GCC_H} gtype-desc.h
${_MKTARGET_CREATE}
rm -f build-ggc-none.c
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/ggc-none.c >${.TARGET}
build-ggc-none.lo: ${HH}
#
# The `early' insn-foo generators
#
.for f in conditions.c constants.h
CLEANFILES+= gen${f:R} insn-${f}
gen${f:R}.lo: gen${f:R}.c ${HH}
gen${f:R}: gen${f:R}.lo ${EXTRADEPENDSEARLY}
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
insn-${f}: gen${f:R} ${G_md_file}
${_MKTARGET_CREATE}
./gen${f:R} ${G_md_file} >${.TARGET}
.endfor
#
# The normal insn-foo generators
#
.for f in gensupport.c read-rtl.c dummy-conditions.c
${f:R}.lo: ${HH}
.endfor
EXTRADEPENDS= ${G_BUILD_RTL:.o=.lo} ${G_BUILD_SUPPORT:.o=.lo} \
${G_BUILD_PRINT:.o=.lo} ${G_BUILD_ERRORS:.o=.lo}
.for f in attr.h codes.h config.h emit.c extract.c flags.h opinit.c output.c \
peep.c recog.c
CLEANFILES+= gen${f:R} insn-${f}
gen${f:R}.lo: ${HH}
gen${f:R}: gen${f:R}.lo ${EXTRADEPENDS}
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
insn-${f}: gen${f:R} ${G_md_file}
${_MKTARGET_CREATE}
./gen${f:R} ${G_md_file} >${.TARGET}
.endfor
#
# "One of these things is not like the other"
#
CLEANFILES+= genattrtab insn-attrtab.c
genattrtab.lo: ${HH} gtype-desc.h
genautomata.lo: ${HH}
genattrtab: genattrtab.lo genautomata.lo ${EXTRADEPENDS} ${G_BUILD_VARRAY:.o=.lo}
${_MKTARGET_LINK}
${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} -lm
insn-attrtab.c: genattrtab ${G_md_file}
${_MKTARGET_CREATE}
./genattrtab ${G_md_file} >${.TARGET}
#
# Required hard-coded dependancies.
#
genextract.lo: insn-config.h
insn-conditions.lo: insn-constants.h tm_p.h tm-preds.h
build-ggc-none.lo: gtype-desc.h
ggc-none.o: gtype-desc.h
insn-attrtab.o: insn-config.h
insn-extract.o: insn-config.h
toplev.d toplev.o: options.h
coverage.d: gcov-iov.h
gcov-io.h: gcov-iov.h
COPTS+=-Wno-stack-protector
.PATH: ${DIST}/gcc ${DIST}/libiberty ${GCCARCH} ${G_out_file:H} ${DIST}/include

View File

@ -1,12 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
PROG= cc1
SRCS= ${G_C_OBJS:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
CPPFLAGS+= -DPREFIX=\"/usr\"
.include "../Makefile.backend"
.include "../Makefile.libcpp"
COPTS+= -Wno-stack-protector
.PATH: ${DIST}/gcc ${G_out_file:H}

View File

@ -1,15 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
MYOBJS= ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS}
PROG= cc1obj
SRCS= ${MYOBJS:S/objc\///:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
CPPFLAGS+= -I${DIST}/gcc/objc
CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
.include "../Makefile.backend"
.include "../Makefile.libcpp"
COPTS+= -Wno-stack-protector
.PATH: ${DIST}/gcc/objc ${DIST}/gcc ${G_out_file:H}

View File

@ -1,15 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
PROG= cc1plus
SRCS= ${G_CXX_OBJS:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
CPPFLAGS+= -I${DIST}/gcc/cp
CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
.include "../Makefile.backend"
.include "../Makefile.libcpp"
# YUCK. but see timevar.h:POP_TIMEVAR_AND_RETURN
CFLAGS+= -Wno-error # not good enough: -Wno-return-type
.PATH: ${DIST}/gcc/cp ${DIST}/gcc ${G_out_file:H}

View File

@ -1,24 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
.include <bsd.own.mk>
PROG= cpp
SRCS= cppspec.c
CPPFLAGS+= -I${BACKENDOBJ}
LINKS= ${BINDIR}/cpp ${BINDIR}/gcpp
TEXINFO= cpp.texi
INFOFLAGS= -I${DIST}/gcc/doc -I${DIST}/gcc/doc/include -I.
MAN= cpp.1
MLINKS+= cpp.1 gcpp.1 cpp.1 cccp.1
.include "../Makefile.frontend"
.include <bsd.info.mk>
.PATH: ${DIST}/gcc ${DIST}/gcc/doc
cpp.info: gcc-vers.texi

View File

@ -1,37 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
LIBISPRIVATE= yes
# For ../Makefile.inc and bsd.own.mk
.include <bsd.init.mk>
LIB= frontend
SRCS= gcc.c version.c intl.c prefix.c
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}\"
HOST_CPPFLAGS+= -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
DPSRCS+= specs.h
MKPIC:= no
MKPICLIB:= no
.include <bsd.lib.mk>
COPTS+= -Wno-stack-protector
.PATH: ${DIST}/gcc
#
# Build the specs.h file
#
CLEANFILES+= specs.h
specs.h: Makefile
for f in cp objc; do \
echo "#include \"$$f/lang-specs.h\""; \
done > specs.h

View File

@ -1,17 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
PROG= gplusplus
PROGNAME= g++
SRCS= g++spec.c
NOMAN= # defined
.include <bsd.own.mk>
CPPFLAGS+= -I${BACKENDOBJ}
LINKS+= ${BINDIR}/g++ ${BINDIR}/c++
.include "../Makefile.frontend"
.PATH: ${DIST}/gcc ${DIST}/gcc/cp

View File

@ -1,26 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
.include <bsd.own.mk>
PROG= gcc
SRCS= gccspec.c
CPPFLAGS+= -I${BACKENDOBJ}
LINKS+= ${BINDIR}/gcc ${BINDIR}/cc
MAN= gcc.1
MLINKS= gcc.1 cc.1 gcc.1 g++.1 gcc.1 c++.1
TEXINFO= gcc.texi
INFOFLAGS= -I${DIST}/gcc/doc -I${DIST}/gcc/doc/include
.include "../Makefile.frontend"
.PATH: ${DIST}/gcc ${DIST}/gcc/doc
.include <bsd.info.mk>
COPTS.builtins.c = -Wno-stack-protector
gcc.info: gcc-vers.texi

View File

@ -1,18 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
.include <bsd.own.mk>
PROG= gcov
SRCS= ${G_GCOV_OBJS:.o=.c}
CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
BINDIR= /usr/bin
MAN= gcov.1
.include <bsd.prog.mk>
LDADD= -L${LIBIBERTYOBJ} -liberty
.PATH: ${DIST}/gcc

View File

@ -1,18 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
libiberty/libiberty.a:
[ ! -d libiberty ] && mkdir libiberty || true
(cd libiberty; \
CC=${HOST_CC:Q} \
CFLAGS=${HOST_CFLAGS:Q} \
MAKE=${MAKE:Q} \
CONFIG_SHELL=${HOST_SH:Q} \
${HOST_SH} ${DIST}/libiberty/configure \
&& CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} ${MAKE})
cleandir:
-rm -rf libiberty
depend dependall all: libiberty/libiberty.a
.include <bsd.prog.mk>

View File

@ -1,21 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
.include "../Makefile.inc"
.if ${MACHINE_CPU} == "powerpc"
INCS= altivec.h
.elif ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
INCS= emmintrin.h mmintrin.h pmmintrin.h xmmintrin.h mm_malloc.h
# We don't have posix_memalign, so use the gmm_malloc.h version.
mm_malloc.h: ${DIST}/gcc/config/i386/gmm_malloc.h
cp $> ${.TARGET}
CLEANFILES+= mm_malloc.h
.endif
INCSDIR= /usr/include/gcc-4.1
.include <bsd.prog.mk>
.PATH: ${G_out_file:H}

View File

@ -1,25 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
LIBISPRIVATE= yes
LIB= cpp
SRCS= ${G_libcpp_a_OBJS:.o=.c}
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH} \
-I${GCCARCH} -I${BACKENDOBJ} \
${G_INCLUDES:M-I*:N-I.*} \
-DPREFIX=\"/usr\"
# XXX gcc332 gets an ICE compiling cppmacro.c with -O2.
#.if ${MACHINE_ARCH} == "ns32k"
#COPTS.cppmacro.c= -O1
#.endif
.include <bsd.lib.mk>
COPTS+= -Wno-stack-protector
${OBJS}: ${G_LIBCPP_DEPS}
.PATH: ${DIST}/libcpp
# ${DIST}/gcc

View File

@ -1,27 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
LIBISPRIVATE= yes
.include <bsd.own.mk>
LIB= iberty
.include "${.CURDIR}/defs.mk"
DIST= ${NETBSDSRCDIR}/gnu/dist/gcc4
GNUHOSTDIST= ${DIST}
SRCS= ${G_REQUIRED_OFILES:.o=.c} ${G_EXTRA_OFILES:.o=.c} \
${G_LIBOBJS:.o=.c} ${G_ALLOCA:.o=.c}
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/arch/${MACHINE_ARCH} \
-I${DIST}/include
COPTS.argv.c = -Wno-stack-protector
COPTS.cp-demangle.c = -Wno-stack-protector
COPTS.make-relative-prefix.c = -Wno-stack-protector
COPTS.regex.c = -Wno-stack-protector
.PATH: ${DIST}/libiberty
.include <bsd.lib.mk>

View File

@ -1,8 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.45 2009/12/17 15:48:13 uebayasi Exp
# Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp
#
G_ALLOCA=
G_EXTRA_OFILES=
G_LIBOBJS=mempcpy.o mkstemps.o strverscmp.o strncmp.o
G_REQUIRED_OFILES=regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o concat.o cp-demint.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o fopen_unlocked.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o physmem.o pex-common.o pex-one.o pex-unix.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o unlink-if-ordinary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o xstrndup.o

View File

@ -1,21 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
NOMAN= # defined
.include <bsd.own.mk>
PROG= protoize
SRCS= protoize.c ${G_PROTO_OBJS:.o=.c}
CPPFLAGS+= -I${BACKENDOBJ} \
-DDEFAULT_TARGET_MACHINE=\"\" \
-DDEFAULT_TARGET_VERSION=\"\"
.include "../Makefile.frontend"
COPTS+= -Wno-stack-protector
.PATH: ${DIST}/gcc
.include <bsd.info.mk>

View File

@ -1,21 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/06/21 02:48:27 mrg Exp $
NOMAN= # defined
.include <bsd.own.mk>
PROG= unprotoize
SRCS= protoize.c ${G_PROTO_OBJS:.o=.c}
CPPFLAGS+= -I${BACKENDOBJ} \
-DUNPROTOIZE \
-DDEFAULT_TARGET_MACHINE=\"\" \
-DDEFAULT_TARGET_VERSION=\"\"
.include "../Makefile.frontend"
COPTS+= -Wno-stack-protector
.PATH: ${DIST}/gcc
.include <bsd.info.mk>