Set AOS compatible FPU rounding and precision modes.
[AROS.git] / tools / collect-aros / env.h.in
blob1850bd4854cebf73f67570e4f6adc386b3aca5fd
1 #ifndef _ENV_H_
2 #define _ENV_H_
4 /*
5 * Under Windows we can't use paths provided by configure because they are UNIX-style
6 * and we don't use MSYS
7 */
8 #ifdef _WIN32
9 #ifndef _STANDALONE_
10 #define _STANDALONE_
11 #endif
12 #endif
14 #ifdef _NATIVE_
15 #define LD_NAME "/Development/bin/ld"
16 #define STRIP_NAME "/Development/bin/strip"
17 #define NM_NAME "/Development/bin/nm"
18 #define OBJDUMP_NAME "/Development/bin/objdump"
19 #define ELFEDIT_NAME "/Development/bin/elfedit"
20 #endif
21 #ifdef _CROSS_
22 #define LD_NAME "@AROS_CROSSTOOLSDIR@/@aros_target_cpu@-aros-ld"
23 #define STRIP_NAME "@AROS_CROSSTOOLSDIR@/@aros_target_cpu@-aros-strip"
24 #define NM_NAME "@AROS_CROSSTOOLSDIR@/@aros_target_cpu@-aros-nm"
25 #define OBJDUMP_NAME "@AROS_CROSSTOOLSDIR@/@aros_target_cpu@-aros-objdump"
26 #define ELFEDIT_NAME "@AROS_CROSSTOOLSDIR@/@aros_target_cpu@-aros-elfedit"
27 #endif
28 #ifdef _STANDALONE_
29 #define LD_NAME "@aros_target_cpu@-aros-ld"
30 #define STRIP_NAME "@aros_target_cpu@-aros-strip"
31 #define NM_NAME "@aros_target_cpu@-aros-nm"
32 #define OBJDUMP_NAME "@aros_target_cpu@-aros-objdump"
33 #define ELFEDIT_NAME "@aros_target_cpu@-aros-elfedit"
34 #endif
36 #ifndef LD_NAME
37 /* The following lines will be patched by AROS-SDK-Install */
38 #define LD_NAME "@orig_target_ld@"
39 #define STRIP_NAME "@aros_target_strip@"
40 #define NM_NAME "@aros_target_nm@"
41 #define OBJDUMP_NAME "@aros_target_objdump@"
42 #define ELFEDIT_NAME "@aros_target_elfedit@"
43 #endif
45 #define TARGET_CPU_@aros_target_cpu@
48 * Having these conditions here helps to bootstrap a crosscompiler.
49 * You don't have to look up a value in configure script any more.
51 #ifdef TARGET_CPU_m68k
52 #define OBJECT_FORMAT "-mm68kelf"
53 #endif
54 #ifdef TARGET_CPU_ppc
55 #define OBJECT_FORMAT "-melf32ppc"
56 #endif
57 #ifdef TARGET_CPU_i386
58 #define OBJECT_FORMAT "-melf_i386"
59 #endif
60 #ifdef TARGET_CPU_x86_64
61 #define OBJECT_FORMAT "-melf_x86_64"
62 #endif
63 #ifdef TARGET_CPU_arm
64 #define OBJECT_FORMAT "-marmelf_linux_eabi"
65 #endif
66 #ifdef TARGET_CPU_sparc
67 #define OBJECT_FORMAT "-melf_sparc"
68 #endif
69 #ifndef OBJECT_FORMAT
70 #error Unknown object format for your target CPU
71 #endif
73 #endif /* !_ENV_H */