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