nitg: separately compile extern files
authorJean Privat <jean@pryen.org>
Sat, 11 Aug 2012 03:37:17 +0000 (23:37 -0400)
committerJean Privat <jean@pryen.org>
Sat, 11 Aug 2012 03:37:17 +0000 (23:37 -0400)
commitd6c5ac6990d87cb57d46abdc097d73d28b1142b6
tree5f5e326bb854b2bb23244871ddff1962e7fc329c
parent6b7e7dd6b4050b0ff19424f0685a1bf01f9653bc
nitg: separately compile extern files

they are compiled in .nit_compile/ as `xxx.num.o`.
eg.

    .nit_compile/hello_world.2.o: lib/standard/file_nit.c
         $(CC) $(CFLAGS) -D NONITCNI -c -o .nit_compile/hello_world.2.o lib/standard/file_nit.c

it is better than compiling them during the link.

Signed-off-by: Jean Privat <jean@pryen.org>
src/global_compiler.nit