Fix defer command. Maintain separate oldrealtime(s) per interpreter
[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 CPUOPTIMIZATIONS?=-fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math
26 # NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
27 # 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;
28
29 SDL_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/SDL2.framework/Headers -I$(HOME)/Library/Frameworks/SDL2.framework/Headers
37 SDLCONFIG_MACOSXLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL2 -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
38 SDLCONFIG_MACOSXSTATICLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL2 -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
39 STRIP?=strip
40
41
42 ###### Sound #####
43
44 OBJ_SND_COMMON=snd_main.o snd_mem.o snd_mix.o snd_ogg.o snd_wav.o
45
46 # No sound
47 OBJ_SND_NULL=snd_null.o
48 LIB_SND_NULL=
49
50 # Open Sound System (Linux, FreeBSD and Solaris)
51 OBJ_SND_OSS=$(OBJ_SND_COMMON) snd_oss.o
52 LIB_SND_OSS=
53
54 # Advanced Linux Sound Architecture (Linux)
55 OBJ_SND_ALSA=$(OBJ_SND_COMMON) snd_alsa.o
56 LIB_SND_ALSA=-lasound
57
58 # Core Audio (Mac OS X)
59 OBJ_SND_COREAUDIO=$(OBJ_SND_COMMON) snd_coreaudio.o
60 LIB_SND_COREAUDIO=-framework CoreAudio
61
62 # BSD / Sun audio API (NetBSD and OpenBSD)
63 OBJ_SND_BSD=$(OBJ_SND_COMMON) snd_bsd.o
64 LIB_SND_BSD=
65
66 # DirectX and Win32 WAVE output (Win32)
67 OBJ_SND_WIN=$(OBJ_SND_COMMON) snd_win.o
68 LIB_SND_WIN=
69
70 # Qantourisc's 3D Realtime Acoustic Lib (3D RAS)
71 OBJ_SND_3DRAS=snd_3dras.o
72 LIB_SND_3DRAS=
73
74
75 ###### Common objects and flags #####
76
77 # Common objects
78 OBJ_COMMON= \
79         bih.o \
80         crypto.o \
81         cd_shared.o \
82         cl_collision.o \
83         cl_demo.o \
84         cl_input.o \
85         cl_main.o \
86         cl_parse.o \
87         cl_particles.o \
88         cl_screen.o \
89         cl_video.o \
90         clvm_cmds.o \
91         cmd.o \
92         collision.o \
93         common.o \
94         console.o \
95         csprogs.o \
96         curves.o \
97         cvar.o \
98         dpvsimpledecode.o \
99         filematch.o \
100         fractalnoise.o \
101         fs.o \
102         ft2.o \
103         utf8lib.o \
104         gl_backend.o \
105         gl_draw.o \
106         gl_rmain.o \
107         gl_rsurf.o \
108         gl_textures.o \
109         hmac.o \
110         host.o \
111         host_cmd.o \
112         image.o \
113         image_png.o \
114         jpeg.o \
115         keys.o \
116         lhnet.o \
117         libcurl.o \
118         mathlib.o \
119         matrixlib.o \
120         mdfour.o \
121         meshqueue.o \
122         mod_skeletal_animatevertices_sse.o \
123         mod_skeletal_animatevertices_generic.o \
124         model_alias.o \
125         model_brush.o \
126         model_shared.o \
127         model_sprite.o \
128         netconn.o \
129         palette.o \
130         polygon.o \
131         portals.o \
132         protocol.o \
133         prvm_cmds.o \
134         prvm_edict.o \
135         prvm_exec.o \
136         r_explosion.o \
137         r_lerpanim.o \
138         r_lightning.o \
139         r_modules.o \
140         r_shadow.o \
141         r_sky.o \
142         r_sprites.o \
143         sbar.o \
144         sv_demo.o \
145         sv_main.o \
146         sv_move.o \
147         sv_phys.o \
148         sv_user.o \
149         svbsp.o \
150         svvm_cmds.o \
151         sys_shared.o \
152         taskqueue.o \
153         vid_shared.o \
154         view.o \
155         wad.o \
156         world.o \
157         zone.o
158
159 OBJ_MENU= \
160         menu.o \
161         mvm_cmds.o
162
163 # note that builddate.c is very intentionally not compiled to a .o before
164 # being linked, because it should be recompiled every time an executable is
165 # built to give the executable a proper date string
166 OBJ_SV= builddate.c sys_linux.o vid_null.o thread_null.o $(OBJ_SND_NULL) $(OBJ_COMMON)
167 OBJ_SDL= builddate.c sys_sdl.o vid_sdl.o thread_sdl.o $(OBJ_MENU) $(OBJ_SND_COMMON) snd_sdl.o $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)
168
169
170 # Compilation
171 CFLAGS_COMMON=$(CFLAGS_MAKEDEP) $(CFLAGS_PRELOAD) $(CFLAGS_FS) $(CFLAGS_WARNINGS) $(CFLAGS_LIBZ) $(CFLAGS_LIBJPEG) $(CFLAGS_D3D) $(CFLAGS_NET) $(CFLAGS_SDL) -D_FILE_OFFSET_BITS=64 -D__KERNEL_STRICT_NAMES -I../../../
172 CFLAGS_CLIENT=-DCONFIG_MENU $(CFLAGS_VIDEO_CAPTURE)
173 CFLAGS_SERVER=
174 CFLAGS_DEBUG=-ggdb
175 CFLAGS_PROFILE=-g -pg -ggdb -fprofile-arcs
176 CFLAGS_RELEASE=
177 CFLAGS_RELEASE_PROFILE=-fbranch-probabilities
178 CFLAGS_SDL=
179
180 ifeq ($(DP_SSE),1)
181         CFLAGS_SSE=-msse
182         CFLAGS_SSE2=-msse2
183 else
184         CFLAGS_SSE=
185         CFLAGS_SSE2=
186 endif # ifeq ($(DP_SSE),1)
187
188 OPTIM_DEBUG=$(CPUOPTIMIZATIONS)
189 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops $(CPUOPTIMIZATIONS)
190 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-signaling-nans -fcx-limited-range -funroll-loops $(CPUOPTIMIZATIONS)
191 #OPTIM_RELEASE=-O2 -fno-strict-aliasing -funroll-loops $(CPUOPTIMIZATIONS)
192 #OPTIM_RELEASE=-O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
193 OPTIM_RELEASE=-O3 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
194 # NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
195 # 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;
196
197 DO_CC=$(CC) $(CFLAGS) -c $< -o $@
198
199
200 # Link
201 LDFLAGS_DEBUG=-g -ggdb $(OPTIM_DEBUG) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=debug
202 LDFLAGS_PROFILE=-g -pg -fprofile-arcs $(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=profile
203 LDFLAGS_RELEASE=$(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always; } || echo -` -DBUILDTYPE=release
204
205
206 ##### UNIX specific variables #####
207
208 LDFLAGS_UNIXCOMMON=-lm $(LIB_ODE) $(LIB_Z) $(LIB_JPEG) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL)
209 LDFLAGS_UNIXSV_PRELOAD=-lz -ljpeg -lpng -lcurl
210 LDFLAGS_UNIXSDL_PRELOAD=-lz -ljpeg -lpng -logg -ltheora -lvorbis -lvorbisenc -lvorbisfile -lcurl
211 CFLAGS_UNIX_PRELOAD=-DPREFER_PRELOAD
212
213 LDFLAGS_UNIXSDL=$(SDLCONFIG_LIBS)
214 EXE_UNIXSV=darkplaces-dedicated
215 EXE_UNIXSDL=darkplaces-sdl
216 EXE_UNIXSVNEXUIZ=nexuiz-dedicated
217 EXE_UNIXSDLNEXUIZ=nexuiz-sdl
218
219 CMD_UNIXRM=rm -rf
220 CMD_UNIXCP=cp -f
221 CMD_UNIXMKDIR=mkdir -p
222
223
224 ##### Linux specific variables #####
225
226 # Link
227 LDFLAGS_LINUXSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl
228 LDFLAGS_LINUXSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl $(LDFLAGS_UNIXSDL)
229
230
231 ##### Mac OS X specific variables #####
232
233 # Link
234 LDFLAGS_MACOSXSV=$(LDFLAGS_UNIXCOMMON) -ldl
235 LDFLAGS_MACOSXSDL=$(LDFLAGS_UNIXCOMMON) -ldl -framework IOKit $(SDLCONFIG_STATICLIBS) ../../../SDLMain.m
236
237
238 ##### SunOS specific variables #####
239
240 CFLAGS_SUNOS=-I/usr/lib/oss/include -DBSD_COMP -DSUNOS
241
242 # Link
243 LDFLAGS_SUNOSSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl
244 LDFLAGS_SUNOSSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl $(LDFLAGS_UNIXSDL)
245
246
247 ##### BSD specific variables #####
248
249 # Link
250 LDFLAGS_BSDSV=$(LDFLAGS_UNIXCOMMON) 
251 LDFLAGS_BSDSDL=$(LDFLAGS_UNIXCOMMON) $(LDFLAGS_UNIXSDL)
252
253
254 ##### Win32 specific variables #####
255
256 WINDRES ?= windres
257
258 # Link
259 # see LDFLAGS_WINCOMMON in makefile
260 LDFLAGS_WINSV=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) -mconsole -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG)
261 LDFLAGS_WINSDL=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) $(SDLCONFIG_LIBS) -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG)
262 EXE_WINSV=darkplaces-dedicated.exe
263 EXE_WINSDL=darkplaces-sdl.exe
264 EXE_WINSVNEXUIZ=nexuiz-dedicated.exe
265 EXE_WINSDLNEXUIZ=nexuiz-sdl.exe
266
267 VPATH := ../../../
268
269 ##### Commands #####
270
271 .PHONY : clean clean-profile help \
272          debug profile release \
273          sv-debug sv-profile sv-release \
274          sdl-debug sdl-profile sdl-release
275
276 help:
277         @echo
278         @echo "===== Choose one ====="
279         @echo "* $(MAKE) clean                : delete all files produced by the build except"
280         @echo "                              profiling information"
281         @echo "* $(MAKE) clean-profile        : delete all files produced by the build, including"
282         @echo "                              profiling informaiton"
283         @echo "* $(MAKE) help                 : this help"
284         @echo "* $(MAKE) debug                : make client and server binaries (debug versions)"
285         @echo "* $(MAKE) profile              : make client and server binaries (profile versions)"
286         @echo "* $(MAKE) release              : make client and server binaries (release versions)"
287         @echo "* $(MAKE) release-profile      : make client and server binaries (release versions)"
288         @echo "                              (with profiling optimizations) The profiled"
289         @echo "                              version of the program must have been"
290         @echo "                              previously compiled"
291         @echo "* $(MAKE) nexuiz               : make client and server binaries with nexuiz icon"
292         @echo "                              (release versions)"
293         @echo "* $(MAKE) sv-debug             : make dedicated server (debug version)"
294         @echo "* $(MAKE) sv-profile           : make dedicated server (profile version)"
295         @echo "* $(MAKE) sv-release-profile   : make dedicated server (release profile version)"
296         @echo "* $(MAKE) sv-release           : make dedicated server (release version)"
297         @echo "* $(MAKE) sv-nexuiz            : make dedicated server with nexuiz icon"
298         @echo "                              (release version)"
299         @echo "* $(MAKE) sdl-debug            : make SDL client (debug version)"
300         @echo "* $(MAKE) sdl-profile          : make SDL client (profile version)"
301         @echo "* $(MAKE) sdl-release-profile  : make SDL client (release version)"
302         @echo "* $(MAKE) sdl-release          : make SDL client (release version)"
303         @echo "* $(MAKE) sdl-nexuiz           : make SDL client with nexuiz icon (release version)"
304         @echo
305
306 debug :
307         $(MAKE) $(TARGETS_DEBUG)
308
309 profile :
310         $(MAKE) $(TARGETS_PROFILE)
311
312 release :
313         $(MAKE) $(TARGETS_RELEASE)
314
315 release-profile :
316         $(MAKE) $(TARGETS_RELEASE_PROFILE)
317
318 nexuiz :
319         $(MAKE) $(TARGETS_NEXUIZ)
320
321 sv-debug :
322         $(MAKE) bin-debug \
323                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
324                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
325
326 sv-profile :
327         $(MAKE) bin-profile \
328                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
329                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
330
331 sv-release :
332         $(MAKE) bin-release \
333                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
334                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
335
336 sv-release-profile :
337         $(MAKE) bin-release-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-nexuiz :
342         $(MAKE) bin-release \
343                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
344                 EXE='$(EXE_SVNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
345
346 sdl-debug :
347         $(MAKE) bin-debug \
348                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
349                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
350
351 sdl-profile :
352         $(MAKE) bin-profile \
353                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
354                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
355
356 sdl-release :
357         $(MAKE) bin-release \
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-release-profile :
362         $(MAKE) bin-release-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-nexuiz :
367         $(MAKE) bin-release \
368                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
369                 EXE='$(EXE_SDLNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
370
371 bin-debug :
372         $(CHECKLEVEL1)
373         @echo
374         @echo '========== $(EXE) (debug) =========='
375         $(MAKE) prepare BUILD_DIR=build-obj/debug/$(EXE)
376         $(MAKE) -C build-obj/debug/$(EXE) $(EXE) \
377                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
378                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_DEBUG) $(OPTIM_DEBUG)'\
379                 LDFLAGS='$(LDFLAGS_DEBUG) $(LDFLAGS_COMMON)' LEVEL=2
380
381 bin-profile :
382         $(CHECKLEVEL1)
383         @echo
384         @echo '========== $(EXE) (profile) =========='
385         $(MAKE) prepare BUILD_DIR=build-obj/profile/$(EXE)
386         $(MAKE) -C build-obj/profile/$(EXE) $(EXE) \
387                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
388                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_PROFILE) $(OPTIM_RELEASE)'\
389                 LDFLAGS='$(LDFLAGS_PROFILE) $(LDFLAGS_COMMON)' LEVEL=2
390
391 bin-release :
392         $(CHECKLEVEL1)
393         @echo
394         @echo '========== $(EXE) (release) =========='
395         $(MAKE) prepare BUILD_DIR=build-obj/release/$(EXE)
396         $(MAKE) -C build-obj/release/$(EXE) $(EXE) \
397                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
398                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE) $(OPTIM_RELEASE)'\
399                 LDFLAGS='$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)' LEVEL=2
400         $(STRIP) $(EXE)
401
402 bin-release-profile :
403         $(CHECKLEVEL1)
404         @echo
405         @echo '========== $(EXE) (release) =========='
406         $(MAKE) prepare BUILD_DIR=build-obj/release-profile/$(EXE)
407         $(MAKE) -C build-obj/release-profile/$(EXE) $(EXE) \
408                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
409                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE_PROFILE) $(OPTIM_RELEASE)'\
410                 LDFLAGS='$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)' LEVEL=2
411         $(STRIP) $(EXE)
412
413 prepare :
414         $(CMD_MKDIR) $(BUILD_DIR)
415         $(CMD_CP) makefile.inc $(BUILD_DIR)/
416         $(CMD_CP) $(MAKEFILE) $(BUILD_DIR)/
417
418 #this checks USEODE when compiling so it needs the ODE flags as well
419 prvm_cmds.o: prvm_cmds.c
420         $(CHECKLEVEL2)
421         $(DO_CC) $(CFLAGS_ODE)
422
423 world.o: world.c
424         $(CHECKLEVEL2)
425         $(DO_CC) $(CFLAGS_ODE)
426
427 vid_glx.o: vid_glx.c
428         $(CHECKLEVEL2)
429         $(DO_CC) -I/usr/X11R6/include
430
431 keysym2ucs.o: keysym2ucs.c
432         $(CHECKLEVEL2)
433         $(DO_CC) -I/usr/X11R6/include
434
435 crypto.o: crypto.c
436         $(CHECKLEVEL2)
437         $(DO_CC) $(CFLAGS_CRYPTO) $(CFLAGS_CRYPTO_RIJNDAEL)
438
439 mod_skeletal_animatevertices_sse.o: mod_skeletal_animatevertices_sse.c
440         $(CHECKLEVEL2)
441         $(DO_CC) $(CFLAGS_SSE)
442
443 darkplaces.o: %.o : %.rc
444         $(CHECKLEVEL2)
445         $(WINDRES) -o $@ $<
446
447 nexuiz.o: %.o : %.rc
448         $(CHECKLEVEL2)
449         $(WINDRES) -o $@ $<
450
451 .c.o:
452         $(CHECKLEVEL2)
453         $(DO_CC)
454
455 $(EXE_SV): $(OBJ_SV) $(OBJ_ICON)
456         $(CHECKLEVEL2)
457         $(DO_LD)
458
459 $(EXE_SDL): $(OBJ_SDL) $(OBJ_ICON)
460         $(CHECKLEVEL2)
461         $(DO_LD)
462
463 $(EXE_SVNEXUIZ): $(OBJ_SV) $(OBJ_ICON_NEXUIZ)
464         $(CHECKLEVEL2)
465         $(DO_LD)
466
467 $(EXE_SDLNEXUIZ): $(OBJ_SDL) $(OBJ_ICON_NEXUIZ)
468         $(CHECKLEVEL2)
469         $(DO_LD)
470
471 clean:
472         -$(CMD_RM) $(EXE_SV)
473         -$(CMD_RM) $(EXE_SDL)
474         -$(CMD_RM) $(EXE_SVNEXUIZ)
475         -$(CMD_RM) $(EXE_SDLNEXUIZ)
476         -$(CMD_RM) *.o
477         -$(CMD_RM) *.d
478         -$(CMD_RM) build-obj/
479
480 clean-profile: clean
481         -$(CMD_RM) *.gcda
482         -$(CMD_RM) *.gcno