Welcome the build infrastructure for gcc41
[dragonfly.git] / gnu / usr.bin / cc41 / Makefile.tgt
1 # $DragonFly: src/gnu/usr.bin/cc41/Makefile.tgt,v 1.1 2006/09/27 12:10:33 corecode Exp $
2
3 TARGET_ARCH?=   ${MACHINE_ARCH}
4
5 version=        4.1.1
6 target=         ${TARGET_ARCH}-our-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 SYMTAB_H    = ${GCCDIR}/libcpp/include/symtab.h
21 CPP_ID_DATA_H=  ${GCCDIR}/libcpp/include/line-map.h \
22                 ${GCCDIR}/libcpp/include/cpplib.h \
23                 ${GCCDIR}/libcpp/include/cpp-id-data.h
24
25 out_file=       $(srcdir)/config/${GCC_CPU}/${GCC_CPU}.c
26
27 GTFILES_SRCDIR = $(srcdir)
28
29 TARGET_INC=     options.h
30 .if ${TARGET_ARCH} == "amd64"
31 TARGET_INC+=    i386/biarch64.h
32 .endif
33 TARGET_INC+=    ${GCC_CPU}/${GCC_CPU}.h
34 .if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64"
35 TARGET_INC+=    ${GCC_CPU}/unix.h
36 TARGET_INC+=    ${GCC_CPU}/att.h
37 .endif
38 TARGET_INC+=    dbxelf.h
39 TARGET_INC+=    elfos.h
40 TARGET_INC+=    dragonfly-spec.h
41 TARGET_INC+=    dragonfly.h
42 TARGET_INC+=    ${GCC_CPU}/dragonfly.h
43 .if ${TARGET_ARCH} == "amd64"
44 TARGET_INC+=   ${GCC_CPU}/x86-64.h
45 TARGET_INC+=   ${GCC_CPU}/dragonfly64.h
46 .endif
47 TARGET_INC+=    defaults.h
48
49 #
50 # Use TARGET_INC as a template and build a list of target specific
51 # include files for gengtype to scan
52 #
53 tm_file_list=   ${STOPDIR}/cc_prep/dragonfly-native.h
54
55 .for H in ${TARGET_INC}
56 .for D in ${GCCDIR}/gcc/config ${GCCDIR}/gcc ${STOPDIR}/cc_prep/config ${STOPDIR}/cc_prep
57 .if exists($D/$H)
58 tm_file_list+=  $D/$H
59 .endif
60 .endfor
61 .endfor