nrelease - fix/improve livecd
[dragonfly.git] / gnu / usr.bin / cc47 / Makefile.tgt
CommitLineData
b450dd39
JM
1TARGET_ARCH?= ${MACHINE_ARCH}
2
3version= ${GCCCOMPLETEVER}
4target_machine= ${TARGET_ARCH}-pc-dragonflybsd
5
6GCC_CPU?= ${TARGET_ARCH}
7BYTESLONG= 4
8HWI_TYPE= long long
9.if ${TARGET_ARCH} == "x86_64"
10GCC_CPU= i386
11BYTESLONG= 8
12HWI_TYPE= long
13.endif
14
15# from gcc/Makefile
16srcdir= ${GCCDIR}/gcc
17
18host_xm_file_list= ${STOPDIR}/cc_prep/auto-host.h
19host_xm_file_list+= ${GCCDIR}/include/ansidecl.h
20HASHTAB_H = ${GCCDIR}/include/hashtab.h
21SPLAY_TREE_H= ${GCCDIR}/include/splay-tree.h
22SYMTAB_H = ${GCCDIR}/libcpp/include/symtab.h
23CPP_ID_DATA_H= ${GCCDIR}/libcpp/include/line-map.h \
24 ${GCCDIR}/libcpp/include/cpplib.h \
25 ${GCCDIR}/libcpp/include/cpp-id-data.h
26
27md_file= ${GCCDIR}/gcc/config/${GCC_CPU}/${GCC_CPU}.md
28out_file= $(srcdir)/config/${GCC_CPU}/${GCC_CPU}.c
29
30EXTRA_GCC_SRCS= driver-${GCC_CPU}.c
31GTFILES_SRCDIR = $(srcdir)
32
33
34# This is ordered to avoid build warnings/errors
35
36TARGET_INC= options.h
37TARGET_INC+= config/vxworks-dummy.h
38.if ${TARGET_ARCH} == "x86_64"
39TARGET_INC+= config/${GCC_CPU}/biarch64.h
40.endif
41TARGET_INC+= config/${GCC_CPU}/${GCC_CPU}.h
42.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
43TARGET_INC+= config/${GCC_CPU}/unix.h
44TARGET_INC+= config/${GCC_CPU}/att.h
45.endif
46TARGET_INC+= config/dbxelf.h
47TARGET_INC+= config/elfos.h
48TARGET_INC+= config/dragonfly.h
49TARGET_INC+= config/dragonfly-stdint.h
50.if ${TARGET_ARCH} == "x86_64"
51TARGET_INC+= config/${GCC_CPU}/x86-64.h
52.endif
53.if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
54TARGET_INC+= config/${GCC_CPU}/dragonfly.h
55.endif
56TARGET_INC+= config/initfini-array.h
57TARGET_INC+= dragonfly-native.h
58
59#
60# Use TARGET_INC as a template and build a list of target specific
61# include files for gengtype to scan
62#
63.for H in ${TARGET_INC}
64.for D in ${GCCDIR}/gcc/config ${GCCDIR}/gcc \
65 ${STOPDIR}/cc_prep/config ${STOPDIR}/cc_prep ${OTOPDIR}/cc_prep
66.if exists($D/$H) && empty(tm_file_list:M*/$H)
67tm_file_list+= $D/$H
68.endif
69.endfor
70.endfor