1998-11-16 12:45:48 +03:00
|
|
|
# $NetBSD: Makefile,v 1.21 1998/11/16 09:45:48 frueauf Exp $
|
1998-03-29 15:34:19 +04:00
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
LIB= cc1
|
|
|
|
|
|
|
|
NOMAN=
|
1998-09-14 03:25:18 +04:00
|
|
|
NOLINKLIB=
|
1998-04-09 04:32:31 +04:00
|
|
|
YHEADER=1
|
1998-04-02 07:33:31 +04:00
|
|
|
|
1998-10-31 05:16:38 +03:00
|
|
|
# GNU (gcc,gas) uses "mips" as arch-dependent filename for mipsel and mipseb
|
|
|
|
.if (${MACHINE_ARCH} == "mips")
|
|
|
|
GCC_ARCH?= ${MACHINE_ARCH}
|
|
|
|
.else
|
|
|
|
GCC_ARCH?= ${MACHINE_GNU_ARCH}
|
|
|
|
.endif
|
|
|
|
|
1998-08-17 06:55:39 +04:00
|
|
|
CPPFLAGS+= -DTARGET_NAME=\"${MACHINE_GNU_ARCH}-netbsd\"
|
|
|
|
CPICFLAGS= -fPIC -DPIC
|
|
|
|
HOST_CPPFLAGS= ${CPPFLAGS}
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-10-31 05:16:38 +03:00
|
|
|
MD= ${DIST}/config/${GCC_ARCH}/${GCC_ARCH}.md
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-08-17 06:55:39 +04:00
|
|
|
BCDEF= ${DIST}/bytecode.def
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-08-17 06:55:39 +04:00
|
|
|
.PATH: ${DIST}
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-10-31 05:16:38 +03:00
|
|
|
SRCS= ${GCC_ARCH}.c toplev.c version.c tree.c print-tree.c \
|
1998-08-17 06:55:39 +04:00
|
|
|
stor-layout.c fold-const.c function.c stmt.c except.c expr.c \
|
|
|
|
calls.c expmed.c explow.c optabs.c varasm.c rtl.c print-rtl.c \
|
|
|
|
rtlanal.c emit-rtl.c genrtl.c real.c regmove.c dbxout.c \
|
|
|
|
sdbout.c dwarfout.c dwarf2out.c xcoffout.c bitmap.c alias.c \
|
|
|
|
integrate.c jump.c cse.c loop.c unroll.c flow.c stupid.c \
|
|
|
|
combine.c varray.c regclass.c local-alloc.c global.c reload.c \
|
|
|
|
reload1.c caller-save.c gcse.c insn-peep.c reorg.c final.c \
|
|
|
|
recog.c reg-stack.c insn-opinit.c insn-recog.c insn-extract.c \
|
|
|
|
insn-output.c insn-emit.c profile.c insn-attrtab.c getpwd.c \
|
|
|
|
convert.c dyn-string.c obstack.c
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-08-17 06:57:04 +04:00
|
|
|
.if defined(USE_EGCS_HAIFA)
|
1998-08-17 06:55:39 +04:00
|
|
|
SRCS+= haifa-sched.c
|
|
|
|
.else
|
|
|
|
SRCS+= sched.c
|
|
|
|
.endif
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-11-15 07:31:06 +03:00
|
|
|
DPSRCS+= s-genrtl genrtl.h s-check tree-check.h
|
1998-08-17 06:55:39 +04:00
|
|
|
CLEANFILES+= bitmap.lo obstack.lo print-rtl.lo rtl.lo rtlanal.lo \
|
|
|
|
gengenrtl gengenrtl.lo genrtl.c genrtl.h \
|
1998-11-15 07:31:06 +03:00
|
|
|
gencheck gencheck.lo tree-check.h \
|
|
|
|
s-genrtl s-check
|
1998-08-17 06:55:39 +04:00
|
|
|
|
|
|
|
gengenrtl: gengenrtl.lo
|
|
|
|
${HOST_LINK.c} -o $@ $>
|
1998-11-15 07:31:06 +03:00
|
|
|
.NOPATH: genrtl.h genrtl.c s-genrtl
|
|
|
|
genrtl.h genrtl.c: s-genrtl
|
|
|
|
s-genrtl: gengenrtl rtl.h rtl.def gansidecl.h machmode.h machmode.def
|
1998-10-14 20:55:52 +04:00
|
|
|
@rm -f ${DIST}/genrtl.h ${DIST}/genrtl.c
|
1998-11-16 12:45:48 +03:00
|
|
|
${.OBJDIR}/gengenrtl tmp-genrtl.h tmp-genrtl.c
|
1998-11-15 07:31:06 +03:00
|
|
|
${DIST}/move-if-change tmp-genrtl.h genrtl.h
|
|
|
|
${DIST}/move-if-change tmp-genrtl.c genrtl.c
|
|
|
|
touch s-genrtl
|
1998-08-17 06:55:39 +04:00
|
|
|
|
|
|
|
gencheck: gencheck.lo
|
|
|
|
${HOST_LINK.c} -o $@ $>
|
1998-11-15 07:31:06 +03:00
|
|
|
.NOPATH: tree-check.h s-check
|
|
|
|
tree-check.h: s-check
|
|
|
|
s-check: gencheck
|
1998-10-14 20:55:52 +04:00
|
|
|
@rm -f ${DIST}/tree-check.h
|
1998-11-16 12:45:48 +03:00
|
|
|
${.OBJDIR}/gencheck >tmp-tree-check.h
|
1998-11-15 07:31:06 +03:00
|
|
|
${DIST}/move-if-change tmp-tree-check.h tree-check.h
|
|
|
|
touch s-check
|
1998-08-17 06:55:39 +04:00
|
|
|
|
|
|
|
genattrtab: rtlanal.lo
|
|
|
|
|
|
|
|
.for _GEN_ in attrtab emit extract opinit output peep recog
|
1998-11-15 07:31:06 +03:00
|
|
|
DPSRCS+= insn-${_GEN_}.c s-${_GEN_}
|
|
|
|
CLEANFILES+= gen${_GEN_} gen${_GEN_}.lo insn-${_GEN_}.c s-${_GEN_}
|
1998-10-14 20:55:52 +04:00
|
|
|
|
1998-08-17 17:58:55 +04:00
|
|
|
gen${_GEN_}.lo: genrtl.h
|
|
|
|
gen${_GEN_}: gen${_GEN_}.lo bitmap.lo obstack.lo print-rtl.lo rtl.lo ${MD}
|
1998-08-17 06:55:39 +04:00
|
|
|
${HOST_LINK.c} -o $@ ${.ALLSRC:M*.lo}
|
1998-10-14 20:55:52 +04:00
|
|
|
|
1998-11-15 07:31:06 +03:00
|
|
|
.NOPATH: insn-${_GEN_}.c s-${_GEN_}
|
|
|
|
insn-${_GEN_}.c: s-${_GEN_}
|
|
|
|
s-${_GEN_}: gen${_GEN_} ${MD}
|
1998-10-14 20:55:52 +04:00
|
|
|
@rm -f ${DIST}/insn-${_GEN_}.c
|
1998-11-16 12:45:48 +03:00
|
|
|
${.OBJDIR}/gen${_GEN_} ${MD} > tmp-${_GEN_}
|
1998-11-15 07:31:06 +03:00
|
|
|
${DIST}/move-if-change tmp-${_GEN_} insn-${_GEN_}.c
|
|
|
|
touch s-${_GEN_}
|
1998-08-17 06:55:39 +04:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for _GEN_ in attr codes config flags
|
1998-11-15 07:31:06 +03:00
|
|
|
DPSRCS+= insn-${_GEN_}.h s-${_GEN_}
|
|
|
|
CLEANFILES+= gen${_GEN_} gen${_GEN_}.lo insn-${_GEN_}.h s-${_GEN_}
|
1998-10-14 20:55:52 +04:00
|
|
|
|
1998-08-17 17:58:55 +04:00
|
|
|
gen${_GEN_}.lo: genrtl.h
|
|
|
|
gen${_GEN_}: gen${_GEN_}.lo bitmap.lo obstack.lo print-rtl.lo rtl.lo ${MD}
|
1998-08-17 06:55:39 +04:00
|
|
|
${HOST_LINK.c} -o $@ ${.ALLSRC:M*.lo}
|
1998-10-14 20:55:52 +04:00
|
|
|
|
1998-11-15 07:31:06 +03:00
|
|
|
.NOPATH: insn-${_GEN_}.h s-${_GEN_}
|
|
|
|
insn-${_GEN_}.h: s-${_GEN_}
|
|
|
|
s-${_GEN_}: gen${_GEN_} ${MD}
|
1998-10-14 20:55:52 +04:00
|
|
|
@rm -f ${DIST}/insn-${_GEN_}.h
|
1998-11-16 12:45:48 +03:00
|
|
|
${.OBJDIR}/gen${_GEN_} ${MD} > tmp-${_GEN_}
|
1998-11-15 07:31:06 +03:00
|
|
|
${DIST}/move-if-change tmp-${_GEN_} insn-${_GEN_}.h
|
|
|
|
touch s-${_GEN_}
|
1998-08-17 06:55:39 +04:00
|
|
|
.endfor
|
1998-03-29 15:34:19 +04:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
1998-04-07 20:32:59 +04:00
|
|
|
|
1998-08-18 01:23:25 +04:00
|
|
|
${OBJS} ${SOBJS} genattrtab.lo genextract.lo: \
|
1998-08-17 06:55:39 +04:00
|
|
|
insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
|
|
|
|
|
1998-10-31 05:16:38 +03:00
|
|
|
.PATH: ${DIST}/config/${GCC_ARCH}
|