Initial revision
[ssr] / StraySrc / SDLS / DLLManager / Makefile,fe1
1 #
2 # Makefile
3 #
4 # © 1998 Straylight/Edgeware
5 #
6
7 #----- Licensing note -------------------------------------------------------
8 #
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)
12 # any later version.
13 #
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.
18 #
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.
22
23 #----- Compilation flags ----------------------------------------------------
24
25 # --- Uncomment to use the C4 tools ---
26
27 # OLD = o-
28
29 # --- C compilation ---
30
31 CC = $(OLD)cc -c -o $@
32 CFLAGS = -depend !Depend -throwback -ffah -Ilibs: -IC:
33 COMPILE = $(CC) $(CFLAGS)
34
35 # --- Assembling ---
36
37 AS = $(OLD)objasm -quit -to $@
38 ASFLAGS = -stamp -depend !Depend -throwback
39 ASSEMBLE = $(AS) $(ASFLAGS) -from
40
41 BAS = basasm
42
43 # --- Linking ---
44
45 LD = $(OLD)link -o $@
46 LD_APP = $(LD) -aif
47 LD_UTIL = $(LD) -bin -base 0
48 LD_MOD = $(LD) -bin -base 0
49 LD_BIN = $(LD) -bin -base 0
50 LD_DLL = $(LD) -rmf
51 LD_AOF = $(LD) -aof
52
53 # --- Making libraries ---
54
55 AR = $(OLD)libfile -o
56
57 CDLL = cdll
58
59 # --- Setting file types ---
60
61 SET_APP = SetType $@ FF8
62 SET_MOD = SetType $@ FFA
63 SET_UTIL = SetType $@ FFC
64 SET_DLL = SetType $@ FFD
65
66 # --- Other maintenance things ---
67
68 RM = ssrclean
69 INSTALL = inst
70 SETDATE = setdate
71 SQUEEZE = squeeze $@
72 DATE = %zdy %mo %ce%yr
73 MODDATE = %dy %m3 %ce%yr
74 CRIGHT = © %ce%yr Straylight
75 FIXLINK = fixlink $@
76
77 #----- Default rules --------------------------------------------------------
78
79 .SUFFIXES: .o .c .s .bs
80 .c.o:
81 $(COMPILE) $<
82 .s.o:
83 $(ASSEMBLE) $<
84 .bs.o:
85 $(BAS) $< $@
86
87 #----- Object files ---------------------------------------------------------
88
89 OBJS = \
90 o.dheader \
91 o.app o.dll o.misc o.suballoc \
92 o.messages
93
94 VERSION = 1.14
95
96 #----- Compiling things -----------------------------------------------------
97
98 all: DLLManager dllmdump
99
100 DLLManager: $(OBJS)
101 $(SETDATE) \
102 o.version \
103 hdr_help="DLLManager\t$(VERSION) ($(MODDATE)) $(CRIGHT)"
104 $(LD_MOD) $(OBJS) o.version
105 $(SET_MOD)
106
107 o.messages: rsc.messages
108 msgaof rsc.messages o.messages sh.messages
109
110 dllmdump: o.dllmdump
111 $(LD_UTIL) o.dllmdump
112 $(SET_UTIL)
113
114 install: DLLManager
115 $(INSTALL) DLLManager <SSR$DLLDir>
116 $(INSTALL) dllmdump <SSR$BinDir>
117
118 clean:
119 -$(RM) o.* DLLManager
120
121 #----- Dynamic dependencies -------------------------------------------------
122
123 # Dynamic dependencies:
124 o.dheader: s.dheader
125 o.dheader: libs:header
126 o.dheader: libs:swis
127 o.dheader: sh.wSpace
128 o.dheader: sh.misc
129 o.dheader: sh.dll
130 o.dheader: sh.app
131 o.dheader: sh.suballoc
132 o.dheader: sh.messages
133 o.app: s.app
134 o.app: libs:header
135 o.app: libs:swis
136 o.app: libs:stream
137 o.app: sh.wSpace
138 o.app: sh.appblock
139 o.app: sh.linkblock
140 o.app: sh.dllblock
141 o.app: sh.misc
142 o.app: sh.suballoc
143 o.app: sh.dll
144 o.app: sh.messages
145 o.dll: s.dll
146 o.dll: libs:header
147 o.dll: libs:swis
148 o.dll: libs:stream
149 o.dll: sh.wSpace
150 o.dll: sh.dllblock
151 o.dll: sh.linkblock
152 o.dll: sh.misc
153 o.dll: sh.app
154 o.dll: sh.messages
155 o.misc: s.misc
156 o.misc: libs:header
157 o.misc: libs:swis
158 o.misc: sh.wSpace
159 o.misc: sh.messages
160 o.suballoc: s.suballoc
161 o.suballoc: libs:swis
162 o.suballoc: libs:header
163 o.suballoc: sh.wSpace
164 o.suballoc: sh.linkblock
165 o.dllmdump: s.dllmdump
166 o.dllmdump: libs:header
167 o.dllmdump: libs:swis
168 o.dllmdump: sh.dllblock
169 o.dllmdump: sh.appblock
170 o.dllmdump: sh.linkblock
171 o.dllmdump: sh.wspace