History

cleanup win32/tccwin_build.sh

wanjochan committed 6 years ago

Commit 777c0171 parent 62c30a41 file · +13 −17Browse files

Unified · Split

win32/tccwin_build.sh+13−17
@@ -4,11 +4,10 @@ · 3 unmodified lines
44 # * to build cross i386-win32-tcc and x86_64-win32-tcc at osx/lnx
55 # * to build hello_win.c 32/64 with tccwin*.sh
66
7−R_=$(pwd)
7+ROLD=$(pwd)
88 #RTCC=$(cd `dirname $0`; pwd)
99 RTCC=$(cd `dirname $0`/../; pwd)
1010 cd $RTCC
11−echo RTCC=$RTCC
1211
1312 make clean
1413 ./configure
@@ -19,21 +18,18 @@ make tcc · 4 unmodified lines
1918 make cross-i386-win32
2019 make cross-x86_64-win32
2120
22−cd $R_
23−pwd
24−
25−echo RTCC=$RTCC
21+sh ./win32/tccwin32.sh ./win32/examples/hello_win.c -o ./win32/examples/hello_win32.exe
22+sh ./win32/tccwin64.sh ./win32/examples/hello_win.c -o ./win32/examples/hello_win64.exe
23+ls -al ./win32/examples/hello_win*.exe
2624
27−sh $RTCC/win32/tccwin32.sh $RTCC/win32/examples/hello_win.c -o $RTCC/win32/examples/hello_win32.exe
28−sh $RTCC/win32/tccwin64.sh $RTCC/win32/examples/hello_win.c -o $RTCC/win32/examples/hello_win64.exe
29−ls -al $RTCC/win32/examples/hello_win*.exe
25+sh ./win32/tccwin32.sh ./tcc.c -DTCC_LIBTCC1="\"i386-win32-libtcc1.a\"" -o ./tcc32.exe
26+sh ./win32/tccwin64.sh ./tcc.c -DTCC_LIBTCC1="\"x86_64-win32-libtcc1.a\"" -o ./tcc64.exe
27+ls -al ./tcc*.exe
3028
31−sh $RTCC/win32/tccwin32.sh $RTCC/tcc.c -DTCC_LIBTCC1="\"i386-win32-libtcc1.a\"" -o $RTCC/tcc32.exe
32−sh $RTCC/win32/tccwin64.sh $RTCC/tcc.c -DTCC_LIBTCC1="\"x86_64-win32-libtcc1.a\"" -o $RTCC/tcc64.exe
33−ls -al $RTCC/tcc*.exe
29+sh ./win32/tccwin32.sh ./libtcc.c -DLIBTCC_AS_DLL -shared -o ./libtcc32.dll
30+sh ./win32/tccwin64.sh ./libtcc.c -DLIBTCC_AS_DLL -shared -o ./libtcc64.dll
31+ls -al ./libtcc*.dll
3432
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
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
37−sh $RTCC/win32/tccwin32.sh $RTCC/libtcc.c -DLIBTCC_AS_DLL -shared -o $RTCC/libtcc32.dll
38−sh $RTCC/win32/tccwin64.sh $RTCC/libtcc.c -DLIBTCC_AS_DLL -shared -o $RTCC/libtcc64.dll
39−ls -al $RTCC/libtcc*.dll
33+cd $ROLD
34+pwd
35+echo RTCC=$RTCC

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t