]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - makefile.inc
de68b70988fdf3f6ee0817db95dae3015762f8ec
[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         taskqueue.o \
152         vid_shared.o \
153         view.o \
154         wad.o \
155         world.o \
156         zone.o
157
158 OBJ_MENU= \
159         menu.o \
160         mvm_cmds.o
161
162 # note that builddate.c is very intentionally not compiled to a .o before
163 # being linked, because it should be recompiled every time an executable is
164 # built to give the executable a proper date string
165 OBJ_SV= builddate.c sys_linux.o vid_null.o thread_null.o $(OBJ_SND_NULL) $(OBJ_COMMON)
166 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)
167
168
169 # Compilation
170 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../../../
171 CFLAGS_CLIENT=-DCONFIG_MENU $(CFLAGS_VIDEO_CAPTURE)
172 CFLAGS_SERVER=
173 CFLAGS_DEBUG=-ggdb
174 CFLAGS_PROFILE=-g -pg -ggdb -fprofile-arcs
175 CFLAGS_RELEASE=
176 CFLAGS_RELEASE_PROFILE=-fbranch-probabilities
177 CFLAGS_SDL=
178
179 ifeq ($(DP_SSE),1)
180         CFLAGS_SSE=-msse
181         CFLAGS_SSE2=-msse2
182 else
183         CFLAGS_SSE=
184         CFLAGS_SSE2=
185 endif # ifeq ($(DP_SSE),1)
186
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
194
195 DO_CC=$(CC) $(CFLAGS) -c $< -o $@
196
197
198 # Link
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
202
203
204 ##### UNIX specific variables #####
205
206 LDFLAGS_UNIXCOMMON=-lm $(LIB_ODE) $(LIB_Z) $(LIB_JPEG) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL)
207 LDFLAGS_UNIXSV_PRELOAD=-lz -ljpeg -lpng -lcurl
208 LDFLAGS_UNIXSDL_PRELOAD=-lz -ljpeg -lpng -logg -ltheora -lvorbis -lvorbisenc -lvorbisfile -lcurl
209 CFLAGS_UNIX_PRELOAD=-DPREFER_PRELOAD
210
211 LDFLAGS_UNIXSDL=$(SDLCONFIG_LIBS)
212 EXE_UNIXSV=darkplaces-dedicated
213 EXE_UNIXSDL=darkplaces-sdl
214 EXE_UNIXSVNEXUIZ=nexuiz-dedicated
215 EXE_UNIXSDLNEXUIZ=nexuiz-sdl
216
217 CMD_UNIXRM=rm -rf
218 CMD_UNIXCP=cp -f
219 CMD_UNIXMKDIR=mkdir -p
220
221
222 ##### Linux specific variables #####
223
224 # Link
225 LDFLAGS_LINUXSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl
226 LDFLAGS_LINUXSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl $(LDFLAGS_UNIXSDL)
227
228
229 ##### Mac OS X specific variables #####
230
231 # Link
232 LDFLAGS_MACOSXSV=$(LDFLAGS_UNIXCOMMON) -ldl
233 LDFLAGS_MACOSXSDL=$(LDFLAGS_UNIXCOMMON) -ldl -framework IOKit $(SDLCONFIG_STATICLIBS) ../../../SDLMain.m
234
235
236 ##### SunOS specific variables #####
237
238 CFLAGS_SUNOS=-I/usr/lib/oss/include -DBSD_COMP -DSUNOS
239
240 # Link
241 LDFLAGS_SUNOSSV=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl
242 LDFLAGS_SUNOSSDL=$(LDFLAGS_UNIXCOMMON) -lrt -ldl -lsocket -lnsl $(LDFLAGS_UNIXSDL)
243
244
245 ##### BSD specific variables #####
246
247 # Link
248 LDFLAGS_BSDSV=$(LDFLAGS_UNIXCOMMON) 
249 LDFLAGS_BSDSDL=$(LDFLAGS_UNIXCOMMON) $(LDFLAGS_UNIXSDL)
250
251
252 ##### Win32 specific variables #####
253
254 WINDRES ?= windres
255
256 # Link
257 # see LDFLAGS_WINCOMMON in makefile
258 LDFLAGS_WINSV=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) -mconsole -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG)
259 LDFLAGS_WINSDL=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) $(SDLCONFIG_LIBS) -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG)
260 EXE_WINSV=darkplaces-dedicated.exe
261 EXE_WINSDL=darkplaces-sdl.exe
262 EXE_WINSVNEXUIZ=nexuiz-dedicated.exe
263 EXE_WINSDLNEXUIZ=nexuiz-sdl.exe
264
265 VPATH := ../../../
266
267 ##### Commands #####
268
269 .PHONY : clean clean-profile help \
270          debug profile release \
271          sv-debug sv-profile sv-release \
272          sdl-debug sdl-profile sdl-release
273
274 help:
275         @echo
276         @echo "===== Choose one ====="
277         @echo "* $(MAKE) clean                : delete all files produced by the build except"
278         @echo "                              profiling information"
279         @echo "* $(MAKE) clean-profile        : delete all files produced by the build, including"
280         @echo "                              profiling informaiton"
281         @echo "* $(MAKE) help                 : this help"
282         @echo "* $(MAKE) debug                : make client and server binaries (debug versions)"
283         @echo "* $(MAKE) profile              : make client and server binaries (profile versions)"
284         @echo "* $(MAKE) release              : make client and server binaries (release versions)"
285         @echo "* $(MAKE) release-profile      : make client and server binaries (release versions)"
286         @echo "                              (with profiling optimizations) The profiled"
287         @echo "                              version of the program must have been"
288         @echo "                              previously compiled"
289         @echo "* $(MAKE) nexuiz               : make client and server binaries with nexuiz icon"
290         @echo "                              (release versions)"
291         @echo "* $(MAKE) sv-debug             : make dedicated server (debug version)"
292         @echo "* $(MAKE) sv-profile           : make dedicated server (profile version)"
293         @echo "* $(MAKE) sv-release-profile   : make dedicated server (release profile version)"
294         @echo "* $(MAKE) sv-release           : make dedicated server (release version)"
295         @echo "* $(MAKE) sv-nexuiz            : make dedicated server with nexuiz icon"
296         @echo "                              (release version)"
297         @echo "* $(MAKE) sdl-debug            : make SDL client (debug version)"
298         @echo "* $(MAKE) sdl-profile          : make SDL client (profile version)"
299         @echo "* $(MAKE) sdl-release-profile  : make SDL client (release version)"
300         @echo "* $(MAKE) sdl-release          : make SDL client (release version)"
301         @echo "* $(MAKE) sdl-nexuiz           : make SDL client with nexuiz icon (release version)"
302         @echo
303
304 debug :
305         $(MAKE) $(TARGETS_DEBUG)
306
307 profile :
308         $(MAKE) $(TARGETS_PROFILE)
309
310 release :
311         $(MAKE) $(TARGETS_RELEASE)
312
313 release-profile :
314         $(MAKE) $(TARGETS_RELEASE_PROFILE)
315
316 nexuiz :
317         $(MAKE) $(TARGETS_NEXUIZ)
318
319 sv-debug :
320         $(MAKE) bin-debug \
321                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
322                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
323
324 sv-profile :
325         $(MAKE) bin-profile \
326                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
327                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
328
329 sv-release :
330         $(MAKE) bin-release \
331                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
332                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
333
334 sv-release-profile :
335         $(MAKE) bin-release-profile \
336                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
337                 EXE='$(EXE_SV)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
338
339 sv-nexuiz :
340         $(MAKE) bin-release \
341                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
342                 EXE='$(EXE_SVNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_SERVER)' LDFLAGS_COMMON='$(LDFLAGS_SV)' LEVEL=1
343
344 sdl-debug :
345         $(MAKE) bin-debug \
346                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
347                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
348
349 sdl-profile :
350         $(MAKE) bin-profile \
351                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
352                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
353
354 sdl-release :
355         $(MAKE) bin-release \
356                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
357                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
358
359 sdl-release-profile :
360         $(MAKE) bin-release-profile \
361                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
362                 EXE='$(EXE_SDL)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
363
364 sdl-nexuiz :
365         $(MAKE) bin-release \
366                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
367                 EXE='$(EXE_SDLNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' CFLAGS_SDL='$(SDLCONFIG_CFLAGS)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
368
369 bin-debug :
370         $(CHECKLEVEL1)
371         @echo
372         @echo '========== $(EXE) (debug) =========='
373         $(MAKE) prepare BUILD_DIR=build-obj/debug/$(EXE)
374         $(MAKE) -C build-obj/debug/$(EXE) $(EXE) \
375                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
376                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_DEBUG) $(OPTIM_DEBUG)'\
377                 LDFLAGS='$(LDFLAGS_DEBUG) $(LDFLAGS_COMMON)' LEVEL=2
378
379 bin-profile :
380         $(CHECKLEVEL1)
381         @echo
382         @echo '========== $(EXE) (profile) =========='
383         $(MAKE) prepare BUILD_DIR=build-obj/profile/$(EXE)
384         $(MAKE) -C build-obj/profile/$(EXE) $(EXE) \
385                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
386                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_PROFILE) $(OPTIM_RELEASE)'\
387                 LDFLAGS='$(LDFLAGS_PROFILE) $(LDFLAGS_COMMON)' LEVEL=2
388
389 bin-release :
390         $(CHECKLEVEL1)
391         @echo
392         @echo '========== $(EXE) (release) =========='
393         $(MAKE) prepare BUILD_DIR=build-obj/release/$(EXE)
394         $(MAKE) -C build-obj/release/$(EXE) $(EXE) \
395                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
396                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE) $(OPTIM_RELEASE)'\
397                 LDFLAGS='$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)' LEVEL=2
398         $(STRIP) $(EXE)
399
400 bin-release-profile :
401         $(CHECKLEVEL1)
402         @echo
403         @echo '========== $(EXE) (release) =========='
404         $(MAKE) prepare BUILD_DIR=build-obj/release-profile/$(EXE)
405         $(MAKE) -C build-obj/release-profile/$(EXE) $(EXE) \
406                 DP_MAKE_TARGET=$(DP_MAKE_TARGET) \
407                 CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_FEATURES) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE_PROFILE) $(OPTIM_RELEASE)'\
408                 LDFLAGS='$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)' LEVEL=2
409         $(STRIP) $(EXE)
410
411 prepare :
412         $(CMD_MKDIR) $(BUILD_DIR)
413         $(CMD_CP) makefile.inc $(BUILD_DIR)/
414         $(CMD_CP) $(MAKEFILE) $(BUILD_DIR)/
415
416 #this checks USEODE when compiling so it needs the ODE flags as well
417 prvm_cmds.o: prvm_cmds.c
418         $(CHECKLEVEL2)
419         $(DO_CC) $(CFLAGS_ODE)
420
421 world.o: world.c
422         $(CHECKLEVEL2)
423         $(DO_CC) $(CFLAGS_ODE)
424
425 vid_glx.o: vid_glx.c
426         $(CHECKLEVEL2)
427         $(DO_CC) -I/usr/X11R6/include
428
429 keysym2ucs.o: keysym2ucs.c
430         $(CHECKLEVEL2)
431         $(DO_CC) -I/usr/X11R6/include
432
433 crypto.o: crypto.c
434         $(CHECKLEVEL2)
435         $(DO_CC) $(CFLAGS_CRYPTO) $(CFLAGS_CRYPTO_RIJNDAEL)
436
437 mod_skeletal_animatevertices_sse.o: mod_skeletal_animatevertices_sse.c
438         $(CHECKLEVEL2)
439         $(DO_CC) $(CFLAGS_SSE)
440
441 darkplaces.o: %.o : %.rc
442         $(CHECKLEVEL2)
443         $(WINDRES) -o $@ $<
444
445 nexuiz.o: %.o : %.rc
446         $(CHECKLEVEL2)
447         $(WINDRES) -o $@ $<
448
449 .c.o:
450         $(CHECKLEVEL2)
451         $(DO_CC)
452
453 $(EXE_SV): $(OBJ_SV) $(OBJ_ICON)
454         $(CHECKLEVEL2)
455         $(DO_LD)
456
457 $(EXE_SDL): $(OBJ_SDL) $(OBJ_ICON)
458         $(CHECKLEVEL2)
459         $(DO_LD)
460
461 $(EXE_SVNEXUIZ): $(OBJ_SV) $(OBJ_ICON_NEXUIZ)
462         $(CHECKLEVEL2)
463         $(DO_LD)
464
465 $(EXE_SDLNEXUIZ): $(OBJ_SDL) $(OBJ_ICON_NEXUIZ)
466         $(CHECKLEVEL2)
467         $(DO_LD)
468
469 clean:
470         -$(CMD_RM) $(EXE_SV)
471         -$(CMD_RM) $(EXE_SDL)
472         -$(CMD_RM) $(EXE_SVNEXUIZ)
473         -$(CMD_RM) $(EXE_SDLNEXUIZ)
474         -$(CMD_RM) *.o
475         -$(CMD_RM) *.d
476         -$(CMD_RM) build-obj/
477
478 clean-profile: clean
479         -$(CMD_RM) *.gcda
480         -$(CMD_RM) *.gcno