From 5280293d6b16bbe24dfda76e37f32322fa2874ca Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 14 Jul 2011 18:45:37 +0200 Subject: make: create native tcc from separate objects This was already possible using make NOTALLINONE=1 and is now the default. To build as previously from one big source, use make ONE_SOURCE=1 Cross compilers are still build from one source because using separate objects requires separate build directories one per platform which currently is not (yet) supported by the makefile. We could probably use gnu-makeish target variables like $(I386_CROSS): OUTDIR=build/i386 $(X64_CROSS): OUTDIR=build/x86-64 and so on ... Also NEED_FLOAT_TYPES for arm-gen is removed. It was about variables that are referenced from outside (libtcc, tccgen). We could declare them in tcc.h (as with reg_classes) or have them twice in arm-gen.c. I chose option 2. --- tcc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index ce7ee22..eaf0e65 100644 --- a/tcc.h +++ b/tcc.h @@ -877,7 +877,7 @@ static inline int toup(int c) #define PUB_FUNC -#ifndef NOTALLINONE +#ifdef ONE_SOURCE #define ST_INLN static inline #define ST_FUNC static #define ST_DATA static @@ -1278,7 +1278,7 @@ ST_DATA const int reg_classes[NB_REGS]; /********************************************************/ #undef ST_DATA -#ifndef NOTALLINONE +#ifdef ONE_SOURCE #define ST_DATA static #else #define ST_DATA -- cgit v1.3.1