2 # Borland C++ makefile for Darkplaces
4 # Copyright (C) 1999,2000 Jukka Sorjonen.
5 # Please see the file "AUTHORS" for a list of contributors
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 # See the GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to:
21 # Free Software Foundation, Inc.
22 # 59 Temple Place - Suite 330
23 # Boston, MA 02111-1307, USA
46 # Where quakeforge source is located
47 DPROOT = D:\PROJECT\QUAKE1\DARKPLACES
49 # Complier root directory
50 CROOT = D:\BORLAND\BCC55
54 # Where you want to place those .obj files
55 #OBJS = $(DPROOT)\TARGETS\GLQW_CLIENT
60 #EXE = $(DPROOT)\TARGETS
63 # Path to your Direct-X libraries and includes
64 DIRECTXSDK=D:\project\dx7sdk
66 # end of system dependant stuffs
74 # no optimizations - for debugging
76 # for basic optimizations for 386
77 #OPT = -3 -Oc -Oi -Ov -a4
78 # -a4 seems to break DP...
81 #OPT = -5 -Oc -Oi -Ov -OS
82 # for Pentium Pro and higher
83 #OPT = -6 -Oc -Oi -Ov -OS
85 #OPT = -6 -Oc -Oi -Ov -Og -Oc -Ol -Ob -Oe -Om -Op
87 # disable warnings, for cleaner compile
92 COMPOPTS = $(DEBUGOPTS) $(OPT) $(WARNS) -R -WM -H-
95 LINKOPTS = -w-dup -w-dpl -Tpe -aa -V4.0 -c -Gn -Gz -x -L$(LIBS)
97 #LINKOPTS = -w -v -w-dup -w-dpl -Tpe -aa -V4.0 -c -Gn -Gz -m -M -s -L$(LIBS)
99 # you shouldn't need to change anything below this line
101 SYSLIBS = $(CROOT)\LIB
102 MISCLIBS = $(DIRECTXSDK)\lib\borland
103 LIBS=$(SYSLIBS);$(MISCLIBS)
105 SYSINCLUDE = $(CROOT)\INCLUDE
106 QFINCLUDES = $(DPROOT);$(DIRECTXSDK)\include;
107 MISCINCLUDES = $(DIRECTXSDK)\include
109 INCLUDES = $(QFINCLUDES);$(SYSINCLUDE);$(MISCINCLUDES)
111 DEFINES=_WINDOWS=1;_WIN32=1;WINDOWS=1;WIN32=1
115 ASMOUT = $(DPROOT)\source
117 #ASMOPTS=/nologo /c /Cp /Zi /H64
118 ASMOPTS=/nologo /c /Cp
124 #ASSEMBLER = $(TASM32)
125 #ASMIN = $(DPROOT)\common
132 $(OBJS)\sv_light.obj\
133 $(OBJS)\r_explosion.obj\
134 $(OBJS)\r_sprites.obj\
135 $(OBJS)\r_sprites.obj\
137 $(OBJS)\r_crosshairs.obj\
138 $(OBJS)\r_modules.obj\
139 $(OBJS)\gl_textures.obj\
140 $(OBJS)\gl_models.obj\
141 $(OBJS)\buildnumber.obj\
142 $(OBJS)\cpu_noasm.obj\
144 $(DIRECTXSDK)\lib\borland\dxguid.lib\
145 $(DPROOT)\opengl32.lib\
146 $(OBJS)\net_wipx.obj\
147 $(OBJS)\net_wins.obj\
153 $(OBJS)\vid_shared.obj\
155 $(OBJS)\transform.obj\
167 $(OBJS)\model_sprite.obj\
169 $(OBJS)\pr_edict.obj\
173 $(OBJS)\net_main.obj\
174 $(OBJS)\net_loop.obj\
175 $(OBJS)\net_dgrm.obj\
178 $(OBJS)\model_brush.obj\
179 $(OBJS)\model_alias.obj\
183 $(OBJS)\model_shared.obj\
184 $(OBJS)\gl_screen.obj\
186 $(OBJS)\host_cmd.obj\
188 $(OBJS)\hcompress.obj\
190 $(OBJS)\fractalnoise.obj\
191 $(OBJS)\gl_rmisc.obj\
192 $(OBJS)\gl_rmain.obj\
193 $(OBJS)\gl_refrag.obj\
196 $(OBJS)\gl_rsurf.obj\
205 $(OBJS)\cl_input.obj\
209 $(EXE)\darkplaces.exe : $(DEPEND)
212 $(CROOT)\LIB\c0w32.obj+
213 $(OBJS)\sv_light.obj+
214 $(OBJS)\r_explosion.obj+
215 $(OBJS)\r_sprites.obj+
217 $(OBJS)\r_crosshairs.obj+
218 $(OBJS)\r_modules.obj+
219 $(OBJS)\gl_textures.obj+
220 $(OBJS)\gl_models.obj+
221 $(OBJS)\buildnumber.obj+
222 $(OBJS)\cpu_noasm.obj+
224 $(OBJS)\net_wipx.obj+
225 $(OBJS)\net_wins.obj+
231 $(OBJS)\vid_shared.obj+
233 $(OBJS)\transform.obj+
245 $(OBJS)\model_sprite.obj+
247 $(OBJS)\pr_edict.obj+
251 $(OBJS)\net_main.obj+
252 $(OBJS)\net_loop.obj+
253 $(OBJS)\net_dgrm.obj+
256 $(OBJS)\model_brush.obj+
257 $(OBJS)\model_alias.obj+
261 $(OBJS)\model_shared.obj+
262 $(OBJS)\gl_screen.obj+
264 $(OBJS)\host_cmd.obj+
266 $(OBJS)\hcompress.obj+
268 $(OBJS)\fractalnoise.obj+
269 $(OBJS)\gl_rmisc.obj+
270 $(OBJS)\gl_rmain.obj+
271 $(OBJS)\gl_refrag.obj+
274 $(OBJS)\gl_rsurf.obj+
283 $(OBJS)\cl_input.obj+
287 $(DIRECTXSDK)\lib\borland\dxguid.lib+
288 $(DPROOT)\opengl32.lib+
289 ($CROOT)\LIB\import32.lib+
290 ($CROOT)\LIB\cw32.lib
293 $(OBJS)\r_sprites.obj : $(DPROOT)\r_sprites.c
295 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_sprites.c
298 $(OBJS)\r_explosion.obj : $(DPROOT)\r_explosion.c
300 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_explosion.c
302 $(OBJS)\sv_light.obj : $(DPROOT)\sv_light.c
304 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_light.c
307 $(OBJS)\r_crosshairs.obj : $(DPROOT)\r_crosshairs.c
309 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_crosshairs.c
312 $(OBJS)\palette.obj : $(DPROOT)\palette.c
314 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\palette.c
318 $(OBJS)\r_modules.obj : $(DPROOT)\r_modules.c
320 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_modules.c
323 $(OBJS)\gl_textures.obj : $(DPROOT)\gl_textures.c
325 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_textures.c
328 $(OBJS)\gl_models.obj : $(DPROOT)\gl_models.c
330 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_models.c
333 $(OBJS)\buildnumber.obj : $(DPROOT)\buildnumber.c
335 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\buildnumber.c
338 $(OBJS)\cpu_noasm.obj : $(DPROOT)\cpu_noasm.c
340 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cpu_noasm.c
343 $(OBJS)\cl_main.obj : $(DPROOT)\cl_main.c
345 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_main.c
348 $(OBJS)\net_wipx.obj : $(DPROOT)\net_wipx.c
350 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_wipx.c
353 $(OBJS)\net_wins.obj : $(DPROOT)\net_wins.c
355 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_wins.c
358 $(OBJS)\cd_win.obj : $(DPROOT)\cd_win.c
360 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cd_win.c
363 $(OBJS)\r_part.obj : $(DPROOT)\r_part.c
365 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_part.c
368 $(OBJS)\world.obj : $(DPROOT)\world.c
370 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\world.c
373 $(OBJS)\view.obj : $(DPROOT)\view.c
375 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\view.c
378 $(OBJS)\vid_wgl.obj : $(DPROOT)\vid_wgl.c
380 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\vid_wgl.c
383 $(OBJS)\vid_shared.obj : $(DPROOT)\vid_shared.c
385 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\vid_shared.c
388 $(OBJS)\wad.obj : $(DPROOT)\wad.c
390 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\wad.c
393 $(OBJS)\transform.obj : $(DPROOT)\transform.c
395 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\transform.c
398 $(OBJS)\sys_win.obj : $(DPROOT)\sys_win.c
400 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sys_win.c
403 $(OBJS)\sv_user.obj : $(DPROOT)\sv_user.c
405 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_user.c
408 $(OBJS)\sv_phys.obj : $(DPROOT)\sv_phys.c
410 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_phys.c
413 $(OBJS)\sv_move.obj : $(DPROOT)\sv_move.c
415 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_move.c
418 $(OBJS)\sv_main.obj : $(DPROOT)\sv_main.c
420 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_main.c
423 $(OBJS)\snd_win.obj : $(DPROOT)\snd_win.c
425 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\snd_win.c
428 $(OBJS)\snd_mix.obj : $(DPROOT)\snd_mix.c
430 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\snd_mix.c
433 $(OBJS)\snd_mem.obj : $(DPROOT)\snd_mem.c
435 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\snd_mem.c
438 $(OBJS)\snd_dma.obj : $(DPROOT)\snd_dma.c
440 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\snd_dma.c
443 $(OBJS)\sbar.obj : $(DPROOT)\sbar.c
445 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sbar.c
448 $(OBJS)\zone.obj : $(DPROOT)\zone.c
450 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\zone.c
453 $(OBJS)\model_sprite.obj : $(DPROOT)\model_sprite.c
455 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\model_sprite.c
458 $(OBJS)\pr_exec.obj : $(DPROOT)\pr_exec.c
460 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\pr_exec.c
463 $(OBJS)\pr_edict.obj : $(DPROOT)\pr_edict.c
465 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\pr_edict.c
468 $(OBJS)\pr_cmds.obj : $(DPROOT)\pr_cmds.c
470 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\pr_cmds.c
473 $(OBJS)\net_win.obj : $(DPROOT)\net_win.c
475 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_win.c
478 $(OBJS)\net_vcr.obj : $(DPROOT)\net_vcr.c
480 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_vcr.c
483 $(OBJS)\net_main.obj : $(DPROOT)\net_main.c
485 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_main.c
488 $(OBJS)\net_loop.obj : $(DPROOT)\net_loop.c
490 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_loop.c
493 $(OBJS)\net_dgrm.obj : $(DPROOT)\net_dgrm.c
495 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_dgrm.c
498 $(OBJS)\r_light.obj : $(DPROOT)\r_light.c
500 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_light.c
503 $(OBJS)\in_win.obj : $(DPROOT)\in_win.c
505 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\in_win.c
508 $(OBJS)\model_brush.obj : $(DPROOT)\model_brush.c
510 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\model_brush.c
513 $(OBJS)\model_alias.obj : $(DPROOT)\model_alias.c
515 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\model_alias.c
518 $(OBJS)\menu.obj : $(DPROOT)\menu.c
520 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\menu.c
523 $(OBJS)\mathlib.obj : $(DPROOT)\mathlib.c
525 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\mathlib.c
528 $(OBJS)\keys.obj : $(DPROOT)\keys.c
530 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\keys.c
533 $(OBJS)\model_shared.obj : $(DPROOT)\model_shared.c
535 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\model_shared.c
538 $(OBJS)\gl_screen.obj : $(DPROOT)\gl_screen.c
540 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_screen.c
543 $(OBJS)\image.obj : $(DPROOT)\image.c
545 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\image.c
548 $(OBJS)\host_cmd.obj : $(DPROOT)\host_cmd.c
550 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\host_cmd.c
553 $(OBJS)\host.obj : $(DPROOT)\host.c
555 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\host.c
558 $(OBJS)\hcompress.obj : $(DPROOT)\hcompress.c
560 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\hcompress.c
563 $(OBJS)\gl_warp.obj : $(DPROOT)\gl_warp.c
565 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_warp.c
568 $(OBJS)\fractalnoise.obj : $(DPROOT)\fractalnoise.c
570 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\fractalnoise.c
573 $(OBJS)\gl_rmisc.obj : $(DPROOT)\gl_rmisc.c
575 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_rmisc.c
578 $(OBJS)\gl_rmain.obj : $(DPROOT)\gl_rmain.c
580 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_rmain.c
583 $(OBJS)\gl_refrag.obj : $(DPROOT)\gl_refrag.c
585 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_refrag.c
588 $(OBJS)\gl_poly.obj : $(DPROOT)\gl_poly.c
590 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_poly.c
593 $(OBJS)\gl_draw.obj : $(DPROOT)\gl_draw.c
595 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_draw.c
598 $(OBJS)\gl_rsurf.obj : $(DPROOT)\gl_rsurf.c
600 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_rsurf.c
603 $(OBJS)\cl_tent.obj : $(DPROOT)\cl_tent.c
605 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_tent.c
608 $(OBJS)\crc.obj : crc.c
610 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\crc.c
613 $(OBJS)\console.obj : $(DPROOT)\console.c
615 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\console.c
618 $(OBJS)\conproc.obj : $(DPROOT)\conproc.c
620 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\conproc.c
623 $(OBJS)\common.obj : $(DPROOT)\common.c
625 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\common.c
628 $(OBJS)\cmd.obj : $(DPROOT)\cmd.c
630 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cmd.c
633 $(OBJS)\cvar.obj : $(DPROOT)\cvar.c
635 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cvar.c
638 $(OBJS)\chase.obj : $(DPROOT)\chase.c
640 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\chase.c
643 $(OBJS)\cl_input.obj : $(DPROOT)\cl_input.c
645 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_input.c
648 $(OBJS)\cl_demo.obj : $(DPROOT)\cl_demo.c
650 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_demo.c
653 $(OBJS)\cl_parse.obj : $(DPROOT)\cl_parse.c
655 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_parse.c