Unified · Split
| @@ -4,11 +4,10 @@ · 3 unmodified lines | |||
| 4 | # * to build cross i386-win32-tcc and x86_64-win32-tcc at osx/lnx | 4 | # * to build cross i386-win32-tcc and x86_64-win32-tcc at osx/lnx |
| 5 | # * to build hello_win.c 32/64 with tccwin*.sh | 5 | # * to build hello_win.c 32/64 with tccwin*.sh |
| 6 | 6 | ||
| 7 | R_=$(pwd) | 7 | ROLD=$(pwd) |
| 8 | #RTCC=$(cd `dirname $0`; pwd) | 8 | #RTCC=$(cd `dirname $0`; pwd) |
| 9 | RTCC=$(cd `dirname $0`/../; pwd) | 9 | RTCC=$(cd `dirname $0`/../; pwd) |
| 10 | cd $RTCC | 10 | cd $RTCC |
| 11 | echo RTCC=$RTCC | ||
| 12 | 11 | ||
| 13 | make clean | 12 | make clean |
| 14 | ./configure | 13 | ./configure |
| @@ -19,21 +18,18 @@ make tcc · 4 unmodified lines | |||
| 19 | make cross-i386-win32 | 18 | make cross-i386-win32 |
| 20 | make cross-x86_64-win32 | 19 | make cross-x86_64-win32 |
| 21 | 20 | ||
| 22 | cd $R_ | 21 | sh ./win32/tccwin32.sh ./win32/examples/hello_win.c -o ./win32/examples/hello_win32.exe |
| 23 | pwd | 22 | sh ./win32/tccwin64.sh ./win32/examples/hello_win.c -o ./win32/examples/hello_win64.exe |
| 24 | 23 | ls -al ./win32/examples/hello_win*.exe | |
| 25 | echo RTCC=$RTCC | ||
| 26 | 24 | ||
| 27 | sh $RTCC/win32/tccwin32.sh $RTCC/win32/examples/hello_win.c -o $RTCC/win32/examples/hello_win32.exe | 25 | sh ./win32/tccwin32.sh ./tcc.c -DTCC_LIBTCC1="\"i386-win32-libtcc1.a\"" -o ./tcc32.exe |
| 28 | sh $RTCC/win32/tccwin64.sh $RTCC/win32/examples/hello_win.c -o $RTCC/win32/examples/hello_win64.exe | 26 | sh ./win32/tccwin64.sh ./tcc.c -DTCC_LIBTCC1="\"x86_64-win32-libtcc1.a\"" -o ./tcc64.exe |
| 29 | ls -al $RTCC/win32/examples/hello_win*.exe | 27 | ls -al ./tcc*.exe |
| 30 | 28 | ||
| 31 | sh $RTCC/win32/tccwin32.sh $RTCC/tcc.c -DTCC_LIBTCC1="\"i386-win32-libtcc1.a\"" -o $RTCC/tcc32.exe | 29 | sh ./win32/tccwin32.sh ./libtcc.c -DLIBTCC_AS_DLL -shared -o ./libtcc32.dll |
| 32 | sh $RTCC/win32/tccwin64.sh $RTCC/tcc.c -DTCC_LIBTCC1="\"x86_64-win32-libtcc1.a\"" -o $RTCC/tcc64.exe | 30 | sh ./win32/tccwin64.sh ./libtcc.c -DLIBTCC_AS_DLL -shared -o ./libtcc64.dll |
| 33 | ls -al $RTCC/tcc*.exe | 31 | ls -al ./libtcc*.dll |
| 34 | 32 | ||
| 35 | #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 | 33 | cd $ROLD |
| 36 | #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 | 34 | pwd |
| 37 | sh $RTCC/win32/tccwin32.sh $RTCC/libtcc.c -DLIBTCC_AS_DLL -shared -o $RTCC/libtcc32.dll | 35 | echo RTCC=$RTCC |
| 38 | sh $RTCC/win32/tccwin64.sh $RTCC/libtcc.c -DLIBTCC_AS_DLL -shared -o $RTCC/libtcc64.dll | ||
| 39 | ls -al $RTCC/libtcc*.dll | ||