From 74a24d77fd9c08ad9a6b3b6c0f434c7314dae639 Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 11 Aug 2011 16:55:30 +0200 Subject: libtcc: minor adjustments - use {B} to substitute tcc_lih_path (instead of \b) - expand CONFIG_TCC_CRTPREFIX in CONFIG_TCC_LIBPATHS which fixes duplicate CONFIG_SYSROOT. - put default CONFIG_SYSROOT ("") into tcc.h - remove hack from commit db6fcce78f4d8ea25036dd6643e9fa83d8e52e5a because $(tccdir)/include is already in sysincludes - configure: error out for unrecognized options. - win32/build-tcc.bat: put libtcc into base dir where it will find lib/include automatically, and build libtcc_test example. --- win32/build-tcc.bat | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'win32') diff --git a/win32/build-tcc.bat b/win32/build-tcc.bat index e004290..21bf3a8 100644 --- a/win32/build-tcc.bat +++ b/win32/build-tcc.bat @@ -3,8 +3,6 @@ @rem ---------------------------------------------------- echo>..\config.h #define TCC_VERSION "0.9.25" -echo>>..\config.h #define CONFIG_TCCDIR "." -echo>>..\config.h #define CONFIG_SYSROOT "" @if _%PROCESSOR_ARCHITEW6432%_==_AMD64_ goto x86_64 @if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_64 @@ -31,7 +29,9 @@ if not exist libtcc\nul mkdir libtcc copy ..\libtcc.h libtcc\libtcc.h %CC% %target% -DONE_SOURCE ../libtcc.c -c -o libtcc.o %AR% rcs libtcc/libtcc.a libtcc.o -%CC% %target% -shared -DLIBTCC_AS_DLL -DONE_SOURCE ../libtcc.c -o libtcc/libtcc.dll +:libtcc.dll +%CC% %target% -shared -DLIBTCC_AS_DLL -DONE_SOURCE ../libtcc.c -o libtcc.dll +tiny_impdef libtcc.dll -o lib/libtcc.def :tcc %CC% %target% ../tcc.c -o tcc.exe -ltcc -Llibtcc @@ -61,3 +61,7 @@ tiny_libmaker lib/libtcc1.a libtcc1.o alloca86_64.o crt1.o wincrt1.o dllcrt1.o d :the_end del *.o + +:libtcc_test +.\tcc -v -I libtcc -ltcc ../tests/libtcc_test.c +.\libtcc_test -- cgit v1.3.1