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. --- win32/build-tcc.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32/build-tcc.bat') diff --git a/win32/build-tcc.bat b/win32/build-tcc.bat index 42dc8f6..3b2bb1e 100644 --- a/win32/build-tcc.bat +++ b/win32/build-tcc.bat @@ -29,11 +29,11 @@ echo>>..\config.h #define CONFIG_SYSROOT "" :libtcc if not exist libtcc\nul mkdir libtcc copy ..\libtcc.h libtcc\libtcc.h -%CC% %target% -fno-strict-aliasing ../libtcc.c -c -o libtcc.o +%CC% %target% -fno-strict-aliasing -DONE_SOURCE ../libtcc.c -c -o libtcc.o %AR% rcs libtcc/libtcc.a libtcc.o :tcc -%CC% %target% -fno-strict-aliasing ../tcc.c -o tcc.exe -DTCC_USE_LIBTCC -ltcc -Llibtcc +%CC% %target% -fno-strict-aliasing ../tcc.c -o tcc.exe -ltcc -Llibtcc :copy_std_includes copy ..\include\*.h include -- cgit v1.3.1