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 @@
1R_=$(pwd)
2
3RTCC=$(cd `dirname $0`/../; pwd)
4echo 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
8cd $R_
win32/tccwin64.sh+8−0
@@ -0,0 +1,8 @@
1R_=$(pwd)
2
3RTCC=$(cd `dirname $0`/../; pwd)
4echo 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
8cd $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
7R_=$(pwd)
8#RTCC=$(cd `dirname $0`; pwd)
9RTCC=$(cd `dirname $0`/../; pwd)
10cd $RTCC
11echo RTCC=$RTCC
12
13make clean
14./configure
15make tcc
16./configure --cc=./tcc
17make tcc
18#make cross
19make cross-i386-win32
20make cross-x86_64-win32
21
22cd $R_
23pwd
24
25echo RTCC=$RTCC
26
27sh $RTCC/win32/tccwin32.sh $RTCC/win32/examples/hello_win.c -o $RTCC/win32/examples/hello_win32.exe
28sh $RTCC/win32/tccwin64.sh $RTCC/win32/examples/hello_win.c -o $RTCC/win32/examples/hello_win64.exe
29ls -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