helper scripts for windows
This commit is contained in:
parent
70b16cb7f8
commit
cdf001c296
3 changed files with 46 additions and 0 deletions
8
win32/tccwin32.sh
Normal file
8
win32/tccwin32.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
R_=$(pwd)
|
||||||
|
|
||||||
|
RTCC=$(cd `dirname $0`/../; pwd)
|
||||||
|
echo RTCC=$RTCC
|
||||||
|
|
||||||
|
$RTCC/i386-win32-tcc -I $RTCC/win32/include -I $RTCC/win32/include/winapi -I $RTCC/include -L $RTCC/win32/lib -L $RTCC $*
|
||||||
|
|
||||||
|
cd $R_
|
8
win32/tccwin64.sh
Normal file
8
win32/tccwin64.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
R_=$(pwd)
|
||||||
|
|
||||||
|
RTCC=$(cd `dirname $0`/../; pwd)
|
||||||
|
echo RTCC=$RTCC
|
||||||
|
|
||||||
|
$RTCC/x86_64-win32-tcc -I $RTCC/win32/include -I $RTCC/win32/include/winapi -I $RTCC/include -L $RTCC/win32/lib -L $RTCC $*
|
||||||
|
|
||||||
|
cd $R_
|
30
win32/tccwin_build.sh
Normal file
30
win32/tccwin_build.sh
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# please refer to win32/tcc-win32.txt for more detail
|
||||||
|
# this script shows:
|
||||||
|
# * build tcc (with sys cc) and then tcc itself
|
||||||
|
# * 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)
|
||||||
|
#RTCC=$(cd `dirname $0`; pwd)
|
||||||
|
RTCC=$(cd `dirname $0`/../; pwd)
|
||||||
|
cd $RTCC
|
||||||
|
echo RTCC=$RTCC
|
||||||
|
|
||||||
|
make clean
|
||||||
|
./configure
|
||||||
|
make tcc
|
||||||
|
./configure --cc=./tcc
|
||||||
|
make tcc
|
||||||
|
#make cross
|
||||||
|
make cross-i386-win32
|
||||||
|
make cross-x86_64-win32
|
||||||
|
|
||||||
|
cd $R_
|
||||||
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue