From 777c017034af23a30f330db496887d3fc3913e2a Mon Sep 17 00:00:00 2001 From: wanjochan Date: Sat, 15 Aug 2020 11:13:10 +0800 Subject: [PATCH] cleanup win32/tccwin_build.sh --- win32/tccwin_build.sh | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/win32/tccwin_build.sh b/win32/tccwin_build.sh index a076e895..9a9f4f79 100644 --- a/win32/tccwin_build.sh +++ b/win32/tccwin_build.sh @@ -4,11 +4,10 @@ # * to build cross i386-win32-tcc and x86_64-win32-tcc at osx/lnx # * to build hello_win.c 32/64 with tccwin*.sh -R_=$(pwd) +ROLD=$(pwd) #RTCC=$(cd `dirname $0`; pwd) RTCC=$(cd `dirname $0`/../; pwd) cd $RTCC -echo RTCC=$RTCC make clean ./configure @@ -19,21 +18,18 @@ make tcc make cross-i386-win32 make cross-x86_64-win32 -cd $R_ +sh ./win32/tccwin32.sh ./win32/examples/hello_win.c -o ./win32/examples/hello_win32.exe +sh ./win32/tccwin64.sh ./win32/examples/hello_win.c -o ./win32/examples/hello_win64.exe +ls -al ./win32/examples/hello_win*.exe + +sh ./win32/tccwin32.sh ./tcc.c -DTCC_LIBTCC1="\"i386-win32-libtcc1.a\"" -o ./tcc32.exe +sh ./win32/tccwin64.sh ./tcc.c -DTCC_LIBTCC1="\"x86_64-win32-libtcc1.a\"" -o ./tcc64.exe +ls -al ./tcc*.exe + +sh ./win32/tccwin32.sh ./libtcc.c -DLIBTCC_AS_DLL -shared -o ./libtcc32.dll +sh ./win32/tccwin64.sh ./libtcc.c -DLIBTCC_AS_DLL -shared -o ./libtcc64.dll +ls -al ./libtcc*.dll + +cd $ROLD pwd - echo RTCC=$RTCC - -sh $RTCC/win32/tccwin32.sh $RTCC/win32/examples/hello_win.c -o $RTCC/win32/examples/hello_win32.exe -sh $RTCC/win32/tccwin64.sh $RTCC/win32/examples/hello_win.c -o $RTCC/win32/examples/hello_win64.exe -ls -al $RTCC/win32/examples/hello_win*.exe - -sh $RTCC/win32/tccwin32.sh $RTCC/tcc.c -DTCC_LIBTCC1="\"i386-win32-libtcc1.a\"" -o $RTCC/tcc32.exe -sh $RTCC/win32/tccwin64.sh $RTCC/tcc.c -DTCC_LIBTCC1="\"x86_64-win32-libtcc1.a\"" -o $RTCC/tcc64.exe -ls -al $RTCC/tcc*.exe - -#sh $RTCC/win32/tccwin32.sh $RTCC/libtcc.c -DTCC_LIBTCC1="\"i386-win32-libtcc1.a\"" -DLIBTCC_AS_DLL -DTCC_TARGET_PE -DTCC_TARGET_I386 -o $RTCC/libtcc32.dll -shared -#sh $RTCC/win32/tccwin64.sh $RTCC/libtcc.c -DTCC_LIBTCC1="\"x86_64-win32-libtcc1.a\"" -DLIBTCC_AS_DLL -DTCC_TARGET_PE -DTCC_TARGET_X86_64 -shared -o $RTCC/libtcc64.dll -sh $RTCC/win32/tccwin32.sh $RTCC/libtcc.c -DLIBTCC_AS_DLL -shared -o $RTCC/libtcc32.dll -sh $RTCC/win32/tccwin64.sh $RTCC/libtcc.c -DLIBTCC_AS_DLL -shared -o $RTCC/libtcc64.dll -ls -al $RTCC/libtcc*.dll