]> git.cworth.org Git - gzip/blob - primos/build.cpl
Imported Upstream version 1.3.2
[gzip] / primos / build.cpl
1 /* Gzip build file for Primos.
2 /* author: Peter Eriksson, pen@lysator.liu.se
3 /*
4 type
5 type 'Building GZIP for PRIMOS - Please Wait...'
6 type
7 &if ^ [exists *>PRIMOS>OBJ -dir] &then &do
8       type 'Creating *>PRIMOS>OBJ directory...'
9       type
10       create *>PRIMOS>OBJ
11    &end
12
13 type 'Compiling...
14
15 &set_var unit := 0
16
17 /*
18 &set_var cdefines  :=  -debug
19
20 como *>primos>compile.como
21 &do file &items [wild *>@@.c -single unit]
22   &set_var filebase := [before %file% .]
23   &if ^  [exists *>primos>obj>%filebase%.bin] &then &do
24   type 'Compiling "'%file%'"...'
25   ci *>%file% -binary *>primos>obj>=.bin %cdefines% -optionsfile *>primos>ci.opts
26   &end
27 &end
28 close -unit %unit%
29 &set_var unit := 0
30
31 &do file &items [wild *>primos>@@.c -single unit]
32   &set_var filebase := [before %file% .]
33   &if ^  [exists *>primos>obj>%filebase%.bin] &then &do
34   type 'Compiling "'%file%'"...'
35   ci *>primos>%file% -binary *>primos>obj>=.bin %cdefines% -optionsfile *>primos>ci.opts
36   &end
37 &end
38 como -end
39
40 type
41 type
42 type 'Binding...'
43
44 &set_var unit := 0
45 &data bind
46   li ccmain
47   load *>primos>obj>gzip
48   load *>primos>obj>bits
49   load *>primos>obj>crypt
50   load *>primos>obj>deflate
51   load *>primos>obj>getopt
52   load *>primos>obj>inflate
53   load *>primos>obj>lzw
54   load *>primos>obj>makecrc
55   load *>primos>obj>primos
56   load *>primos>obj>trees
57   load *>primos>obj>unlzw
58   load *>primos>obj>unpack
59   load *>primos>obj>unlzh
60   load *>primos>obj>unzip
61   load *>primos>obj>util
62   load *>primos>obj>zip
63   li c_lib
64   li
65   dynt -all
66   nwc
67   nitr
68   ntw
69   compress
70   file *>primos>gzip.run
71 &end
72
73 type
74 type
75 type 'All done. (Hopefully). The executable should be in *>PRIMOS>GZIP.RUN'
76 &return