1 TARGET_ARCH?= ${MACHINE_ARCH}
3 version= ${GCCCOMPLETEVER}
4 target_machine= ${TARGET_ARCH}-pc-dragonflybsd
6 GCC_CPU?= ${TARGET_ARCH}
9 .if ${TARGET_ARCH} == "x86_64"
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
37 TARGET_INC+= config/vxworks-dummy.h
38 .if ${TARGET_ARCH} == "x86_64"
39 TARGET_INC+= config/${GCC_CPU}/biarch64.h
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
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
53 .if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64"
54 TARGET_INC+= config/${GCC_CPU}/dragonfly.h
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)