History

helper scripts for windows

wanjochan committed 6 years ago

Commit cdf001c1 parent 70b16cb3 files · +46 −0Browse files

Unified · Split

3 files
  1. win32/tccwin32.sh +8 −0
  2. win32/tccwin64.sh +8 −0
  3. win32/tccwin_build.sh +30 −0
win32/tccwin32.sh+8−0
@@ -0,0 +1,8 @@
1+R_=$(pwd)
2+
3+RTCC=$(cd `dirname $0`/../; pwd)
4+echo RTCC=$RTCC
5+
6+$RTCC/i386-win32-tcc -I $RTCC/win32/include -I $RTCC/win32/include/winapi -I $RTCC/include -L $RTCC/win32/lib -L $RTCC $*
7+
8+cd $R_
win32/tccwin64.sh+8−0
@@ -0,0 +1,8 @@
1+R_=$(pwd)
2+
3+RTCC=$(cd `dirname $0`/../; pwd)
4+echo RTCC=$RTCC
5+
6+$RTCC/x86_64-win32-tcc -I $RTCC/win32/include -I $RTCC/win32/include/winapi -I $RTCC/include -L $RTCC/win32/lib -L $RTCC $*
7+
8+cd $R_
win32/tccwin_build.sh+30−0
@@ -0,0 +1,30 @@
1+# please refer to win32/tcc-win32.txt for more detail
2+# this script shows:
3+# * build tcc (with sys cc) and then tcc itself
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
6+
7+R_=$(pwd)
8+#RTCC=$(cd `dirname $0`; pwd)
9+RTCC=$(cd `dirname $0`/../; pwd)
10+cd $RTCC
11+echo RTCC=$RTCC
12+
13+make clean
14+./configure
15+make tcc
16+./configure --cc=./tcc
17+make tcc
18+#make cross
19+make cross-i386-win32
20+make cross-x86_64-win32
21+
22+cd $R_
23+pwd
24+
25+echo RTCC=$RTCC
26+
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
30+

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