4 # © 1998 Straylight/Edgeware
7 #----- Licensing note -------------------------------------------------------
9 # This makefile is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
14 # This makefile is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this makefile. If not, write to the Free Software Foundation,
21 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 #----- Compilation flags ----------------------------------------------------
25 # --- Uncomment to use the C4 tools ---
29 # --- C compilation ---
31 CC = $(OLD)cc -c -o $@
32 CFLAGS = -depend !Depend -throwback -ffah -Ilibs: -IC:
33 COMPILE = $(CC) $(CFLAGS)
37 AS = $(OLD)objasm -quit -to $@
38 ASFLAGS = -stamp -depend !Depend -throwback
39 ASSEMBLE = $(AS) $(ASFLAGS) -from
47 LD_UTIL = $(LD) -bin -base 0
48 LD_MOD = $(LD) -bin -base 0
49 LD_BIN = $(LD) -bin -base 0
53 # --- Making libraries ---
59 # --- Setting file types ---
61 SET_APP = SetType $@ FF8
62 SET_MOD = SetType $@ FFA
63 SET_UTIL = SetType $@ FFC
64 SET_DLL = SetType $@ FFD
66 # --- Other maintenance things ---
72 DATE = %zdy %mo %ce%yr
73 MODDATE = %dy %m3 %ce%yr
74 CRIGHT = © %ce%yr Straylight
77 #----- Default rules --------------------------------------------------------
79 .SUFFIXES: .o .c .s .bs
87 #----- Object files ---------------------------------------------------------
89 # --- Object files for the code section ---
93 o.aofGen o.basTalk o.get o.insert o.lit o.vars \
94 o.fastMove o.flex o.string \
103 #----- Compiling things -----------------------------------------------------
108 copy bc.bas bas ~c~v~nf~r
109 print bascode { >> bas }
114 o.messages: rsc.messages
115 msgaof rsc.messages o.messages sh.messages
117 bc.bas: b.bas scripts.crunchit
118 @echo *** Crunching Basic library ***
119 obey scripts.crunchit
122 install: bas scripts.exports
123 $(INSTALL) bas scripts.exports <SSR$LibDir>.BAS
126 -$(RM) o.* bc.* work.* bas bascode
128 #----- Dynamic dependencies -------------------------------------------------
130 # Dynamic dependencies:
132 o.insert: libs:header
134 o.insert: libs:stream
136 o.insert: sh.workspace
137 o.insert: libs:sh.flexws
144 o.fastMove: s.fastMove
145 o.fastMove: libs:s.fastMove
146 o.fastMove: libs:header
147 o.fastMove: libs:swis
150 o.string: libs:header
151 o.string: sh.workspace
152 o.string: libs:sh.flexws
154 o.basTalk: libs:header
156 o.basTalk: libs:stream
157 o.basTalk: sh.basicEnv
158 o.basTalk: sh.messages
160 o.basTalk: sh.workspace
161 o.basTalk: libs:sh.flexws
170 o.bas: libs:sh.fastMove
180 o.bas: libs:sh.flexws
182 o.aofGen: libs:header
184 o.aofGen: libs:stream
188 o.aofGen: libs:sh.flex
191 o.aofGen: sh.messages
193 o.aofGen: sh.workspace
194 o.aofGen: libs:sh.flexws
206 o.get: libs:sh.flexws
214 o.lit: libs:sh.fastMove
219 o.lit: libs:sh.flexws
223 o.flex: libs:sh.flexws
230 o.flex: libs:sh.flexws
237 o.flex: libs:sh.flexws
244 o.flex: libs:sh.flexws