i386 removal, part 3/x: Remove more apm related files via 'make upgrade'.
[dragonfly.git] / gnu / usr.bin / cc47 / Makefile.tgt
blobd97b04d5e7de469dc62db0687b719e9fdb1d22cc
1 TARGET_ARCH?=   ${MACHINE_ARCH}
3 version=        ${GCCCOMPLETEVER}
4 target_machine= ${TARGET_ARCH}-pc-dragonflybsd
6 GCC_CPU?=       ${TARGET_ARCH}
7 BYTESLONG=      4
8 HWI_TYPE=       long long
9 .if ${TARGET_ARCH} == "x86_64"
10 GCC_CPU=        i386
11 BYTESLONG=      8
12 HWI_TYPE=       long
13 .endif
15 # from gcc/Makefile
16 srcdir= ${GCCDIR}/gcc
18 host_xm_file_list=      ${STOPDIR}/cc_prep/auto-host.h
19 host_xm_file_list+=     ${GCCDIR}/include/ansidecl.h
20 HASHTAB_H   = ${GCCDIR}/include/hashtab.h
21 SPLAY_TREE_H= ${GCCDIR}/include/splay-tree.h
22 SYMTAB_H    = ${GCCDIR}/libcpp/include/symtab.h
23 CPP_ID_DATA_H=  ${GCCDIR}/libcpp/include/line-map.h \
24                 ${GCCDIR}/libcpp/include/cpplib.h \
25                 ${GCCDIR}/libcpp/include/cpp-id-data.h
27 md_file=        ${GCCDIR}/gcc/config/${GCC_CPU}/${GCC_CPU}.md
28 out_file=       $(srcdir)/config/${GCC_CPU}/${GCC_CPU}.c
30 EXTRA_GCC_SRCS= driver-${GCC_CPU}.c
31 GTFILES_SRCDIR = $(srcdir)
34 # This is ordered to avoid build warnings/errors
36 TARGET_INC=     options.h
37 TARGET_INC+=    config/vxworks-dummy.h
38 .if ${TARGET_ARCH} == "x86_64"
39 TARGET_INC+=    config/${GCC_CPU}/biarch64.h
40 .endif
41 TARGET_INC+=    config/${GCC_CPU}/${GCC_CPU}.h
42 .if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
43 TARGET_INC+=    config/${GCC_CPU}/unix.h
44 TARGET_INC+=    config/${GCC_CPU}/att.h
45 .endif
46 TARGET_INC+=    config/dbxelf.h
47 TARGET_INC+=    config/elfos.h
48 TARGET_INC+=    config/dragonfly.h
49 TARGET_INC+=    config/dragonfly-stdint.h
50 .if ${TARGET_ARCH} == "x86_64"
51 TARGET_INC+=    config/${GCC_CPU}/x86-64.h
52 .endif
53 .if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
54 TARGET_INC+=    config/${GCC_CPU}/dragonfly.h
55 .endif
56 TARGET_INC+=    config/initfini-array.h
57 TARGET_INC+=    dragonfly-native.h
60 # Use TARGET_INC as a template and build a list of target specific
61 # include files for gengtype to scan
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)
67 tm_file_list+=  $D/$H
68 .endif
69 .endfor
70 .endfor