1 TARGET_ARCH?= ${MACHINE_ARCH}
4 target_machine= ${TARGET_ARCH}-pc-dragonflybsd
6 GCC_CPU?= ${TARGET_ARCH}
7 .if ${TARGET_ARCH} == "amd64"
14 host_xm_file_list= ${STOPDIR}/cc_prep/auto-host.h
15 host_xm_file_list+= ${GCCDIR}/include/ansidecl.h
16 HASHTAB_H = ${GCCDIR}/include/hashtab.h
17 SPLAY_TREE_H= ${GCCDIR}/include/splay-tree.h
18 SYMTAB_H = ${GCCDIR}/libcpp/include/symtab.h
19 CPP_ID_DATA_H= ${GCCDIR}/libcpp/include/line-map.h \
20 ${GCCDIR}/libcpp/include/cpplib.h \
21 ${GCCDIR}/libcpp/include/cpp-id-data.h
23 md_file= ${GCCDIR}/gcc/config/${GCC_CPU}/${GCC_CPU}.md
25 out_file= $(srcdir)/config/${GCC_CPU}/${GCC_CPU}.c
26 out_object_file=${out_file:.c=.o}
28 EXTRA_GCC_SRCS= driver-${GCC_CPU}.c
30 GTFILES_SRCDIR = $(srcdir)
32 # This is ordered to avoid build warnings/errors
35 .if ${TARGET_ARCH} == "amd64"
36 TARGET_INC+= i386/biarch64.h
38 TARGET_INC+= ${GCC_CPU}/${GCC_CPU}.h
39 .if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
40 TARGET_INC+= ${GCC_CPU}/unix.h
41 TARGET_INC+= ${GCC_CPU}/att.h
45 TARGET_INC+= dragonfly-native.h
46 TARGET_INC+= dragonfly-spec.h
47 TARGET_INC+= dragonfly.h
48 .if ${TARGET_ARCH} == "amd64"
49 TARGET_INC+= ${GCC_CPU}/x86-64.h
51 TARGET_INC+= ${GCC_CPU}/dragonfly.h
52 .if ${TARGET_ARCH} == "amd64"
53 TARGET_INC+= ${GCC_CPU}/dragonfly64.h
55 TARGET_INC+= defaults.h
58 # Use TARGET_INC as a template and build a list of target specific
59 # include files for gengtype to scan
61 .for H in ${TARGET_INC}
62 .for D in ${GCCDIR}/gcc/config ${GCCDIR}/gcc \
63 ${STOPDIR}/cc_prep/config ${STOPDIR}/cc_prep ${OTOPDIR}/cc_prep
64 .if exists($D/$H) && empty(tm_file_list:M*/$H)