-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
makeDynamicSpice.bat
49 lines (38 loc) · 1.09 KB
/
makeDynamicSpice.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
rem
rem makeDynamicSpice.bat
rem
rem Creates the cspice.dll when run within the src/cspice directory.
rem Requires Visual Studio development tools to be in the path.
rem Specifically cl.exe and link.exe .
rem
rem
@echo on
rem Running makeDynamicSpice.bat, this may take some time (a minute or two) ...
@echo off
set cl= /c /O2 /nologo -D_COMPLEX_DEFINED -DMSDOS -DOMIT_BLANK_CC -DNON_ANSI_STDIO
rem
rem The optimization algorithm has a very tough time with zzsecptr.c,
rem so exempt this routine from optimization.
rem
rename zzsecprt.c zzsecprt.x
rem
rem Compile everything else.
rem
for %%f in (*.c) do cl %%f >nul
rem
rem Set the cl variable to omit optimization. Compile zzsecprt.c.
rem
set cl= /c /nologo -D_COMPLEX_DEFINED -DMSDOS -DOMIT_BLANK_CC >nul
rename zzsecprt.x zzsecprt.c
cl zzsecprt.c >nul
dir /b *.obj > temp.lst
@echo on
rem Finished Compiling, starting to Link spice.
@echo off
rem
rem Create cspice.dll
rem
link /DLL /OUT:libcspice.dll /DEF:cspice.def /IMPLIB:libcspice.lib @temp.lst >nul
@echo on
rem Finished Linking Spice, makeDynamicSpice.bat completed.