Home | History | Annotate | Line # | Download | only in old
      1  1.1  christos # Project:   zlib_1_03
      2  1.1  christos # Patched for zlib 1.1.2 rw (a] shadow.org.uk 19980430
      3  1.1  christos # test works out-of-the-box, installs `somewhere' on demand
      4  1.1  christos 
      5  1.1  christos # Toolflags:
      6  1.1  christos CCflags = -c -depend !Depend -IC: -g -throwback  -DRISCOS  -fah
      7  1.1  christos C++flags = -c -depend !Depend -IC: -throwback
      8  1.1  christos Linkflags = -aif -c++ -o $@
      9  1.1  christos ObjAsmflags = -throwback -NoCache -depend !Depend
     10  1.1  christos CMHGflags =
     11  1.1  christos LibFileflags = -c -l -o $@
     12  1.1  christos Squeezeflags = -o $@
     13  1.1  christos 
     14  1.1  christos # change the line below to where _you_ want the library installed.
     15  1.1  christos libdest = lib:zlib
     16  1.1  christos 
     17  1.1  christos # Final targets:
     18  1.1  christos @.lib:   @.o.adler32 @.o.compress @.o.crc32 @.o.deflate @.o.gzio \
     19  1.1  christos         @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil @.o.trees \
     20  1.1  christos         @.o.uncompr @.o.zutil
     21  1.1  christos         LibFile $(LibFileflags) @.o.adler32 @.o.compress @.o.crc32 @.o.deflate \
     22  1.1  christos         @.o.gzio @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil \
     23  1.1  christos         @.o.trees @.o.uncompr @.o.zutil
     24  1.1  christos test:   @.minigzip @.example @.lib
     25  1.1  christos 	@copy @.lib @.libc  A~C~DF~L~N~P~Q~RS~TV
     26  1.1  christos 	@echo running tests: hang on.
     27  1.1  christos 	@/@.minigzip -f -9 libc
     28  1.1  christos 	@/@.minigzip -d libc-gz
     29  1.1  christos 	@/@.minigzip -f -1 libc
     30  1.1  christos 	@/@.minigzip -d libc-gz
     31  1.1  christos 	@/@.minigzip -h -9 libc
     32  1.1  christos 	@/@.minigzip -d libc-gz
     33  1.1  christos 	@/@.minigzip -h -1 libc
     34  1.1  christos 	@/@.minigzip -d libc-gz
     35  1.1  christos 	@/@.minigzip -9 libc
     36  1.1  christos 	@/@.minigzip -d libc-gz
     37  1.1  christos 	@/@.minigzip -1 libc
     38  1.1  christos 	@/@.minigzip -d libc-gz
     39  1.1  christos 	@diff @.lib @.libc
     40  1.1  christos 	@echo that should have reported '@.lib and @.libc identical' if you have diff.
     41  1.1  christos 	@/@.example @.fred @.fred
     42  1.1  christos 	@echo that will have given lots of hello!'s.
     43  1.1  christos 
     44  1.1  christos @.minigzip:   @.o.minigzip @.lib C:o.Stubs
     45  1.1  christos         Link $(Linkflags) @.o.minigzip @.lib C:o.Stubs
     46  1.1  christos @.example:   @.o.example @.lib C:o.Stubs
     47  1.1  christos         Link $(Linkflags) @.o.example @.lib C:o.Stubs
     48  1.1  christos 
     49  1.1  christos install: @.lib
     50  1.1  christos 	cdir $(libdest)
     51  1.1  christos 	cdir $(libdest).h
     52  1.1  christos 	@copy @.h.zlib $(libdest).h.zlib A~C~DF~L~N~P~Q~RS~TV
     53  1.1  christos 	@copy @.h.zconf $(libdest).h.zconf A~C~DF~L~N~P~Q~RS~TV
     54  1.1  christos 	@copy @.lib $(libdest).lib  A~C~DF~L~N~P~Q~RS~TV
     55  1.1  christos 	@echo okay, installed zlib in $(libdest)
     56  1.1  christos 
     57  1.1  christos clean:; remove @.minigzip
     58  1.1  christos 	remove @.example
     59  1.1  christos 	remove @.libc
     60  1.1  christos 	-wipe @.o.* F~r~cV
     61  1.1  christos 	remove @.fred
     62  1.1  christos 
     63  1.1  christos # User-editable dependencies:
     64  1.1  christos .c.o:
     65  1.1  christos         cc $(ccflags) -o $@ $<
     66  1.1  christos 
     67  1.1  christos # Static dependencies:
     68  1.1  christos 
     69  1.1  christos # Dynamic dependencies:
     70  1.1  christos o.example:	c.example
     71  1.1  christos o.example:	h.zlib
     72  1.1  christos o.example:	h.zconf
     73  1.1  christos o.minigzip:	c.minigzip
     74  1.1  christos o.minigzip:	h.zlib
     75  1.1  christos o.minigzip:	h.zconf
     76  1.1  christos o.adler32:	c.adler32
     77  1.1  christos o.adler32:	h.zlib
     78  1.1  christos o.adler32:	h.zconf
     79  1.1  christos o.compress:	c.compress
     80  1.1  christos o.compress:	h.zlib
     81  1.1  christos o.compress:	h.zconf
     82  1.1  christos o.crc32:	c.crc32
     83  1.1  christos o.crc32:	h.zlib
     84  1.1  christos o.crc32:	h.zconf
     85  1.1  christos o.deflate:	c.deflate
     86  1.1  christos o.deflate:	h.deflate
     87  1.1  christos o.deflate:	h.zutil
     88  1.1  christos o.deflate:	h.zlib
     89  1.1  christos o.deflate:	h.zconf
     90  1.1  christos o.gzio:	c.gzio
     91  1.1  christos o.gzio:	h.zutil
     92  1.1  christos o.gzio:	h.zlib
     93  1.1  christos o.gzio:	h.zconf
     94  1.1  christos o.infblock:	c.infblock
     95  1.1  christos o.infblock:	h.zutil
     96  1.1  christos o.infblock:	h.zlib
     97  1.1  christos o.infblock:	h.zconf
     98  1.1  christos o.infblock:	h.infblock
     99  1.1  christos o.infblock:	h.inftrees
    100  1.1  christos o.infblock:	h.infcodes
    101  1.1  christos o.infblock:	h.infutil
    102  1.1  christos o.infcodes:	c.infcodes
    103  1.1  christos o.infcodes:	h.zutil
    104  1.1  christos o.infcodes:	h.zlib
    105  1.1  christos o.infcodes:	h.zconf
    106  1.1  christos o.infcodes:	h.inftrees
    107  1.1  christos o.infcodes:	h.infblock
    108  1.1  christos o.infcodes:	h.infcodes
    109  1.1  christos o.infcodes:	h.infutil
    110  1.1  christos o.infcodes:	h.inffast
    111  1.1  christos o.inffast:	c.inffast
    112  1.1  christos o.inffast:	h.zutil
    113  1.1  christos o.inffast:	h.zlib
    114  1.1  christos o.inffast:	h.zconf
    115  1.1  christos o.inffast:	h.inftrees
    116  1.1  christos o.inffast:	h.infblock
    117  1.1  christos o.inffast:	h.infcodes
    118  1.1  christos o.inffast:	h.infutil
    119  1.1  christos o.inffast:	h.inffast
    120  1.1  christos o.inflate:	c.inflate
    121  1.1  christos o.inflate:	h.zutil
    122  1.1  christos o.inflate:	h.zlib
    123  1.1  christos o.inflate:	h.zconf
    124  1.1  christos o.inflate:	h.infblock
    125  1.1  christos o.inftrees:	c.inftrees
    126  1.1  christos o.inftrees:	h.zutil
    127  1.1  christos o.inftrees:	h.zlib
    128  1.1  christos o.inftrees:	h.zconf
    129  1.1  christos o.inftrees:	h.inftrees
    130  1.1  christos o.inftrees:	h.inffixed
    131  1.1  christos o.infutil:	c.infutil
    132  1.1  christos o.infutil:	h.zutil
    133  1.1  christos o.infutil:	h.zlib
    134  1.1  christos o.infutil:	h.zconf
    135  1.1  christos o.infutil:	h.infblock
    136  1.1  christos o.infutil:	h.inftrees
    137  1.1  christos o.infutil:	h.infcodes
    138  1.1  christos o.infutil:	h.infutil
    139  1.1  christos o.trees:	c.trees
    140  1.1  christos o.trees:	h.deflate
    141  1.1  christos o.trees:	h.zutil
    142  1.1  christos o.trees:	h.zlib
    143  1.1  christos o.trees:	h.zconf
    144  1.1  christos o.trees:	h.trees
    145  1.1  christos o.uncompr:	c.uncompr
    146  1.1  christos o.uncompr:	h.zlib
    147  1.1  christos o.uncompr:	h.zconf
    148  1.1  christos o.zutil:	c.zutil
    149  1.1  christos o.zutil:	h.zutil
    150  1.1  christos o.zutil:	h.zlib
    151  1.1  christos o.zutil:	h.zconf
    152