| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
#define CPPADD { "-D__NetBSD__", "-D__ELF__", NULL, } |
| 36 |
|
| 37 |
#ifdef LANG_F77 |
| 38 |
#define F77LIBLIST { "-L/usr/local/lib", "-lF77", "-lI77", "-lm", "-lc", NULL }; |
| 39 |
#endif |
| 40 |
|
| 41 |
#define DYNLINKLIB "/usr/libexec/ld.elf_so" |
| 42 |
|
| 43 |
#define CRTEND_T "crtend.o" |
| 44 |
#define RCRT0 "crt0.o" |
| 45 |
|
| 46 |
#ifdef notdef |
| 47 |
#define DEFLIBS { "-lc", NULL } |
| 48 |
#define DEFPROFLIBS { "-lc_p", NULL } |
| 49 |
#define DEFCXXLIBS { "-lp++", "-lc", NULL } |
| 50 |
#endif |
| 51 |
|
| 52 |
#if defined(mach_amd64) |
| 53 |
#define CPPMDADD \ |
| 54 |
{ "-D__x86_64__", "-D__x86_64", "-D__amd64__", "-D__amd64", \ |
| 55 |
"-D__LP64__", "-D_LP64", NULL, } |
| 56 |
#elif defined(mach_arm) |
| 57 |
#define CPPMDADD { "-D__arm__", NULL, } |
| 58 |
#elif defined(mach_i386) |
| 59 |
#define CPPMDADD { "-D__i386__", NULL, } |
| 60 |
#define PCC_SIZE_TYPE "unsigned int" |
| 61 |
#define PCC_PTRDIFF_TYPE "int" |
| 62 |
#elif defined(mach_m68k) |
| 63 |
#define CPPMDADD { "-D__mc68000__", "-D__mc68020__", "-D__m68k__", NULL, } |
| 64 |
#undef DEFLIBS |
| 65 |
#define DEFLIBS { "-lc", "-lgcc", NULL } |
| 66 |
#define STARTLABEL "_start" |
| 67 |
#elif defined(mach_mips) |
| 68 |
#define CPPMDADD { "-D__mips__", NULL, } |
| 69 |
#elif defined(mach_mips64) |
| 70 |
#ifdef TARGET_BIG_ENDIAN |
| 71 |
#define CPPMDADD { "-D__MIPSEB__", "-D__mips__", "-D__mips64__", NULL, } |
| 72 |
#else |
| 73 |
#define CPPMDADD { "-D__MIPSEL__", "-D__mips__", "-D__mips64__", "-D__mipsel__", "-D__mips64el__", NULL, } |
| 74 |
#endif |
| 75 |
#elif defined(mach_pdp10) |
| 76 |
#define CPPMDADD { "-D__pdp10__", NULL, } |
| 77 |
#elif defined(mach_powerpc) |
| 78 |
#define CPPMDADD { "-D__ppc__", NULL, } |
| 79 |
#define STARTLABEL "_start" |
| 80 |
#elif defined(mach_vax) |
| 81 |
#define CPPMDADD { "-D__vax__", NULL, } |
| 82 |
#define PCC_EARLY_SETUP { kflag = 1; } |
| 83 |
#elif defined(mach_sparc64) |
| 84 |
#define CPPMDADD { "-D__sparc64__", NULL, } |
| 85 |
#else |
| 86 |
#error defines for arch missing |
| 87 |
#endif |
| 88 |
|
| 89 |
#ifndef PCC_WINT_TYPE |
| 90 |
#define PCC_WINT_TYPE "int" |
| 91 |
#endif |
| 92 |
#ifndef PCC_SIZE_TYPE |
| 93 |
#define PCC_SIZE_TYPE "unsigned long" |
| 94 |
#endif |
| 95 |
#ifndef PCC_PTRDIFF_TYPE |
| 96 |
#define PCC_PTRDIFF_TYPE "long" |
| 97 |
#endif |