xref: /dflybsd-src/gnu/usr.bin/cc47/Makefile.tgt (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*b450dd39SJohn MarinoTARGET_ARCH?=	${MACHINE_ARCH}
2*b450dd39SJohn Marino
3*b450dd39SJohn Marinoversion=	${GCCCOMPLETEVER}
4*b450dd39SJohn Marinotarget_machine=	${TARGET_ARCH}-pc-dragonflybsd
5*b450dd39SJohn Marino
6*b450dd39SJohn MarinoGCC_CPU?=	${TARGET_ARCH}
7*b450dd39SJohn MarinoBYTESLONG=	4
8*b450dd39SJohn MarinoHWI_TYPE=	long long
9*b450dd39SJohn Marino.if ${TARGET_ARCH} == "x86_64"
10*b450dd39SJohn MarinoGCC_CPU=	i386
11*b450dd39SJohn MarinoBYTESLONG=	8
12*b450dd39SJohn MarinoHWI_TYPE=	long
13*b450dd39SJohn Marino.endif
14*b450dd39SJohn Marino
15*b450dd39SJohn Marino# from gcc/Makefile
16*b450dd39SJohn Marinosrcdir= ${GCCDIR}/gcc
17*b450dd39SJohn Marino
18*b450dd39SJohn Marinohost_xm_file_list=	${STOPDIR}/cc_prep/auto-host.h
19*b450dd39SJohn Marinohost_xm_file_list+=	${GCCDIR}/include/ansidecl.h
20*b450dd39SJohn MarinoHASHTAB_H   = ${GCCDIR}/include/hashtab.h
21*b450dd39SJohn MarinoSPLAY_TREE_H= ${GCCDIR}/include/splay-tree.h
22*b450dd39SJohn MarinoSYMTAB_H    = ${GCCDIR}/libcpp/include/symtab.h
23*b450dd39SJohn MarinoCPP_ID_DATA_H=	${GCCDIR}/libcpp/include/line-map.h \
24*b450dd39SJohn Marino		${GCCDIR}/libcpp/include/cpplib.h \
25*b450dd39SJohn Marino		${GCCDIR}/libcpp/include/cpp-id-data.h
26*b450dd39SJohn Marino
27*b450dd39SJohn Marinomd_file=	${GCCDIR}/gcc/config/${GCC_CPU}/${GCC_CPU}.md
28*b450dd39SJohn Marinoout_file=	$(srcdir)/config/${GCC_CPU}/${GCC_CPU}.c
29*b450dd39SJohn Marino
30*b450dd39SJohn MarinoEXTRA_GCC_SRCS=	driver-${GCC_CPU}.c
31*b450dd39SJohn MarinoGTFILES_SRCDIR = $(srcdir)
32*b450dd39SJohn Marino
33*b450dd39SJohn Marino
34*b450dd39SJohn Marino# This is ordered to avoid build warnings/errors
35*b450dd39SJohn Marino
36*b450dd39SJohn MarinoTARGET_INC=	options.h
37*b450dd39SJohn MarinoTARGET_INC+=	config/vxworks-dummy.h
38*b450dd39SJohn Marino.if ${TARGET_ARCH} == "x86_64"
39*b450dd39SJohn MarinoTARGET_INC+=	config/${GCC_CPU}/biarch64.h
40*b450dd39SJohn Marino.endif
41*b450dd39SJohn MarinoTARGET_INC+=	config/${GCC_CPU}/${GCC_CPU}.h
42*b450dd39SJohn Marino.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
43*b450dd39SJohn MarinoTARGET_INC+=	config/${GCC_CPU}/unix.h
44*b450dd39SJohn MarinoTARGET_INC+=	config/${GCC_CPU}/att.h
45*b450dd39SJohn Marino.endif
46*b450dd39SJohn MarinoTARGET_INC+=	config/dbxelf.h
47*b450dd39SJohn MarinoTARGET_INC+=	config/elfos.h
48*b450dd39SJohn MarinoTARGET_INC+=	config/dragonfly.h
49*b450dd39SJohn MarinoTARGET_INC+=	config/dragonfly-stdint.h
50*b450dd39SJohn Marino.if ${TARGET_ARCH} == "x86_64"
51*b450dd39SJohn MarinoTARGET_INC+=	config/${GCC_CPU}/x86-64.h
52*b450dd39SJohn Marino.endif
53*b450dd39SJohn Marino.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
54*b450dd39SJohn MarinoTARGET_INC+=	config/${GCC_CPU}/dragonfly.h
55*b450dd39SJohn Marino.endif
56*b450dd39SJohn MarinoTARGET_INC+=	config/initfini-array.h
57*b450dd39SJohn MarinoTARGET_INC+=	dragonfly-native.h
58*b450dd39SJohn Marino
59*b450dd39SJohn Marino#
60*b450dd39SJohn Marino# Use TARGET_INC as a template and build a list of target specific
61*b450dd39SJohn Marino# include files for gengtype to scan
62*b450dd39SJohn Marino#
63*b450dd39SJohn Marino.for H in ${TARGET_INC}
64*b450dd39SJohn Marino.for D in ${GCCDIR}/gcc/config ${GCCDIR}/gcc \
65*b450dd39SJohn Marino	${STOPDIR}/cc_prep/config ${STOPDIR}/cc_prep ${OTOPDIR}/cc_prep
66*b450dd39SJohn Marino.if exists($D/$H) && empty(tm_file_list:M*/$H)
67*b450dd39SJohn Marinotm_file_list+=	$D/$H
68*b450dd39SJohn Marino.endif
69*b450dd39SJohn Marino.endfor
70*b450dd39SJohn Marino.endfor
71