forked from M0xkLurk3r/startcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.bat
35 lines (28 loc) · 1.08 KB
/
Makefile.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
@rem This code must be run under Visual Studio Command Line.
@rem This file is part of STARTCL.
@rem STARTCL is free software: you can redistribute it and/or modify
@rem it under the terms of the GNU General Public License as published by
@rem the Free Software Foundation, either version 3 of the License, or
@rem (at your option) any later version.
@rem STARTCL is distributed in the hope that it will be useful,
@rem but WITHOUT ANY WARRANTY; without even the implied warranty of
@rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@rem GNU General Public License for more details.
@rem You should have received a copy of the GNU General Public License
@rem along with STARTCL. If not, see <http://www.gnu.org/licenses/>.
@echo 编译开始。
if "%VCINSTALLDIR%" == "" goto :exit
cl.exe /MD /D "NDEBUG" /EHsc /c main.cpp
rc.exe main.rc
mkdir Release
link.exe main.obj main.res /OUT:Release\startcl.exe
del main.obj
del main.res
pause
goto realexit
:exit
echo 错误: MAKEFILE 脚本必须在 Visual Studio 命令提示下运行!
echo.
pause
:realexit