-
Notifications
You must be signed in to change notification settings - Fork 51
/
ccs.bat
71 lines (71 loc) · 2.41 KB
/
ccs.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
rem script for compiling f2cx (extended-memory f2c) with Symantec C version 6
del *.obj
sc -c -s -mx -o -w2 -w7 -DMSDOS cds.c >zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS data.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS equiv.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS error.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS exec.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS expr.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS format.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS formatda.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS gram.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS init.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS intr.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS io.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS lex.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS main.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS mem.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS misc.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS names.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS niceprin.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS -DUSE_DTOA output.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS p1output.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS parse_ar.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS pread.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS proc.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS put.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS putpcc.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS sysdep.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS vax.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS version.c >>zot
if errorlevel 1 goto
rem The following echo and ren create stklen.c if it does not exist
rem and avoid overwriting an existing stklen.c .
echo extern unsigned _stklen = 0x4000; >zap
ren zap stklen.c
sc -c -s -mx -o -w2 -w7 -DMSDOS stklen.c >>zot
if errorlevel 1 goto
rem README tells about dtoa.c and g_fmt.c .
sc -c -s -mx -o -w2 -w7 -DMSDOS -DMALLOC=ckalloc -DIEEE_8087 dtoa.c >>zot
if errorlevel 1 goto
sc -c -s -mx -o -w2 -w7 -DMSDOS -DIEEE_8087 g_fmt.c >>zot
if errorlevel 1 goto
sc -mx -s -o f2cx.exe *.obj
del *.obj