blob: 63fc51d5bd54fcdb988e27ce590e06952f985622 (
plain)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
##
## $Id: Makefile,v 22.1 92/06/02 16:48:51 chris Exp $
## $Revision: 22.1 $
##
## $Filename: Makefile $
## $Author: chris $
## $Date: 92/06/02 16:48:51 $
##
## Makefile to build iff.library
##
## COPYRIGHT (C) 1987-1993 BY CHRISTIAN A. WEBER, BRUGGERWEG 2,
## CH-8037 ZUERICH, SWITZERLAND. ALL RIGHTS RESERVED. NO PART
## OF THIS SOFTWARE MAY BE COPIED, REPRODUCED, OR TRANSMITTED
## IN ANY FORM OR BY ANY MEANS, WITHOUT THE PRIOR WRITTEN PER-
## MISSION OF THE AUTHOR. USE AT YOUR OWN RISK.
##
LIBDEST = SYS:Libs-User/
AUTODOC = Autodoc
AUTODOCFLAGS = -a -C -I
ASM = Genam
AFLAGS = -iINCLUDE: -l
CC = sc
CFLAGS =
LD = SLINK
LFLAGS = NOICONS NODEBUG MAP RAM:ifflib.map
#############################################################################
## Regeln
.s.o:
$(ASM) $(AFLAGS) $*.S
.c.o:
$(CC) $(CFLAGS) $*.c
#############################################################################
## Kommandozeilen-Argumente für Make
ALL: /iff.library
#ALL: /iff.library /iffpp.library
DOC: /ifflib.doc
#############################################################################
## iff.library
IFFLIB_SRC = ifflib.S openiff.S closeiff.S findchunk.S getbmhd.S\
getcolortab.S decodepic.S savebitmap.S saveclip.S ifferror.S\
getviewmodes.S modifyframe.S\
PushChunk.S PopChunk.S WriteChunkBytes.S CompressBlock.S DecompressBlock.S
IFFLIB_MODS = ifflib.o openiff.o closeiff.o findchunk.o getbmhd.o\
getcolortab.o decodepic.o savebitmap.o saveclip.o ifferror.o\
getviewmodes.o modifyframe.o\
pushchunk.o popchunk.o writechunkbytes.o compressblock.o decompressblock.o
$(IFFLIB_MODS): IFFLib.i INCUSR:libraries/iff.i
IFFLIB_LIB = CCLIB:iff.lib LIB:small.lib
/iff.library: $(IFFLIB_MODS)
$(LD) $(LFLAGS) FROM $(IFFLIB_MODS) TO /iff.library LIB $(IFFLIB_LIB)
@Protect /iff.library rwd
FlushLibs
@FlushLibs
Copy /iff.library $(LIBDEST)
#############################################################################
## iffpp.library
IFFPPLIB_MODS = $(IFFLIB_MODS) ppopeniff.o ppopeniffc.o
/iffpp.library: $(IFFPPLIB_MODS)
BLINK FROM $(IFFPPLIB_MODS) TO T:___iff LIB LIB:small.lib
@AbsLoad >NIL: -©o/iffpp.library T:___iff
@Delete T:___iff
@Protect /iffpp.library rwd
FlushLibs
@FlushLibs
ppopeniffc.o: ppopeniffc.c
lc -v -b0 -O $*.c
#############################################################################
## Autodocs (ifflib.doc) und ifflib.guide
/ifflib.doc: $(IFFLIB_SRC)
$(AUTODOC) $(AUTODOCFLAGS) $(IFFLIB_SRC) >/ifflib.doc
$(AUTODOC) $(AUTODOCFLAGS) -i $(IFFLIB_SRC) >/ifflib_internal.doc
@Delete QUIET /*.hyper /*.hyper.info
@Rename /CHANGES.DOC /CHANGES.NODOC
AD2AG / TO /
@Rename /CHANGES.NODOC /CHANGES.DOC
@Rename /ifflib /ifflib.hyper
@Rename /ifflib.info /ifflib.hyper.info
@Rename /ifflib_internal /ifflib_internal.hyper
@Rename /ifflib_internal.info /ifflib_internal.hyper.info
#############################################################################
## Bump
Bump:
Bumper ASM IFF
@Make
IFFLib.o: IFF_rev.i
|