summaryrefslogtreecommitdiffstats
path: root/private/crtlib/buildall.cmd
blob: 18399e00624f5d8592e672adf3d5f41b8c2a7b9a (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
setlocal
@set _targetcpu=%PROCESSOR_ARCHITECTURE%
@if "%_targetcpu%" == "x86" set _targetcpu=386
@if "%_targetcpu%" == "PPC" set _targetcpu=ppc
@if "%_targetcpu%" == "MIPS" set _targetcpu=mips
@if "%_targetcpu%" == "ALPHA" set _targetcpu=alpha
echo Building %_targetcpu%
@set _buildopts=-%_targetcpu% %1 %2 %3 %4 %5 %6 %7 %8 %9
@cd ..\fp32nt
@echo Building NT Subset of Single Thread C Floating Point Runtimes
@call buildcrt nt %_buildopts%
@cd ..\crt32nt
@echo Building NT Subset of Single Thread C Runtimes (excluding FP)
@call buildcrt nt %_buildopts%
@cd ..\fp32st
@echo Building Single Thread C Floating Point Runtimes
@call buildcrt st %_buildopts%
@cd ..\crt32st
@echo Building Single Thread C Runtimes (excluding FP)
@call buildcrt st %_buildopts%
@cd ..\fp32
@echo Building Multi-Thread C Floating Point Runtimes
@call buildcrt mt %_buildopts%
@cd ..\crt32
@echo Building Multi-Thread C Runtimes (excluding FP)
@call buildcrt mt %_buildopts%
@cd ..\fp32dll
@echo Building DLL C Floating Point Runtimes
@call buildcrt dll %_buildopts%
@cd ..\crt32dll
@echo Building DLL C Runtimes (excluding FP)
@call buildcrt dll %_buildopts%
@cd ..\crt32psx
@echo Building POSIX C Runtimes (excluding FP)
@call buildcrt posix %_buildopts%
:buildlibs
@if "%_targetcpu%" == "mips" goto linkmips
@if "%_targetcpu%" == "alpha" goto linkalpha
@if "%_targetcpu%" == "ppc" goto linkppc
@cd ..\crtlib
@echo Building libcnt.lib libc.lib libcmt.lib libcpsx.lib crtdll.lib crtdll.dll for i386
@nmake 386=1
@goto done
:linkmips
@cd ..\crtlib
@echo Building libcnt.lib libc.lib libcmt.lib libcpsx.lib crtdll.lib crtdll.dll for MIPS
@nmake MIPS=1
@goto done
:linkalpha
@cd ..\crtlib
@echo Building libcnt.lib libc.lib libcmt.lib libcpsx.lib crtdll.lib crtdll.dll for ALPHA
@nmake ALPHA=1
@goto done
:linkppc
@cd ..\crtlib
@echo Building libcnt.lib libc.lib libcmt.lib libcpsx.lib crtdll.lib crtdll.dll for PPC
@nmake PPC=1
@goto done
:bogus
@echo Usage: BUILDALL (386 or MIPS or ALPHA or PPC) [BuildOptions]
:done
@endlocal