NetBSD/gnu/usr.bin/egcs/common/Makefile

93 lines
2.5 KiB
Makefile
Raw Normal View History

1998-08-18 02:23:37 +04:00
# $NetBSD: Makefile,v 1.16 1998/08/17 22:23:37 tv Exp $
.include "../Makefile.inc"
LIB= cc1
NOLINT=
NOMAN=
NOPICINSTALL=
NOPROFILE=
NOSTATICLIB=
YHEADER=1
CPPFLAGS+= -DTARGET_NAME=\"${MACHINE_GNU_ARCH}-netbsd\"
CPICFLAGS= -fPIC -DPIC
HOST_CPPFLAGS= ${CPPFLAGS}
MD= ${DIST}/config/${MACHINE_GNU_ARCH}/${MACHINE_GNU_ARCH}.md
BCDEF= ${DIST}/bytecode.def
.PATH: ${DIST}
SRCS= ${MACHINE_GNU_ARCH}.c toplev.c version.c tree.c print-tree.c \
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-08-17 06:57:04 +04:00
.if defined(USE_EGCS_HAIFA)
SRCS+= haifa-sched.c
.else
SRCS+= sched.c
.endif
1998-08-18 02:23:37 +04:00
DPSRCS+= genrtl.h tree-check.h
CLEANFILES+= bitmap.lo obstack.lo print-rtl.lo rtl.lo rtlanal.lo \
gengenrtl gengenrtl.lo genrtl.c genrtl.h \
gencheck gencheck.lo tree-check.h
gengenrtl: gengenrtl.lo
${HOST_LINK.c} -o $@ $>
genrtl.h genrtl.c: gengenrtl
./gengenrtl genrtl.h genrtl.c
gencheck: gencheck.lo
${HOST_LINK.c} -o $@ $>
tree-check.h: gencheck
./gencheck >tree-check.h
genattrtab: rtlanal.lo
.for _GEN_ in attrtab emit extract opinit output peep recog
1998-08-18 02:23:37 +04:00
DPSRCS+= insn-${_GEN_}.c
CLEANFILES+= gen${_GEN_} gen${_GEN_}.lo insn-${_GEN_}.c
gen${_GEN_}.lo: genrtl.h
gen${_GEN_}: gen${_GEN_}.lo bitmap.lo obstack.lo print-rtl.lo rtl.lo ${MD}
${HOST_LINK.c} -o $@ ${.ALLSRC:M*.lo}
insn-${_GEN_}.c: gen${_GEN_}
./gen${_GEN_} ${MD} >$@
.endfor
.for _GEN_ in attr codes config flags
1998-08-18 02:23:37 +04:00
DPSRCS+= insn-${_GEN_}.h
CLEANFILES+= gen${_GEN_} gen${_GEN_}.lo insn-${_GEN_}.h
gen${_GEN_}.lo: genrtl.h
gen${_GEN_}: gen${_GEN_}.lo bitmap.lo obstack.lo print-rtl.lo rtl.lo ${MD}
${HOST_LINK.c} -o $@ ${.ALLSRC:M*.lo}
insn-${_GEN_}.h: gen${_GEN_}
./gen${_GEN_} ${MD} >$@
.endfor
install: __libinstall
.include <bsd.lib.mk>
${OBJS} ${SOBJS} genattrtab.lo genextract.lo: \
insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
.PATH: ${DIST}/config/${MACHINE_GNU_ARCH}
.if !defined(NOPIC)
__libinstall: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
.else
__libinstall:
.endif