| 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 |
#ifdef ELFABI |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
#define CPPADD { "-D__minix", "-D__ELF__", NULL } |
| 39 |
|
| 40 |
#define DYNLINKLIB "/usr/libexec/ld.elf_so" |
| 41 |
|
| 42 |
#define CRTEND_T "crtend.o" |
| 43 |
|
| 44 |
#define DEFLIBS { "-lc", NULL } |
| 45 |
#define DEFPROFLIBS { "-lc_p", NULL } |
| 46 |
#define DEFCXXLIBS { "-lp++", "-lc", NULL } |
| 47 |
|
| 48 |
#if defined(mach_amd64) |
| 49 |
#include "../inc/amd64.h" |
| 50 |
#define PCC_SIZE_TYPE "unsigned long" |
| 51 |
#define PCC_PTRDIFF_TYPE "long" |
| 52 |
#elif defined(mach_arm) |
| 53 |
#define CPPMDADD { "-D__arm__", NULL, } |
| 54 |
#elif defined(mach_i386) |
| 55 |
#define CPPMDADD { "-D__i386", "-D__i386__", NULL, } |
| 56 |
#else |
| 57 |
#error defines for arch missing |
| 58 |
#endif |
| 59 |
|
| 60 |
#ifndef PCC_WINT_TYPE |
| 61 |
#define PCC_WINT_TYPE "int" |
| 62 |
#endif |
| 63 |
#ifndef PCC_SIZE_TYPE |
| 64 |
#define PCC_SIZE_TYPE "unsigned int" |
| 65 |
#endif |
| 66 |
#ifndef PCC_PTRDIFF_TYPE |
| 67 |
#define PCC_PTRDIFF_TYPE "int" |
| 68 |
#endif |
| 69 |
|
| 70 |
#elif defined(AOUTABI) |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
#define CPPADD { "-D__minix", NULL } |
| 75 |
|
| 76 |
|
| 77 |
#define STARTLABEL "crtso" |
| 78 |
#define CRT0 "crtso.o" |
| 79 |
#ifdef notyet |
| 80 |
#define GCRT0 "/usr/lib/pcc/gcrtso.o" |
| 81 |
#endif |
| 82 |
|
| 83 |
#define CRTBEGIN 0 |
| 84 |
#define CRTEND 0 |
| 85 |
#define CRTBEGIN_S 0 |
| 86 |
#define CRTEND_S 0 |
| 87 |
#define CRTBEGIN_T 0 |
| 88 |
#define CRTEND_T 0 |
| 89 |
|
| 90 |
#define CRTI 0 |
| 91 |
#define CRTN "end.a" |
| 92 |
|
| 93 |
#define DEFLIBS {"-lc", "-lpccsoftfloat", "-lpcc", "-lc", NULL } |
| 94 |
|
| 95 |
#if defined(mach_i386) |
| 96 |
#define CPPMDADD { "-D__i386", "-D__i386__", \ |
| 97 |
"-D_EM_WSIZE=4", "-D_EM_PSIZE=4", "-D_EM_LSIZE=4", \ |
| 98 |
"-D_EM_SSIZE=2", "-D_EM_FSIZE=4", "-D_EM_DSIZE=8", \ |
| 99 |
NULL, } |
| 100 |
#else |
| 101 |
#define CPPMDADD { "-D__i86", \ |
| 102 |
"-D_EM_WSIZE=2", "-D_EM_PSIZE=2", "-D_EM_LSIZE=4", \ |
| 103 |
"-D_EM_SSIZE=2", "-D_EM_FSIZE=4", "-D_EM_DSIZE=8", \ |
| 104 |
NULL, } |
| 105 |
#endif |
| 106 |
|
| 107 |
#else |
| 108 |
#error defines for ABI missing |
| 109 |
#endif |