1 # Invalid call detection
2 CHECKLEVEL1 = @if [ "$(LEVEL)" != 1 ]; then $(MAKE) help; false; fi
3 CHECKLEVEL2 = @if [ "$(LEVEL)" != 2 ]; then $(MAKE) help; false; fi
5 # Choose the compiler you want to use
9 #CPUOPTIMIZATIONS?=-march=athlon
10 # athlon xp optimizations
11 #CPUOPTIMIZATIONS?=-march=athlon-xp
12 # athlon 64 optimizations
13 #CPUOPTIMIZATIONS?=-march=athlon64 -m32
14 # Pentium 3 optimizations
15 #CPUOPTIMIZATIONS?=-march=pentium3
16 # Pentium 4 optimizations
17 #CPUOPTIMIZATIONS?=-march=pentium4
18 # 686 (Pentium Pro/II) optimizations
19 #CPUOPTIMIZATIONS?=-march=i686
20 # No specific CPU (386 compatible)
23 #CPUOPTIMIZATIONS?=-fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fassociative-math -freciprocal-math -fno-signed-zeros -fno-trapping-math
25 CPUOPTIMIZATIONS?=-fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math
26 # NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
28 SDL_CONFIG?=sdl-config
29 SDL2_CONFIG?=sdl2-config
30 SDLCONFIG_UNIXCFLAGS?=`$(SDL_CONFIG) --cflags`
31 SDLCONFIG_UNIXCFLAGS_X11?=
32 SDLCONFIG_UNIXLIBS?=`$(SDL_CONFIG) --libs`
33 SDLCONFIG_UNIXLIBS_X11?=-lX11
34 SDLCONFIG_UNIXSTATICLIBS?=`$(SDL_CONFIG) --static-libs`
35 SDLCONFIG_UNIXSTATICLIBS_X11?=-lX11
36 SDLCONFIG_MACOSXCFLAGS=-I/Library/Frameworks/SDL.framework/Headers -I$(HOME)/Library/Frameworks/SDL.framework/Headers
37 SDLCONFIG_MACOSXLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
38 SDLCONFIG_MACOSXSTATICLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
42 ###### Sound and audio CD #####
44 OBJ_SND_COMMON=snd_main.o snd_mem.o snd_mix.o snd_ogg.o snd_wav.o
47 OBJ_SND_NULL=snd_null.o
50 # Open Sound System (Linux, FreeBSD and Solaris)
51 OBJ_SND_OSS=$(OBJ_SND_COMMON) snd_oss.o
54 # Advanced Linux Sound Architecture (Linux)
55 OBJ_SND_ALSA=$(OBJ_SND_COMMON) snd_alsa.o
58 # Core Audio (Mac OS X)
59 OBJ_SND_COREAUDIO=$(OBJ_SND_COMMON) snd_coreaudio.o
60 LIB_SND_COREAUDIO=-framework CoreAudio
62 # BSD / Sun audio API (NetBSD and OpenBSD)
63 OBJ_SND_BSD=$(OBJ_SND_COMMON) snd_bsd.o
66 # DirectX and Win32 WAVE output (Win32)
67 OBJ_SND_WIN=$(OBJ_SND_COMMON) snd_win.o
70 # Qantourisc's 3D Realtime Acoustic Lib (3D RAS)
71 OBJ_SND_3DRAS=snd_3dras.o
75 OBJ_CD_COMMON=cd_shared.o
79 ###### Common objects and flags #####
127 mod_skeletal_animatevertices_sse.o \
128 mod_skeletal_animatevertices_generic.o \
167 # note that builddate.c is very intentionally not compiled to a .o before
168 # being linked, because it should be recompiled every time an executable is
169 # built to give the executable a proper date string
170 OBJ_SV= builddate.c sys_linux.o vid_null.o thread_null.o $(OBJ_SND_NULL) $(OBJ_COMMON)
171 OBJ_SDL= builddate.c sys_sdl.o vid_sdl.o thread_sdl.o $(OBJ_MENU) $(OBJ_SND_COMMON) snd_sdl.o $(OBJ_SDLCD) $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)
175 CFLAGS_COMMON=$(CFLAGS_MAKEDEP) $(CFLAGS_PRELOAD) $(CFLAGS_FS) $(CFLAGS_WARNINGS) $(CFLAGS_LIBZ) $(CFLAGS_LIBJPEG) $(CFLAGS_D3D) -D_FILE_OFFSET_BITS=64 -D__KERNEL_STRICT_NAMES -I../../../
176 CFLAGS_CLIENT=-DCONFIG_MENU -DCONFIG_CD $(CFLAGS_VIDEO_CAPTURE)
179 CFLAGS_PROFILE=-g -pg -ggdb -fprofile-arcs
181 CFLAGS_RELEASE_PROFILE=-fbranch-probabilities
182 CFLAGS_SDL=$(SDLCONFIG_CFLAGS)
187 OPTIM_DEBUG=$(CPUOPTIMIZATIONS)
188 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops $(CPUOPTIMIZATIONS)
189 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signaling-nans -fcx-limited-range -funroll-loops $(CPUOPTIMIZATIONS)
190 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -funroll-loops $(CPUOPTIMIZATIONS)
191 #OPTIM_RELEASE=-O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
192 OPTIM_RELEASE=-O3 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
193 # NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
195 DO_CC=$(CC) $(CFLAGS) -c $< -o $@
199 LDFLAGS_DEBUG=-g -ggdb $(OPTIM_DEBUG) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=debug
200 LDFLAGS_PROFILE=-g -pg -fprofile-arcs $(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=profile
201 LDFLAGS_RELEASE=$(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=release
204 ##### UNIX specific variables #####
206 OBJ_GLX= builddate.c sys_linux.o vid_glx.o thread_pthread.o keysym2ucs.o $(OBJ_MENU) $(OBJ_SOUND) $(OBJ_CD) $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)
208 LDFLAGS_UNIXCOMMON=-lm $(LIB_ODE) $(LIB_Z) $(LIB_JPEG) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL)
209 LDFLAGS_UNIXCL=-L$(UNIX_X11LIBPATH) -lX11 -lXpm -lXext -lXxf86vm -pthread $(LIB_SOUND)
210 LDFLAGS_UNIXCL_PRELOAD=-lz -ljpeg -lpng -logg -ltheora -lvorbis -lvorbisenc -lvorbisfile -lcurl
211 LDFLAGS_UNIXSV_PRELOAD=-lz -ljpeg -lpng -lcurl
212 LDFLAGS_UNIXSDL_PRELOAD=-lz -ljpeg -lpng -logg -ltheora -lvorbis -lvorbisenc -lvorbisfile -lcurl
213 CFLAGS_UNIX_PRELOAD=-DPREFER_PRELOAD
215 LDFLAGS_UNIXSDL=$(SDLCONFIG_LIBS)
216 EXE_UNIXCL=darkplaces-glx
217 EXE_UNIXSV=darkplaces-dedicated
218 EXE_UNIXSDL=darkplaces-sdl
219 EXE_UNIXCLNEXUIZ=nexuiz-glx
220 EXE_UNIXSVNEXUIZ=nexuiz-dedicated
221 EXE_UNIXSDLNEXUIZ=nexuiz-sdl
225 CMD_UNIXMKDIR=mkdir -p
228 ##### Linux specific variables #####
231 LDFLAGS_LINUXCL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl $(LDFLAGS_UNIXCL)
232 LDFLAGS_LINUXSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl
233 LDFLAGS_LINUXSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl $(LDFLAGS_UNIXSDL)
236 ##### Mac OS X specific variables #####
238 # No CD support available
239 OBJ_MACOSXCD=$(OBJ_NOCD)
242 LDFLAGS_MACOSXCL=$(LDFLAGS_UNIXCOMMON) -ldl -framework IOKit -framework Carbon $(LIB_SOUND)
243 LDFLAGS_MACOSXSV=$(LDFLAGS_UNIXCOMMON) -ldl
244 LDFLAGS_MACOSXSDL=$(LDFLAGS_UNIXCOMMON) -ldl -framework IOKit $(SDLCONFIG_STATICLIBS)
246 OBJ_AGL= builddate.c sys_linux.o vid_agl.o thread_null.o $(OBJ_MENU) $(OBJ_SOUND) $(OBJ_CD) $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)
248 EXE_MACOSXCL=darkplaces-agl
249 EXE_MACOSXCLNEXUIZ=nexuiz-agl
252 ##### SunOS specific variables #####
254 # No CD support available
255 OBJ_SUNOSCD=$(OBJ_NOCD)
257 CFLAGS_SUNOS=-I/usr/lib/oss/include -DBSD_COMP -DSUNOS
260 LDFLAGS_SUNOSCL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl -R$(UNIX_X11LIBPATH) -L$(UNIX_X11LIBPATH) -lX11 -lXpm -lXext -lXxf86vm $(LIB_SOUND)
261 LDFLAGS_SUNOSSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl
262 LDFLAGS_SUNOSSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl $(LDFLAGS_UNIXSDL)
265 ##### BSD specific variables #####
268 LDFLAGS_BSDCL=$(LDFLAGS_UNIXCOMMON) -lutil $(LDFLAGS_UNIXCL)
269 LDFLAGS_BSDSV=$(LDFLAGS_UNIXCOMMON)
270 LDFLAGS_BSDSDL=$(LDFLAGS_UNIXCOMMON) $(LDFLAGS_UNIXSDL)
273 ##### Win32 specific variables #####
277 OBJ_WGL= builddate.c sys_win.o vid_wgl.o thread_null.o $(OBJ_MENU) $(OBJ_SND_WIN) $(OBJ_WINCD) $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)
280 # see LDFLAGS_WINCOMMON in makefile
281 LDFLAGS_WINCL=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) -mwindows -lwinmm -luser32 -lgdi32 -ldxguid -ldinput -lcomctl32 -lws2_32 $(LDFLAGS_D3D) $(LIB_Z) $(LIB_JPEG)
282 LDFLAGS_WINSV=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) -mconsole -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG)
283 LDFLAGS_WINSDL=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) $(SDLCONFIG_LIBS) -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG)
284 EXE_WINCL=darkplaces.exe
285 EXE_WINSV=darkplaces-dedicated.exe
286 EXE_WINSDL=darkplaces-sdl.exe
287 EXE_WINCLNEXUIZ=nexuiz.exe
288 EXE_WINSVNEXUIZ=nexuiz-dedicated.exe
289 EXE_WINSDLNEXUIZ=nexuiz-sdl.exe
295 .PHONY : clean clean-profile help \
296 debug profile release \
297 cl-debug cl-profile cl-release \
298 sv-debug sv-profile sv-release \
299 sdl-debug sdl-profile sdl-release
303 @echo "===== Choose one ====="
304 @echo "* $(MAKE) clean : delete all files produced by the build except"
305 @echo " profiling information"
306 @echo "* $(MAKE) clean-profile : delete all files produced by the build, including"
307 @echo " profiling informaiton"
308 @echo "* $(MAKE) help : this help"
309 @echo "* $(MAKE) debug : make client and server binaries (debug versions)"
310 @echo "* $(MAKE) profile : make client and server binaries (profile versions)"
311 @echo "* $(MAKE) release : make client and server binaries (release versions)"
312 @echo "* $(MAKE) release-profile : make client and server binaries (release versions)"
313 @echo " (with profiling optimizations) The profiled"
314 @echo " version of the program must have been"
315 @echo " previously compiled"
316 @echo "* $(MAKE) nexuiz : make client and server binaries with nexuiz icon"
317 @echo " (release versions)"
318 @echo "* $(MAKE) cl-debug : make client (debug version)"
319 @echo "* $(MAKE) cl-profile : make client (profile version)"
320 @echo "* $(MAKE) cl-release-profile : make client (release profile version)"
321 @echo "* $(MAKE) cl-release : make client (release version)"
322 @echo "* $(MAKE) cl-nexuiz : make client with nexuiz icon (release version)"
323 @echo "* $(MAKE) sv-debug : make dedicated server (debug version)"
324 @echo "* $(MAKE) sv-profile : make dedicated server (profile version)"
325 @echo "* $(MAKE) sv-release-profile : make dedicated server (release profile version)"
326 @echo "* $(MAKE) sv-release : make dedicated server (release version)"
327 @echo "* $(MAKE) sv-nexuiz : make dedicated server with nexuiz icon"
328 @echo " (release version)"
329 @echo "* $(MAKE) sdl-debug : make SDL client (debug version)"
330 @echo "* $(MAKE) sdl-profile : make SDL client (profile version)"
331 @echo "* $(MAKE) sdl-release-profile : make SDL client (release version)"
332 @echo "* $(MAKE) sdl-release : make SDL client (release version)"
333 @echo "* $(MAKE) sdl-nexuiz : make SDL client with nexuiz icon (release version)"
334 @echo "* $(MAKE) sdl2-debug : make SDL2 client (debug version)"
335 @echo "* $(MAKE) sdl2-profile : make SDL2 client (profile version)"
336 @echo "* $(MAKE) sdl2-release-profile : make SDL2 client (release profile version)"
337 @echo "* $(MAKE) sdl2-release : make SDL2 client (release version)"
338 @echo "* $(MAKE) sdl2-nexuiz : make SDL2 client with nexuiz icon (release version)"
342 $(MAKE) $(TARGETS_DEBUG)
345 $(MAKE) $(TARGETS_PROFILE)
348 $(MAKE) $(TARGETS_RELEASE)
351 $(MAKE) $(TARGETS_RELEASE_PROFILE)
354 $(MAKE) $(TARGETS_NEXUIZ)
358 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
359 EXE='$(EXE_CL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_CL)' LEVEL=1
362 $(MAKE) bin-profile \
363 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
364 EXE='$(EXE_CL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_CL)' LEVEL=1
367 $(MAKE) bin-release \
368 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
369 EXE='$(EXE_CL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_CL)' LEVEL=1
372 $(MAKE) bin-release-profile \
373 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
374 EXE='$(EXE_CL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_CL)' LEVEL=1
377 $(MAKE) bin-release \
378 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
379 EXE='$(EXE_CLNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_CL)' LEVEL=1
383 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
384 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
387 $(MAKE) bin-profile \
388 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
389 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
392 $(MAKE) bin-release \
393 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
394 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
397 $(MAKE) bin-release-profile \
398 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
399 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
402 $(MAKE) bin-release \
403 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
404 EXE='$(EXE_SVNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
408 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
409 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
412 $(MAKE) bin-profile \
413 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
414 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
417 $(MAKE) bin-release \
418 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
419 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
421 sdl-release-profile :
422 $(MAKE) bin-release-profile \
423 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
424 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
427 $(MAKE) bin-release \
428 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
429 EXE='$(EXE_SDLNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
432 $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-debug
435 $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-profile
438 $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-release
440 sdl2-release-profile :
441 $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-release-profile
444 $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-nexuiz
449 @echo '========== $(EXE) (debug) =========='
450 $(MAKE) prepare BUILD_DIR=build-obj/debug/$(EXE)
451 $(MAKE) -C build-obj/debug/$(EXE) $(EXE) \
452 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
453 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_DEBUG) $(OPTIM_DEBUG)'\
454 LDFLAGS='$(LDFLAGS_DEBUG) $(LDFLAGS_COMMON)' LEVEL=2
459 @echo '========== $(EXE) (profile) =========='
460 $(MAKE) prepare BUILD_DIR=build-obj/profile/$(EXE)
461 $(MAKE) -C build-obj/profile/$(EXE) $(EXE) \
462 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
463 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_PROFILE) $(OPTIM_RELEASE)'\
464 LDFLAGS='$(LDFLAGS_PROFILE) $(LDFLAGS_COMMON)' LEVEL=2
469 @echo '========== $(EXE) (release) =========='
470 $(MAKE) prepare BUILD_DIR=build-obj/release/$(EXE)
471 $(MAKE) -C build-obj/release/$(EXE) $(EXE) \
472 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
473 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE) $(OPTIM_RELEASE)'\
474 LDFLAGS='$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)' LEVEL=2
477 bin-release-profile :
480 @echo '========== $(EXE) (release) =========='
481 $(MAKE) prepare BUILD_DIR=build-obj/release-profile/$(EXE)
482 $(MAKE) -C build-obj/release-profile/$(EXE) $(EXE) \
483 DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
484 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE_PROFILE) $(OPTIM_RELEASE)'\
485 LDFLAGS='$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)' LEVEL=2
489 $(CMD_MKDIR) $(BUILD_DIR)
490 $(CMD_CP) makefile.inc $(BUILD_DIR)/
491 $(CMD_CP) $(MAKEFILE) $(BUILD_DIR)/
493 #this checks USEODE when compiling so it needs the ODE flags as well
494 prvm_cmds.o: prvm_cmds.c
496 $(DO_CC) $(CFLAGS_ODE)
500 $(DO_CC) $(CFLAGS_ODE)
504 $(DO_CC) -I/usr/X11R6/include
506 keysym2ucs.o: keysym2ucs.c
508 $(DO_CC) -I/usr/X11R6/include
512 $(DO_CC) $(CFLAGS_SDL)
516 $(DO_CC) $(CFLAGS_SDL)
520 $(DO_CC) $(CFLAGS_SDL)
522 thread_sdl.o: thread_sdl.c
524 $(DO_CC) $(CFLAGS_SDL)
526 snd_3dras.o: snd_3dras.c
532 $(DO_CC) $(CFLAGS_SDL)
536 $(DO_CC) $(CFLAGS_CRYPTO) $(CFLAGS_CRYPTO_RIJNDAEL)
538 mod_skeletal_animatevertices_sse.o: mod_skeletal_animatevertices_sse.c
540 $(DO_CC) $(CFLAGS_SSE)
542 dpsoftrast.o: dpsoftrast.c
544 $(DO_CC) $(CFLAGS_SSE2)
546 darkplaces.o: %.o : %.rc
558 $(EXE_CL): $(OBJ_CL) $(OBJ_ICON)
562 $(EXE_SV): $(OBJ_SV) $(OBJ_ICON)
566 $(EXE_SDL): $(OBJ_SDL) $(OBJ_ICON)
570 $(EXE_CLNEXUIZ): $(OBJ_CL) $(OBJ_ICON_NEXUIZ)
574 $(EXE_SVNEXUIZ): $(OBJ_SV) $(OBJ_ICON_NEXUIZ)
578 $(EXE_SDLNEXUIZ): $(OBJ_SDL) $(OBJ_ICON_NEXUIZ)
585 -$(CMD_RM) $(EXE_SDL)
586 -$(CMD_RM) $(EXE_CLNEXUIZ)
587 -$(CMD_RM) $(EXE_SVNEXUIZ)
588 -$(CMD_RM) $(EXE_SDLNEXUIZ)
591 -$(CMD_RM) build-obj/