merge the common CPPFLAGS and HOST_CPPFLAGS. put -DGENERATOR_FILE
into HOST_CPPFLAGS, and remove the hacky list of files to build with it. this matches what the real GCC build does, and fixes build problems seen on OSX.
This commit is contained in:
parent
ca453df649
commit
2a978aa626
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.9 2011/07/06 01:18:32 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.10 2011/07/19 01:37:59 mrg Exp $
|
||||
|
||||
LIBISPRIVATE= yes
|
||||
|
||||
|
@ -6,9 +6,9 @@ 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.*}
|
||||
BOTH_CPPFLAGS+= -I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
|
||||
CPPFLAGS+= ${BOTH_CPPFLAGS} -DTARGET_NAME=\"${MACHINE_GNU_PLATFORM}\"
|
||||
HOST_CPPFLAGS+= ${BOTH_CPPFLAGS} -DGENERATOR_FILE
|
||||
DPSRCS+= insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
|
||||
CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
|
||||
CPPFLAGS.cppdefault.c+= -DPREFIX=\"/usr\"
|
||||
|
@ -41,14 +41,6 @@ CLEANFILES+= gengenrtl genrtl.c genrtl.h \
|
|||
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 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
|
||||
|
||||
|
@ -319,4 +311,9 @@ insn-emit.d insn-emit.o: tm-constrs.h
|
|||
|
||||
COPTS+=-Wno-stack-protector
|
||||
|
||||
.if ${MACHINE_ARCH} == "m68000"
|
||||
COPTS.lambda-code.c= -O0
|
||||
COPTS.tree-loop-linear.c= -O0
|
||||
.endif
|
||||
|
||||
.PATH: ${DIST}/gcc ${DIST}/libiberty ${GCCARCH} ${G_out_file:H} ${DIST}/include
|
||||
|
|
Loading…
Reference in New Issue