makefile: Delete references to nonexistent files
[xonotic/darkplaces.git] / makefile.inc
1 # Invalid call detection
2 CHECKLEVEL1 = @if [ "$(LEVEL)" != 1 ]; then $(MAKE) help; false; fi
3 CHECKLEVEL2 = @if [ "$(LEVEL)" != 2 ]; then $(MAKE) help; false; fi
4
5 # Choose the compiler you want to use
6 CC?=gcc
7
8 # athlon optimizations
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)
21 #CPUOPTIMIZATIONS?=
22 # Experimental
23 #CPUOPTIMIZATIONS?=-fno-math-errno -fno-rounding-math -fno-signaling-nans -fassociative-math -freciprocal-math -fno-signed-zeros -fno-trapping-math
24 # Normal
25 ifeq ($(CC), clang)
26         CPUOPTIMIZATIONS?=-fno-math-errno -fno-rounding-math -fno-trapping-math
27 else
28         CPUOPTIMIZATIONS?=-fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math
29 endif
30 # NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
31 # Also, since gcc 5, -ffinite-math-only makes NaN and zero compare equal inside engine code but not inside QC, which causes error spam for seemingly valid QC code like if (x != 0) return 1 / x;
32
33 SDL_CONFIG?=sdl2-config
34 SDLCONFIG_UNIXCFLAGS?=`$(SDL_CONFIG) --cflags`
35 SDLCONFIG_UNIXCFLAGS_X11?=
36 SDLCONFIG_UNIXLIBS?=`$(SDL_CONFIG) --libs`
37 SDLCONFIG_UNIXLIBS_X11?=-lX11
38 SDLCONFIG_UNIXSTATICLIBS?=`$(SDL_CONFIG) --static-libs`
39 SDLCONFIG_UNIXSTATICLIBS_X11?=-lX11
40 SDLCONFIG_MACOSXCFLAGS=-I/Library/Frameworks/SDL2.framework/Headers -I$(HOME)/Library/Frameworks/SDL2.framework/Headers
41 SDLCONFIG_MACOSXLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL2 -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
42 SDLCONFIG_MACOSXSTATICLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL2 -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
43 STRIP?=strip
44
45
46 ###### Sound #####
47
48 OBJ_SND_COMMON=snd_main.o snd_mem.o snd_mix.o snd_ogg.o snd_wav.o $(OBJ_SND_XMP)
49
50 # No sound
51 OBJ_SND_NULL=snd_null.o
52 LIB_SND_NULL=
53
54 ###### Common objects and flags #####
55
56 # Common objects
57 OBJ_COMMON= \
58         bih.o \
59         crypto.o \
60         cd_shared.o \
61         cl_cmd.o \
62         cl_collision.o \
63         cl_demo.o \
64         cl_ents.o \
65         cl_ents4.o \
66         cl_ents5.o \
67         cl_ents_nq.o \
68         cl_ents_qw.o \
69         cl_input.o \
70         cl_main.o \
71         cl_parse.o \
72         cl_particles.o \
73         cl_screen.o \
74         cl_video.o \
75         cl_video_libavw.o \
76         clvm_cmds.o \
77         cmd.o \
78         collision.o \
79         com_crc16.o \
80         com_ents.o \
81         com_ents4.o \
82         com_game.o \
83         com_msg.o \
84         common.o \
85         console.o \
86         csprogs.o \
87         curves.o \
88         cvar.o \
89         dpvsimpledecode.o \
90         filematch.o \
91         fractalnoise.o \
92         fs.o \
93         ft2.o \
94         utf8lib.o \
95         gl_backend.o \
96         gl_draw.o \
97         gl_rmain.o \
98         gl_rsurf.o \
99         gl_textures.o \
100         hmac.o \
101         host.o \
102         image.o \
103         image_png.o \
104         jpeg.o \
105         keys.o \
106         lhnet.o \
107         libcurl.o \
108         mathlib.o \
109         matrixlib.o \
110         mdfour.o \
111         meshqueue.o \
112         mod_skeletal_animatevertices_sse.o \
113         mod_skeletal_animatevertices_generic.o \
114         model_alias.o \
115         model_brush.o \
116         model_shared.o \
117         model_sprite.o \
118         netconn.o \
119         palette.o \
120         polygon.o \
121         portals.o \
122         protocol.o \
123         prvm_cmds.o \
124         prvm_edict.o \
125         prvm_exec.o \
126         r_explosion.o \
127         r_lightning.o \
128         r_modules.o \
129         r_shadow.o \
130         r_sky.o \
131         r_sprites.o \
132         r_stats.o \
133         sbar.o \
134         sv_ccmds.o \
135         sv_demo.o \
136         sv_ents.o \
137         sv_ents4.o \
138         sv_ents5.o \
139         sv_ents_csqc.o \
140         sv_ents_nq.o \
141         sv_main.o \
142         sv_move.o \
143         sv_phys.o \
144         sv_save.o \
145         sv_send.o \
146         sv_user.o \
147         svbsp.o \
148         svvm_cmds.o \
149         sys_shared.o \
150         taskqueue.o \
151         vid_shared.o \
152         view.o \
153         wad.o \
154         world.o \
155         zone.o
156
157 OBJ_MENU= \
158         menu.o \
159         mvm_cmds.o
160
161 # note that builddate.c is very intentionally not compiled to a .o before
162 # being linked, because it should be recompiled every time an executable is
163 # built to give the executable a proper date string
164 OBJ_SV= builddate.c sys_unix.o vid_null.o thread_null.o $(OBJ_SND_NULL) $(OBJ_COMMON)
165 OBJ_SDL= builddate.c sys_sdl.o vid_sdl.o thread_sdl.o $(OBJ_MENU) $(OBJ_SND_COMMON) $(OBJ_SND_XMP) snd_sdl.o $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)
166
167
168 # Compilation
169 ifeq ($(PEDANTIC),1)
170         CFLAGS_STANDARD=-std=c11 -pedantic -D_POSIX_C_SOURCE=200809L -DCONFIG_PEDANTIC
171 else
172         CFLAGS_STANDARD=
173 endif
174
175 CFLAGS_TCC=
176
177 ifeq ($(CC), tcc)
178         CFLAGS_TCC=-DSDL_DISABLE_IMMINTRIN_H
179 endif
180
181 CFLAGS_COMMON=$(CFLAGS_STANDARD) $(CFLAGS_TCC) $(CFLAGS_MAKEDEP) $(CFLAGS_PRELOAD) $(CFLAGS_FS) $(CFLAGS_WARNINGS) $(CFLAGS_LIBZ) $(CFLAGS_LIBJPEG) $(CFLAGS_SND_XMP) $(CFLAGS_NET) $(CFLAGS_SDL) -D_FILE_OFFSET_BITS=64 -D__KERNEL_STRICT_NAMES -I../../../
182 CFLAGS_CLIENT=-DCONFIG_MENU $(CFLAGS_VIDEO_CAPTURE)
183 CFLAGS_SERVER=
184 CFLAGS_DEBUG=-ggdb
185 CFLAGS_PROFILE=-g -pg -ggdb -fprofile-arcs
186 CFLAGS_RELEASE=
187 CFLAGS_RELEASE_PROFILE=-fbranch-probabilities
188 CFLAGS_SDL=
189
190 ifeq ($(DP_SSE),1)
191         CFLAGS_SSE=-msse
192         CFLAGS_SSE2=-msse2
193 else
194         CFLAGS_SSE=
195         CFLAGS_SSE2=
196 endif # ifeq ($(DP_SSE),1)
197
198 OPTIM_DEBUG=$(CPUOPTIMIZATIONS)
199 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops $(CPUOPTIMIZATIONS)
200 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-signaling-nans -fcx-limited-range -funroll-loops $(CPUOPTIMIZATIONS)
201 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -funroll-loops $(CPUOPTIMIZATIONS)
202 #OPTIM_RELEASE=-O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
203 OPTIM_RELEASE=-O3 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
204 # NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
205 # Also, since gcc 5, -ffinite-math-only makes NaN and zero compare equal inside engine code but not inside QC, which causes error spam for seemingly valid QC code like if (x != 0) return 1 / x;
206
207 DO_CC=$(CC) $(CFLAGS) -c $< -o $@
208
209
210 # Link
211 LDFLAGS_DEBUG=-g -ggdb $(OPTIM_DEBUG) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=debug
212 LDFLAGS_PROFILE=-g -pg -fprofile-arcs $(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=profile
213 LDFLAGS_RELEASE=$(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=release
214
215
216 ##### UNIX specific variables #####
217
218 LDFLAGS_UNIXCOMMON=-lm $(LIB_ODE) $(LIB_Z) $(LIB_JPEG) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) $(LIB_SND_XMP)
219 LDFLAGS_UNIXSV_PRELOAD=-lz -ljpeg -lpng -lcurl
220 LDFLAGS_UNIXSDL_PRELOAD=-lz -ljpeg -lpng -logg -ltheora -lvorbis -lvorbisenc -lvorbisfile -lcurl -lxmp
221 CFLAGS_UNIX_PRELOAD=-DPREFER_PRELOAD
222
223 LDFLAGS_UNIXSDL=$(SDL_LIBS) #-lGLESv2
224 EXE_UNIXSV=darkplaces-dedicated
225 EXE_UNIXSDL=darkplaces-sdl
226 EXE_UNIXSVNEXUIZ=nexuiz-dedicated
227 EXE_UNIXSDLNEXUIZ=nexuiz-sdl
228
229 CMD_UNIXRM=rm -rf
230 CMD_UNIXCP=cp -f
231 CMD_UNIXMKDIR=mkdir -p
232
233
234 ##### Linux specific variables #####
235
236 # Link
237 LDFLAGS_LINUXSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl
238 LDFLAGS_LINUXSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl $(LDFLAGS_UNIXSDL)
239
240
241 ##### Mac OS X specific variables #####
242
243 # Link
244 LDFLAGS_MACOSXSV=$(LDFLAGS_UNIXCOMMON) -ldl
245 LDFLAGS_MACOSXSDL=$(LDFLAGS_UNIXCOMMON) -ldl -framework IOKit $(SDLCONFIG_STATICLIBS) ../../../SDLMain.m
246
247
248 ##### SunOS specific variables #####
249
250 CFLAGS_SUNOS=-I/usr/lib/oss/include -DBSD_COMP -DSUNOS
251
252 # Link
253 LDFLAGS_SUNOSSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl
254 LDFLAGS_SUNOSSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl $(LDFLAGS_UNIXSDL)
255
256
257 ##### BSD specific variables #####
258
259 # Link
260 LDFLAGS_BSDSV=$(LDFLAGS_UNIXCOMMON) 
261 LDFLAGS_BSDSDL=$(LDFLAGS_UNIXCOMMON) $(LDFLAGS_UNIXSDL)
262
263
264 ##### Win32 specific variables #####
265
266 WINDRES ?= windres
267
268 # Link
269 # see LDFLAGS_WINCOMMON in makefile
270 LDFLAGS_WINSV=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) -mconsole -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG)
271 LDFLAGS_WINSDL=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) $(LDFLAGS_UNIXSDL) -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG) $(LIB_SND_XMP)
272 EXE_WINSV=darkplaces-dedicated.exe
273 EXE_WINSDL=darkplaces-sdl.exe
274 EXE_WINSVNEXUIZ=nexuiz-dedicated.exe
275 EXE_WINSDLNEXUIZ=nexuiz-sdl.exe
276
277 VPATH := ../../../
278
279 ##### Commands #####
280
281 .PHONY : clean clean-profile help \
282          debug profile release \
283          sv-debug sv-profile sv-release \
284          sdl-debug sdl-profile sdl-release
285
286 help:
287         @echo
288         @echo "===== Choose one ====="
289         @echo "* $(MAKE) clean                : delete all files produced by the build except"
290         @echo "                              profiling information"
291         @echo "* $(MAKE) clean-profile        : delete all files produced by the build, including"
292         @echo "                              profiling informaiton"
293         @echo "* $(MAKE) help                 : this help"
294         @echo "* $(MAKE) debug                : make client and server binaries (debug versions)"
295         @echo "* $(MAKE) profile              : make client and server binaries (profile versions)"
296         @echo "* $(MAKE) release              : make client and server binaries (release versions)"
297         @echo "* $(MAKE) release-profile      : make client and server binaries (release versions)"
298         @echo "                              (with profiling optimizations) The profiled"
299         @echo "                              version of the program must have been"
300         @echo "                              previously compiled"
301         @echo "* $(MAKE) nexuiz               : make client and server binaries with nexuiz icon"
302         @echo "                              (release versions)"
303         @echo "* $(MAKE) sv-debug             : make dedicated server (debug version)"
304         @echo "* $(MAKE) sv-profile           : make dedicated server (profile version)"
305         @echo "* $(MAKE) sv-release-profile   : make dedicated server (release profile version)"
306         @echo "* $(MAKE) sv-release           : make dedicated server (release version)"
307         @echo "* $(MAKE) sv-nexuiz            : make dedicated server with nexuiz icon"
308         @echo "                              (release version)"
309         @echo "* $(MAKE) sdl-debug            : make SDL client (debug version)"
310         @echo "* $(MAKE) sdl-profile          : make SDL client (profile version)"
311         @echo "* $(MAKE) sdl-release-profile  : make SDL client (release version)"
312         @echo "* $(MAKE) sdl-release          : make SDL client (release version)"
313         @echo "* $(MAKE) sdl-nexuiz           : make SDL client with nexuiz icon (release version)"
314         @echo
315
316 debug :
317         $(MAKE) $(TARGETS_DEBUG)
318
319 profile :
320         $(MAKE) $(TARGETS_PROFILE)
321
322 release :
323         $(MAKE) $(TARGETS_RELEASE)
324
325 release-profile :
326         $(MAKE) $(TARGETS_RELEASE_PROFILE)
327
328 nexuiz :
329         $(MAKE) $(TARGETS_NEXUIZ)
330
331 sv-debug :
332         $(MAKE) bin-debug \
333                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
334                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
335
336 sv-profile :
337         $(MAKE) bin-profile \
338                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
339                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
340
341 sv-release :
342         $(MAKE) bin-release \
343                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
344                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
345
346 sv-release-profile :
347         $(MAKE) bin-release-profile \
348                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
349                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
350
351 sv-nexuiz :
352         $(MAKE) bin-release \
353                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
354                 EXE='$(EXE_SVNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
355
356 sdl-debug :
357         $(MAKE) bin-debug \
358                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
359                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
360
361 sdl-profile :
362         $(MAKE) bin-profile \
363                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
364                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
365
366 sdl-release :
367         $(MAKE) bin-release \
368                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
369                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
370
371 sdl-release-profile :
372         $(MAKE) bin-release-profile \
373                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
374                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
375
376 sdl-nexuiz :
377         $(MAKE) bin-release \
378                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
379                 EXE='$(EXE_SDLNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
380
381 bin-debug :
382         $(CHECKLEVEL1)
383         @echo
384         @echo '========== $(EXE) (debug) =========='
385         $(MAKE) prepare BUILD_DIR=build-obj/debug/$(EXE)
386         $(MAKE) -C build-obj/debug/$(EXE) $(EXE) \
387                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
388                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_DEBUG) $(OPTIM_DEBUG)'\
389                 LDFLAGS='$(LDFLAGS_DEBUG) $(LDFLAGS_COMMON)' LEVEL=2
390
391 bin-profile :
392         $(CHECKLEVEL1)
393         @echo
394         @echo '========== $(EXE) (profile) =========='
395         $(MAKE) prepare BUILD_DIR=build-obj/profile/$(EXE)
396         $(MAKE) -C build-obj/profile/$(EXE) $(EXE) \
397                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
398                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_PROFILE) $(OPTIM_RELEASE)'\
399                 LDFLAGS='$(LDFLAGS_PROFILE) $(LDFLAGS_COMMON)' LEVEL=2
400
401 bin-release :
402         $(CHECKLEVEL1)
403         @echo
404         @echo '========== $(EXE) (release) =========='
405         $(MAKE) prepare BUILD_DIR=build-obj/release/$(EXE)
406         $(MAKE) -C build-obj/release/$(EXE) $(EXE) \
407                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
408                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE) $(OPTIM_RELEASE)'\
409                 LDFLAGS='$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)' LEVEL=2
410         $(STRIP) $(EXE)
411
412 bin-release-profile :
413         $(CHECKLEVEL1)
414         @echo
415         @echo '========== $(EXE) (release) =========='
416         $(MAKE) prepare BUILD_DIR=build-obj/release-profile/$(EXE)
417         $(MAKE) -C build-obj/release-profile/$(EXE) $(EXE) \
418                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
419                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE_PROFILE) $(OPTIM_RELEASE)'\
420                 LDFLAGS='$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)' LEVEL=2
421         $(STRIP) $(EXE)
422
423 prepare :
424         $(CMD_MKDIR) $(BUILD_DIR)
425         $(CMD_CP) makefile.inc $(BUILD_DIR)/
426         $(CMD_CP) $(MAKEFILE) $(BUILD_DIR)/
427
428
429 #this checks USEODE when compiling so it needs the ODE flags as well
430 cl_parse.o: cl_parse.c
431         $(CHECKLEVEL2)
432         $(DO_CC) $(CFLAGS_ODE)
433
434 cs_progs.o: cs_progs.c
435         $(CHECKLEVEL2)
436         $(DO_CC) $(CFLAGS_ODE)
437
438 sv_main.o: sv_main.c
439         $(CHECKLEVEL2)
440         $(DO_CC) $(CFLAGS_ODE)
441
442 sv_phys.o: sv_phys.c
443         $(CHECKLEVEL2)
444         $(DO_CC) $(CFLAGS_ODE)
445
446 prvm_cmds.o: prvm_cmds.c
447         $(CHECKLEVEL2)
448         $(DO_CC) $(CFLAGS_ODE)
449
450 world.o: world.c
451         $(CHECKLEVEL2)
452         $(DO_CC) $(CFLAGS_ODE)
453
454 crypto.o: crypto.c
455         $(CHECKLEVEL2)
456         $(DO_CC) $(CFLAGS_CRYPTO) $(CFLAGS_CRYPTO_RIJNDAEL)
457
458 mod_skeletal_animatevertices_sse.o: mod_skeletal_animatevertices_sse.c
459         $(CHECKLEVEL2)
460         $(DO_CC) $(CFLAGS_SSE)
461
462 snd_xmp.o: snd_xmp.c
463         $(CHECKLEVEL2)
464         $(DO_CC) $(CFLAGS_SND_XMP)
465
466 #this checks USEXMP when compiling so it needs the XMP flags as well
467 snd_main.o: snd_main.c
468         $(CHECKLEVEL2)
469         $(DO_CC) $(CFLAGS_SND_XMP)
470
471 #this checks USEXMP when compiling so it needs the XMP flags as well
472 snd_mem.o: snd_mem.c
473         $(CHECKLEVEL2)
474         $(DO_CC) $(CFLAGS_SND_XMP)
475
476 darkplaces.o: %.o : %.rc
477         $(CHECKLEVEL2)
478         $(WINDRES) -o $@ $<
479
480 nexuiz.o: %.o : %.rc
481         $(CHECKLEVEL2)
482         $(WINDRES) -o $@ $<
483
484 .c.o:
485         $(CHECKLEVEL2)
486         $(DO_CC)
487
488 $(EXE_SV): $(OBJ_SV) $(OBJ_ICON)
489         $(CHECKLEVEL2)
490         $(DO_LD)
491
492 $(EXE_SDL): $(OBJ_SDL) $(OBJ_ICON)
493         $(CHECKLEVEL2)
494         $(DO_LD)
495
496 $(EXE_SVNEXUIZ): $(OBJ_SV) $(OBJ_ICON_NEXUIZ)
497         $(CHECKLEVEL2)
498         $(DO_LD)
499
500 $(EXE_SDLNEXUIZ): $(OBJ_SDL) $(OBJ_ICON_NEXUIZ)
501         $(CHECKLEVEL2)
502         $(DO_LD)
503
504 clean:
505         -$(CMD_RM) $(EXE_SV)
506         -$(CMD_RM) $(EXE_SDL)
507         -$(CMD_RM) $(EXE_SVNEXUIZ)
508         -$(CMD_RM) $(EXE_SDLNEXUIZ)
509         -$(CMD_RM) *.o
510         -$(CMD_RM) *.d
511         -$(CMD_RM) *.gch
512         -$(CMD_RM) build-obj/
513
514 clean-profile: clean
515         -$(CMD_RM) *.gcda
516         -$(CMD_RM) *.gcno