Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[dragonfly.git] / gnu / usr.bin / cc34 / Makefile.tgt
1 # $DragonFly: src/gnu/usr.bin/cc34/Makefile.tgt,v 1.4 2005/10/01 12:40:33 corecode Exp $
2
3 TARGET_ARCH?=   ${MACHINE_ARCH}
4
5 version=        3.4.5
6 target_machine= ${TARGET_ARCH}-pc-dragonflybsd
7
8 GCC_CPU?=       ${TARGET_ARCH}
9 .if ${TARGET_ARCH} == "amd64"
10 GCC_CPU=        i386
11 .endif
12
13 # from gcc/Makefile
14 srcdir= ${GCCDIR}/gcc
15
16 host_xm_file_list=      ${STOPDIR}/cc_prep/dragonfly-native.h
17 host_xm_file_list+=     ${GCCDIR}/include/ansidecl.h
18 HASHTAB_H   = ${GCCDIR}/include/hashtab.h
19 SPLAY_TREE_H= ${GCCDIR}/include/splay-tree.h
20
21 out_file=       $(srcdir)/config/${GCC_CPU}/${GCC_CPU}.c
22
23 GTFILES_SRCDIR = $(srcdir)
24
25 TARGET_INC=     # empty
26 .if ${TARGET_ARCH} == "amd64"
27 TARGET_INC+=    i386/biarch64.h
28 .endif
29 TARGET_INC+=    ${GCC_CPU}/${GCC_CPU}.h
30 .if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
31 TARGET_INC+=    ${GCC_CPU}/unix.h
32 TARGET_INC+=    ${GCC_CPU}/att.h
33 .endif
34 TARGET_INC+=    dbxelf.h
35 TARGET_INC+=    elfos.h
36 #TARGET_INC+=   dragonfly-native.h
37 TARGET_INC+=    dragonfly-spec.h
38 TARGET_INC+=    dragonfly.h
39 TARGET_INC+=    ${GCC_CPU}/dragonfly.h
40 .if ${TARGET_ARCH} == "amd64"
41 TARGET_INC+=    ${GCC_CPU}/x86-64.h
42 TARGET_INC+=    ${GCC_CPU}/dragonfly64.h
43 .endif
44 TARGET_INC+=    defaults.h
45
46 #
47 # Use TARGET_INC as a template and build a list of target specific
48 # include files for gengtype to scan
49 #
50 tm_file_list=   ${STOPDIR}/cc_prep/dragonfly-native.h
51
52 .for H in ${TARGET_INC}
53 .for D in ${GCCDIR}/gcc/config ${GCCDIR}/gcc ${STOPDIR}/cc_prep/config ${STOPDIR}/cc_prep
54 .if exists($D/$H)
55 tm_file_list+=  $D/$H
56 .endif
57 .endfor
58 .endfor