-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAKEFILE
236 lines (191 loc) · 13 KB
/
MAKEFILE
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# ������������������������������������������������������������������������Ŀ
# � MAKEFILE Copyright [tDR], 1999 �
# ������������������������������������������������������������������������Ĵ
# � �
# ��������������������������������������������������������������������������
HDIR = $(TDLPATH)\h;$(TDLPATH)\interp
INCDIR = $(TDLPATH)\include
DEFDIR = $(TDLPATH)\defaults
.path.c = $(TDLPATH)\STDLIB;$(TDLPATH)\3D\SBUFFER;$(TDLPATH)\NEWSGL;$(TDLPATH)\SPUF!\LOADER
.path.cpp = $(TDLPATH)\STDLIB;$(TDLPATH)\WUF!\LOADER\S3M;$(TDLPATH)\WUF!\PLAYER;$(TDLPATH)\3D;$(TDLPATH)\INTERP;$(TDLPATH)\SPUF!\GFX;$(TDLPATH)\RUNNER;$(TDLPATH)\SPUF!\SLI
.path.asm = $(TDLPATH)\STDLIB;$(TDLPATH)\NEWSGL;$(TDLPATH)\SPUF!\BLITTER;$(TDLPATH)\SPUF!\LOADER;$(TDLPATH)\SPUF!;$(TDLPATH)\SPUF!\SLI;$(TDLPATH)\SPUF!\GFX;$(TDLPATH)\WUF!;$(TDLPATH)\WUF!\DEVICES;$(TDLPATH)\3D\RENDER;$(TDLPATH)\3D\LOADER;$(TDLPATH)\3D\SBUFFER;$(TDLPATH)\PLAYER;$(TDLPATH)\3D;$(TDLPATH)\WUF!\MIXER;$(TDLPATH)\WUF!\LOADER;$(TDLPATH)\WUF!\LOADER\WAV
.path.obj = $(TDLPATH)\OBJS
.path.mac = $(INCDIR)
.path.inc = $(INCDIR)
.path.def = $(HDIR);$(INCDIR)
.path.h = $(HDIR)
.path.hpp = $(HDIR)
.path.lib = $(TDLPATH)\lib
WLIBOPTS=/q
#DEBUG = 1
!if $d(DEBUG)
COPTS = -db -d4 -w3 -fpi87 -fp5 -zdp -zu -bt=dos -i$(HDIR) -oneatx -s -zq -3r
CCOPTS = -4r -hw -db -d2 -fpi87 -fp3 -i$(HDIR) -mf -w5 -ze -zp4 -zdp -zl -xst
ASMOPTS = /m6 /mx /zi /w-aln /t /i. /i$(INCDIR) /i$(TDLPATH)\NEWSGL /d__DEBUG__=1
!else
COPTS = -w3 -fpi87 -fp5 -zdp -zu -bt=dos -i$(HDIR) -oneatx -s -zq -3r -wcd=302
CCOPTS = -4r -fpi87 -fp3 -i$(HDIR) -mf -w5 -ze -zdp -zl -xst -s
ASMOPTS = /m6 /mx /w-aln /t /i. /i$(INCDIR) /i$(DEFDIR) /i$(TDLPATH)\NEWSGL /d__DEBUG__=0
!endif
.asm.obj:
@echo Compiling ASM [$?]
@tasm @&&!
$?
$@
$(ASMOPTS)
!
.c.obj:
@echo Compiling C [$?]
@wcc386 @&&!
$(COPTS)
$?
-fo=$@
!
.cpp.obj:
@echo Compiling C++ [$?]
@wpp386 @&&!
$(CCOPTS)
$?
-fo=$@
!
# ����������������������������������������������������
all: tdl.lib $(TDLPATH)\lib\c0tt.obj $(TDLPATH)\lib\wpp.obj c0tt.obj wpp.obj
# ����������������������������������������������������
$(TDLPATH)\lib\c0tt.obj: c0tt.obj
@echo Copying ... [$?]
@copy $(TDLPATH)\objs\c0tt.obj $(TDLPATH)\lib\c0tt.obj >nul
$(TDLPATH)\lib\wpp.obj: wpp.obj
@echo Copying ... [$?]
@copy $(TDLPATH)\objs\wpp.obj $(TDLPATH)\lib\wpp.obj >nul
c0tt.obj: c0tt.asm utils.inc dpmi.asm alloc.inc dma.inc dma.asm memmgr.asm
new.obj: new.cpp
wpp.obj: wpp.asm
stdc.obj: stdc.asm
stdio.obj: stdio.c stdio.h string.h
debug.obj: debug.asm
count.obj: count.asm
dpmi.obj: dpmi.asm dpmi.inc
irq.obj: irq.asm irq.inc alloc.inc memmgr.asm
litt32.obj: litt32.asm littable.inc
litt16.obj: litt16.asm littable.inc
utils.obj: utils.asm utils.inc
assert.obj: assert.asm assert.inc utils.obj utils.inc
vga.obj: vga.asm vga.inc
filesys.obj: filesys.asm filesys.inc alloc.inc memmgr.asm
memmgr.obj: memmgr.asm alloc.inc
except.obj: except.cpp except.hpp string.h utils.asm
string.obj: string.cpp string.hpp except.hpp except.cpp
#gfiles.obj: gfiles.c ttl.h
pcxread.obj: pcxread.asm pcxread.inc memmgr.asm alloc.inc filesys.inc filesys.asm
coolpal.obj: coolpal.asm coolpal.inc
random.obj: random.asm random.inc
soften.obj: soften.asm soften.inc
fonts.obj: fonts.asm fonts.inc pcxread.asm pcxread.inc filesys.asm filesys.inc memmgr.asm alloc.inc
timer.obj: timer.asm timer.inc
keyb.obj: keyb.asm keyb.inc
framerat.obj: framerat.asm framerat.inc utils.inc utils.asm
sync.obj: sync.asm sync.inc sync.def timer.asm timer.inc sglmain.asm newsgl.inc utils.asm utils.inc
list.obj: list.asm list.inc alloc.inc memmgr.asm stderror.inc
dma.obj: dma.asm dma.inc alloc.inc memmgr.asm stderror.inc list.asm list.inc
memcpy.obj: memcpy.asm memcpy.inc
#------------ newSGL ---------------
sglmain.obj: sglmain.asm drvga.asm newsgl.inc drvbe.asm dpmi.inc dpmi.asm
initg.obj: initg.c tdl.h
#------------ SPUF! ----------------
sli.obj: sli.asm sli.inc alloc.inc memmgr.asm
palette.obj: palette.cpp palette.hpp sli.asm sli.h vector.hpp
alpha.obj: alpha.asm memmgr.asm alloc.inc stderror.inc
blt8-8.obj: blt8-8.asm blt8-8.inc blitter.inc blitter.asm sli.inc sli.asm
blt8-16.obj: blt8-16.asm blt8-16.inc blitter.inc blitter.asm sli.inc sli.asm
blt8-24.obj: blt8-24.asm blt8-24.inc blitter.inc blitter.asm sli.inc sli.asm
blt8-32.obj: blt8-32.asm blt8-32.inc blitter.inc blitter.asm sli.inc sli.asm
blt24-32.obj: blt24-32.asm blt24-32.inc blitter.inc blitter.asm sli.inc sli.asm
blt32-16.obj: blt32-16.asm blt32-16.inc blitter.inc blitter.asm sli.inc sli.asm
blt32-24.obj: blt32-24.asm blt32-24.inc blitter.inc blitter.asm sli.inc sli.asm
blt32-32.obj: blt32-32.asm blt32-32.inc blitter.inc blitter.asm sli.inc sli.asm
blitter.obj: blitter.asm blitter.inc blt8-16.asm blt8-16.inc blt8-24.asm blt8-24.inc\
blt8-32.asm blt8-32.inc blt24-32.asm blt24-32.inc blt32-16.asm blt32-16.inc\
blt32-24.asm blt32-24.inc blt32-32.asm blt32-32.inc clip.asm clip.inc
clip.obj: clip.asm clip.inc blitter.inc blitter.asm sli.inc sli.asm
loader.obj: loader.asm loader.inc pcx.inc pcx.asm fli.inc fli.asm blitter.inc blitter.asm sli.inc sli.asm
pcx.obj: pcx.asm pcx.inc alloc.inc memmgr.asm filesys.inc filesys.asm
fli.obj: fli.asm fli.inc alloc.inc memmgr.asm filesys.inc filesys.asm
line.obj: line.asm gfx.inc sli.inc
draw8x8g.obj: draw8x8g.asm sli.inc
draw4x4g.obj: draw4x4g.asm sli.inc
grid.obj: grid.asm grid.inc alloc.inc stderror.inc
boxfiltr.obj: boxfiltr.asm boxfiltr.inc sli.inc
mglc.obj: mglc.c tdl.h video.h
polyint.obj: polyint.asm polyint.inc
image.obj: image.cpp image.hpp sli.h sli.inc sli.asm
#------------- 3D -----------------
3ds.obj: 3ds.asm 3ds.inc memmgr.asm alloc.inc filesys.inc filesys.asm stderror.inc 3d.inc
uniload.obj: uniload.asm uniload.inc 3ds.inc 3ds.asm stderror.inc
render.obj: render.asm render.inc gfx.inc line.asm 3d.inc
3dmath.obj: 3dmath.asm
gentri.obj: gentri.c tdl.h tinymath.h sbuffer.asm
sbuffer.obj: sbuffer.asm sbuffer.inc alloc.inc memmgr.asm sli.inc sli.asm stderror.inc utils.inc
vector3.obj: vector3.cpp vector3.hpp matrix3.cpp matrix3.hpp tinymath.h
matrix3.obj: matrix3.cpp matrix3.hpp vector3.cpp vector3.hpp memcpy.asm memcpy.inc
rotmat3.obj: rotmat3.cpp rotmat3.hpp matrix3.cpp matrix3.hpp vector3.cpp vector3.hpp tinymath.h
vector4.obj: vector4.cpp vector4.hpp vector3.cpp vector3.hpp tinymath.h matrix4.cpp matrix4.hpp
matrix4.obj: matrix4.cpp matrix4.hpp vector4.cpp vector4.hpp vector3.cpp vector3.hpp tinymath.h memcpy.asm memcpy.inc
quatnion.obj: quatnion.cpp quatnion.hpp rotmat3.cpp rotmat3.hpp vector4.cpp vector4.hpp vector3.cpp vector3.hpp tinymath.h
htmat4.obj: htmat4.cpp htmat4.hpp rotmat3.cpp rotmat3.hpp vector3.cpp vector3.hpp
pose3.obj: pose3.cpp pose3.hpp vector3.cpp vector3.hpp quatnion.cpp quatnion.hpp matrix4.cpp matrix4.hpp
pose3int.obj: pose3int.cpp pose3int.hpp cubic.hpp vector3.hpp vector3.cpp quatnion.hpp quatnion.cpp
#------------ wUF! ----------------
wuf!.obj: wuf!.asm wuf!.inc stderror.inc sounddev.asm sounddev.inc utils.inc utils.asm
sounddev.obj: sounddev.inc sb1xx.inc sb1xx.asm sb200.inc sb200.asm sb201.inc sb201.asm sb3xx.inc sb3xx.asm sb4xx.inc sb4xx.asm
sbhard.obj: sbhard.asm sbhard.inc dma.inc dma.asm utils.inc utils.asm
sb1xx.obj: sb1xx.inc sb1xx.asm dma.inc dma.asm sounddev.asm sounddev.inc stderror.inc snddev.def utils.asm utils.inc
sb200.obj: sb200.inc sb200.asm dma.inc dma.asm sounddev.asm sounddev.inc stderror.inc snddev.def utils.asm utils.inc
sb201.obj: sb201.inc sb201.asm dma.inc dma.asm sounddev.asm sounddev.inc stderror.inc snddev.def utils.asm utils.inc
sb3xx.obj: sb3xx.inc sb3xx.asm dma.inc dma.asm sounddev.asm sounddev.inc stderror.inc snddev.def utils.asm utils.inc
sb4xx.obj: sb4xx.inc sb4xx.asm dma.inc dma.asm sounddev.asm sounddev.inc stderror.inc snddev.def utils.asm utils.inc irq.inc
mixer.obj: mixer.asm mixer.inc wuf!.inc
waveload.obj: waveload.asm waveload.inc wav.asm wav.inc waveload.h
wav.obj: wav.asm wav.inc memmgr.asm alloc.inc filesys.asm filesys.inc waveload.asm waveload.inc
s3m_.obj: s3m_.cpp s3m.h
s3m.obj: s3m.cpp s3m.hpp s3m_.cpp s3m.h except.cpp except.hpp
s3mplay.obj: s3mplay.cpp s3mplay.hpp wuf!.h playable.hpp
player.obj: player.cpp player.hpp s3mplay.hpp
#------------ Application runner ----------------
app.obj: app.cpp app.hpp
#----------- Player ---------------
#player.obj: player.asm player.inc sb.inc
#modload.obj: modload.asm
#load_mod.obj: load_mod.asm
#load_s3m.obj: load_s3m.asm
#load_xm.obj: load_xm.asm
#sb.obj: sb.asm sb.inc
tdl.lib: stdc.obj new.obj except.obj string.obj stdio.obj count.obj dpmi.obj irq.obj\
litt16.obj framerat.obj sglmain.obj\
utils.obj assert.obj vga.obj draw8x8g.obj\
draw4x4g.obj grid.obj boxfiltr.obj\
# gfiles.obj\
filesys.obj memmgr.obj debug.obj pcxread.obj\
coolpal.obj random.obj soften.obj\
fonts.obj timer.obj keyb.obj\
memcpy.obj sync.obj blt8-8.obj\
blitter.obj blt8-16.obj blt8-24.obj\
blt8-32.obj blt24-32.obj blt32-16.obj\
blt32-24.obj blt32-32.obj clip.obj\
loader.obj sli.obj palette.obj pcx.obj fli.obj\
sbuffer.obj gentri.obj line.obj\
wuf!.obj sounddev.obj sb1xx.obj sb200.obj sb201.obj sb3xx.obj sb4xx.obj mixer.obj sbhard.obj waveload.obj wav.obj s3m_.obj s3m.obj s3mplay.obj player.obj\
dma.obj list.obj alpha.obj\
3ds.obj\
uniload.obj stdc.obj render.obj\
3dmath.obj\
vector3.obj matrix3.obj rotmat3.obj vector4.obj matrix4.obj quatnion.obj htmat4.obj pose3.obj pose3int.obj\
litt32.obj\
polyint.obj\
image.obj\
# player.obj modload.obj load_mod.obj\
# load_s3m.obj load_xm.obj sb.obj\
initg.obj mglc.obj\
app.obj
@&echo Adding to lib [$?]
@&wlib $(WLIBOPTS) $< +- "$?"
# ����������������������������������������������������