-
Notifications
You must be signed in to change notification settings - Fork 1
/
makereg.bat
26 lines (26 loc) · 1.08 KB
/
makereg.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
:: ============================================================================
::
:: Copyright (C) EEMBC(R) All Rights Reserved
::
:: This software is licensed with an Acceptable Use Agreement under Apache 2.0.
:: Please refer to the license file (LICENSE.md) included with this code.
::
:: ============================================================================
@echo off
:: GCC
@make VER=%VER% TOOLCHAIN=gcc LITE= %1
@if NOT EXIST ..\gcc_time%VER%.log type ..\util\awk\titletime.txt >..\gcc_time%VER%.log
@if EXIST gcc_time%VER%.log type gcc_time%VER%.log >>..\gcc_time%VER%.log
:: Visual C++
:: See if user has removed visual C
@if NOT EXIST ..\util\make\vc.mak goto end
:: PORTING: Set up Visual C variables in your environment
@if "%MSVCDir%" == "" call ..\util\make\vcvars32
@if "%MSVCDir%" == "" goto vcerror
@make VER=%VER% TOOLCHAIN=vc LITE= %1
@if NOT EXIST ..\vc_time%VER%.log type ..\util\awk\titletime.txt >..\vc_time%VER%.log
@if EXIST vc_time%VER%.log type vc_time%VER%.log >>..\vc_time%VER%.log
@goto end
:vcerror
@echo "***ERROR: VC++ NOT FOUND: edit util/make/vcvars32.bat
:end