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