| Commit | Line | Data |
|---|---|---|
| 36a563f2 | 1 | # $DragonFly: src/gnu/usr.bin/cc41/Makefile.tgt,v 1.2 2008/06/30 19:04:49 hasso Exp $ |
| ddf7cc86 SS |
2 | |
| 3 | TARGET_ARCH?= ${MACHINE_ARCH} | |
| 4 | ||
| 36a563f2 | 5 | version= 4.1.2 |
| e0d0c285 | 6 | target_machine= ${TARGET_ARCH}-pc-dragonflybsd |
| ddf7cc86 SS |
7 | |
| 8 | GCC_CPU?= ${TARGET_ARCH} | |
| c1543a89 | 9 | .if ${TARGET_ARCH} == "x86_64" |
| ddf7cc86 SS |
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 | ||
| 6ba985d7 SS |
29 | # This is ordered to avoid build warnings/errors |
| 30 | ||
| ddf7cc86 | 31 | TARGET_INC= options.h |
| c1543a89 | 32 | .if ${TARGET_ARCH} == "x86_64" |
| ddf7cc86 SS |
33 | TARGET_INC+= i386/biarch64.h |
| 34 | .endif | |
| 35 | TARGET_INC+= ${GCC_CPU}/${GCC_CPU}.h | |
| c1543a89 | 36 | .if ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "x86_64" |
| ddf7cc86 SS |
37 | TARGET_INC+= ${GCC_CPU}/unix.h |
| 38 | TARGET_INC+= ${GCC_CPU}/att.h | |
| 39 | .endif | |
| 40 | TARGET_INC+= dbxelf.h | |
| 41 | TARGET_INC+= elfos.h | |
| 42 | TARGET_INC+= dragonfly-spec.h | |
| 43 | TARGET_INC+= dragonfly.h | |
| c1543a89 | 44 | .if ${TARGET_ARCH} == "x86_64" |
| ddf7cc86 | 45 | TARGET_INC+= ${GCC_CPU}/x86-64.h |
| 6ba985d7 SS |
46 | .endif |
| 47 | TARGET_INC+= ${GCC_CPU}/dragonfly.h | |
| c1543a89 | 48 | .if ${TARGET_ARCH} == "x86_64" |
| ddf7cc86 SS |
49 | TARGET_INC+= ${GCC_CPU}/dragonfly64.h |
| 50 | .endif | |
| 51 | TARGET_INC+= defaults.h | |
| 52 | ||
| 53 | # | |
| 54 | # Use TARGET_INC as a template and build a list of target specific | |
| 55 | # include files for gengtype to scan | |
| 56 | # | |
| 57 | tm_file_list= ${STOPDIR}/cc_prep/dragonfly-native.h | |
| 58 | ||
| 59 | .for H in ${TARGET_INC} | |
| 60 | .for D in ${GCCDIR}/gcc/config ${GCCDIR}/gcc ${STOPDIR}/cc_prep/config ${STOPDIR}/cc_prep | |
| 61 | .if exists($D/$H) | |
| 62 | tm_file_list+= $D/$H | |
| 63 | .endif | |
| 64 | .endfor | |
| 65 | .endfor |