2 Star 0 Fork 0

mirrors_ReneNyffenegger/dev-compiler-SubC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
winbuild.bat 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
Jens Nyberg 提交于 2017-06-16 02:12 . import subc-20161212.tgz
@echo off
set MINGWPATH=c:\\mingw
set CC=gcc
set MAKE=mingw32-make
if "%1"=="go" goto doit
if "%1"=="Go" goto doit
if "%1"=="GO" goto doit
echo This batch file requires MinGW and MSYS to be installed and
echo some common Unix tools, like ar, rm, etc to be in the PATH.
echo MINGWPATH must be set to your MinGW root directory (i.e. the
echo directory containing lib/, bin/, etc.)
echo Type WINBUILD.BAT GO to actually run this batch file!
goto end
:doit
PATH=%MINGWPATH%\bin;%MINGWPATH%\msys\1.0\bin;%PATH%
echo on
cd src
if exist defs.org goto copyback
copy defs.h defs.org
:copyback
copy defs.org defs.h
copy targets\lib\init-windows.c lib\init.c
copy targets\lib\system-windows.c lib\system.c
copy targets\cg\cg386.c cg.c
copy targets\cg\cg386.h cg.h
copy targets\windows-386\sys-windows-386.h sys.h
copy targets\windows-386\crt0-windows-386.s lib\crt0.s
copy targets\include\limits-32.h include\limits.h
echo #undef SYSLIBC >> sys.h
echo #define SYSLIBC "%MINGWPATH%/lib/libuser32.a %MINGWPATH%/lib/libkernel32.a %MINGWPATH%/lib/libgdi32.a" >> sys.h
echo /**/ >> sys.h
%MAKE% clean
%MAKE% all
echo #undef SCCDIR >> defs.h
echo #define SCCDIR "%MINGWPATH%/scc" >> defs.h
mkdir %MINGWPATH%\scc
mkdir %MINGWPATH%\scc\lib
mkdir %MINGWPATH%\scc\include
copy include\*.* %MINGWPATH%\scc\include\
copy lib\libscc.a %MINGWPATH%\scc\lib\
copy lib\crt0.o %MINGWPATH%\scc\lib\
%MAKE% scc1
copy scc1 %MINGWPATH%\bin\scc.exe
cd ..
echo done!
:end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_ReneNyffenegger/dev-compiler-SubC.git
git@gitee.com:mirrors_ReneNyffenegger/dev-compiler-SubC.git
mirrors_ReneNyffenegger
dev-compiler-SubC
dev-compiler-SubC
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385