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)\r_crosshairs.obj\
133 $(OBJS)\r_modules.obj\
134 $(OBJS)\gl_textures.obj\
135 $(OBJS)\gl_models.obj\
136 $(OBJS)\buildnumber.obj\
137 $(OBJS)\cpu_noasm.obj\
139 $(DIRECTXSDK)\lib\borland\dxguid.lib\
140 $(DPROOT)\opengl32.lib\
141 $(OBJS)\net_wipx.obj\
142 $(OBJS)\net_wins.obj\
148 $(OBJS)\vid_shared.obj\
150 $(OBJS)\transform.obj\
162 $(OBJS)\model_sprite.obj\
164 $(OBJS)\pr_edict.obj\
168 $(OBJS)\net_main.obj\
169 $(OBJS)\net_loop.obj\
170 $(OBJS)\net_dgrm.obj\
173 $(OBJS)\model_brush.obj\
174 $(OBJS)\model_alias.obj\
178 $(OBJS)\model_shared.obj\
179 $(OBJS)\gl_screen.obj\
181 $(OBJS)\host_cmd.obj\
183 $(OBJS)\hcompress.obj\
185 $(OBJS)\fractalnoise.obj\
186 $(OBJS)\gl_rmisc.obj\
187 $(OBJS)\gl_rmain.obj\
188 $(OBJS)\gl_refrag.obj\
191 $(OBJS)\gl_rsurf.obj\
200 $(OBJS)\cl_input.obj\
204 $(EXE)\darkplaces.exe : $(DEPEND)
207 $(CROOT)\LIB\c0w32.obj+
208 $(OBJS)\r_crosshairs.obj+
209 $(OBJS)\r_modules.obj+
210 $(OBJS)\gl_textures.obj+
211 $(OBJS)\gl_models.obj+
212 $(OBJS)\buildnumber.obj+
213 $(OBJS)\cpu_noasm.obj+
215 $(OBJS)\net_wipx.obj+
216 $(OBJS)\net_wins.obj+
222 $(OBJS)\vid_shared.obj+
224 $(OBJS)\transform.obj+
236 $(OBJS)\model_sprite.obj+
238 $(OBJS)\pr_edict.obj+
242 $(OBJS)\net_main.obj+
243 $(OBJS)\net_loop.obj+
244 $(OBJS)\net_dgrm.obj+
247 $(OBJS)\model_brush.obj+
248 $(OBJS)\model_alias.obj+
252 $(OBJS)\model_shared.obj+
253 $(OBJS)\gl_screen.obj+
255 $(OBJS)\host_cmd.obj+
257 $(OBJS)\hcompress.obj+
259 $(OBJS)\fractalnoise.obj+
260 $(OBJS)\gl_rmisc.obj+
261 $(OBJS)\gl_rmain.obj+
262 $(OBJS)\gl_refrag.obj+
265 $(OBJS)\gl_rsurf.obj+
274 $(OBJS)\cl_input.obj+
278 $(DIRECTXSDK)\lib\borland\dxguid.lib+
279 $(DPROOT)\opengl32.lib+
280 ($CROOT)\LIB\import32.lib+
281 ($CROOT)\LIB\cw32.lib
284 $(OBJS)\r_crosshairs.obj : $(DPROOT)\r_crosshairs.c
286 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_crosshairs.c
289 $(OBJS)\r_modules.obj : $(DPROOT)\r_modules.c
291 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_modules.c
294 $(OBJS)\gl_textures.obj : $(DPROOT)\gl_textures.c
296 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_textures.c
299 $(OBJS)\gl_models.obj : $(DPROOT)\gl_models.c
301 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_models.c
304 $(OBJS)\buildnumber.obj : $(DPROOT)\buildnumber.c
306 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\buildnumber.c
309 $(OBJS)\cpu_noasm.obj : $(DPROOT)\cpu_noasm.c
311 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cpu_noasm.c
314 $(OBJS)\cl_main.obj : $(DPROOT)\cl_main.c
316 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_main.c
319 $(OBJS)\net_wipx.obj : $(DPROOT)\net_wipx.c
321 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_wipx.c
324 $(OBJS)\net_wins.obj : $(DPROOT)\net_wins.c
326 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_wins.c
329 $(OBJS)\cd_win.obj : $(DPROOT)\cd_win.c
331 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cd_win.c
334 $(OBJS)\r_part.obj : $(DPROOT)\r_part.c
336 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_part.c
339 $(OBJS)\world.obj : $(DPROOT)\world.c
341 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\world.c
344 $(OBJS)\view.obj : $(DPROOT)\view.c
346 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\view.c
349 $(OBJS)\vid_wgl.obj : $(DPROOT)\vid_wgl.c
351 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\vid_wgl.c
354 $(OBJS)\vid_shared.obj : $(DPROOT)\vid_shared.c
356 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\vid_shared.c
359 $(OBJS)\wad.obj : $(DPROOT)\wad.c
361 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\wad.c
364 $(OBJS)\transform.obj : $(DPROOT)\transform.c
366 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\transform.c
369 $(OBJS)\sys_win.obj : $(DPROOT)\sys_win.c
371 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sys_win.c
374 $(OBJS)\sv_user.obj : $(DPROOT)\sv_user.c
376 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_user.c
379 $(OBJS)\sv_phys.obj : $(DPROOT)\sv_phys.c
381 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_phys.c
384 $(OBJS)\sv_move.obj : $(DPROOT)\sv_move.c
386 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_move.c
389 $(OBJS)\sv_main.obj : $(DPROOT)\sv_main.c
391 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sv_main.c
394 $(OBJS)\snd_win.obj : $(DPROOT)\snd_win.c
396 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\snd_win.c
399 $(OBJS)\snd_mix.obj : $(DPROOT)\snd_mix.c
401 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\snd_mix.c
404 $(OBJS)\snd_mem.obj : $(DPROOT)\snd_mem.c
406 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\snd_mem.c
409 $(OBJS)\snd_dma.obj : $(DPROOT)\snd_dma.c
411 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\snd_dma.c
414 $(OBJS)\sbar.obj : $(DPROOT)\sbar.c
416 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\sbar.c
419 $(OBJS)\zone.obj : $(DPROOT)\zone.c
421 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\zone.c
424 $(OBJS)\model_sprite.obj : $(DPROOT)\model_sprite.c
426 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\model_sprite.c
429 $(OBJS)\pr_exec.obj : $(DPROOT)\pr_exec.c
431 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\pr_exec.c
434 $(OBJS)\pr_edict.obj : $(DPROOT)\pr_edict.c
436 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\pr_edict.c
439 $(OBJS)\pr_cmds.obj : $(DPROOT)\pr_cmds.c
441 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\pr_cmds.c
444 $(OBJS)\net_win.obj : $(DPROOT)\net_win.c
446 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_win.c
449 $(OBJS)\net_vcr.obj : $(DPROOT)\net_vcr.c
451 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_vcr.c
454 $(OBJS)\net_main.obj : $(DPROOT)\net_main.c
456 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_main.c
459 $(OBJS)\net_loop.obj : $(DPROOT)\net_loop.c
461 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_loop.c
464 $(OBJS)\net_dgrm.obj : $(DPROOT)\net_dgrm.c
466 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\net_dgrm.c
469 $(OBJS)\r_light.obj : $(DPROOT)\r_light.c
471 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\r_light.c
474 $(OBJS)\in_win.obj : $(DPROOT)\in_win.c
476 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\in_win.c
479 $(OBJS)\model_brush.obj : $(DPROOT)\model_brush.c
481 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\model_brush.c
484 $(OBJS)\model_alias.obj : $(DPROOT)\model_alias.c
486 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\model_alias.c
489 $(OBJS)\menu.obj : $(DPROOT)\menu.c
491 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\menu.c
494 $(OBJS)\mathlib.obj : $(DPROOT)\mathlib.c
496 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\mathlib.c
499 $(OBJS)\keys.obj : $(DPROOT)\keys.c
501 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\keys.c
504 $(OBJS)\model_shared.obj : $(DPROOT)\model_shared.c
506 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\model_shared.c
509 $(OBJS)\gl_screen.obj : $(DPROOT)\gl_screen.c
511 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_screen.c
514 $(OBJS)\image.obj : $(DPROOT)\image.c
516 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\image.c
519 $(OBJS)\host_cmd.obj : $(DPROOT)\host_cmd.c
521 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\host_cmd.c
524 $(OBJS)\host.obj : $(DPROOT)\host.c
526 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\host.c
529 $(OBJS)\hcompress.obj : $(DPROOT)\hcompress.c
531 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\hcompress.c
534 $(OBJS)\gl_warp.obj : $(DPROOT)\gl_warp.c
536 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_warp.c
539 $(OBJS)\fractalnoise.obj : $(DPROOT)\fractalnoise.c
541 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\fractalnoise.c
544 $(OBJS)\gl_rmisc.obj : $(DPROOT)\gl_rmisc.c
546 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_rmisc.c
549 $(OBJS)\gl_rmain.obj : $(DPROOT)\gl_rmain.c
551 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_rmain.c
554 $(OBJS)\gl_refrag.obj : $(DPROOT)\gl_refrag.c
556 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_refrag.c
559 $(OBJS)\gl_poly.obj : $(DPROOT)\gl_poly.c
561 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_poly.c
564 $(OBJS)\gl_draw.obj : $(DPROOT)\gl_draw.c
566 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_draw.c
569 $(OBJS)\gl_rsurf.obj : $(DPROOT)\gl_rsurf.c
571 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\gl_rsurf.c
574 $(OBJS)\cl_tent.obj : $(DPROOT)\cl_tent.c
576 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_tent.c
579 $(OBJS)\crc.obj : crc.c
581 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\crc.c
584 $(OBJS)\console.obj : $(DPROOT)\console.c
586 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\console.c
589 $(OBJS)\conproc.obj : $(DPROOT)\conproc.c
591 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\conproc.c
594 $(OBJS)\common.obj : $(DPROOT)\common.c
596 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\common.c
599 $(OBJS)\cmd.obj : $(DPROOT)\cmd.c
601 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cmd.c
604 $(OBJS)\cvar.obj : $(DPROOT)\cvar.c
606 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cvar.c
609 $(OBJS)\chase.obj : $(DPROOT)\chase.c
611 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\chase.c
614 $(OBJS)\cl_input.obj : $(DPROOT)\cl_input.c
616 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_input.c
619 $(OBJS)\cl_demo.obj : $(DPROOT)\cl_demo.c
621 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_demo.c
624 $(OBJS)\cl_parse.obj : $(DPROOT)\cl_parse.c
626 $(COMPOPTS) -I$(INCLUDES) -D$(DEFINES) -o$@ $(DPROOT)\cl_parse.c