make: create native tcc from separate objects
commit5280293d6b16bbe24dfda76e37f32322fa2874ca
authorgrischka <grischka>
Thu, 14 Jul 2011 16:45:37 +0000 (14 18:45 +0200)
committergrischka <grischka>
Thu, 14 Jul 2011 16:45:37 +0000 (14 18:45 +0200)
tree29d05bd4034a3841e6920817d39b0334926f442f
parent4ccb5662cbfbf3e8c58a1b642fd3446fcce55e16
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.
Makefile
arm-gen.c
libtcc.c
tcc.c
tcc.h
tccpe.c
win32/build-tcc.bat