CPUOPTIMIZATIONS?=-fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math
# NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
-SDL_CONFIG?=sdl-config
-SDL2_CONFIG?=sdl2-config
+SDL_CONFIG?=sdl2-config
SDLCONFIG_UNIXCFLAGS?=`$(SDL_CONFIG) --cflags`
SDLCONFIG_UNIXCFLAGS_X11?=
SDLCONFIG_UNIXLIBS?=`$(SDL_CONFIG) --libs`
SDLCONFIG_UNIXLIBS_X11?=-lX11
SDLCONFIG_UNIXSTATICLIBS?=`$(SDL_CONFIG) --static-libs`
SDLCONFIG_UNIXSTATICLIBS_X11?=-lX11
-SDLCONFIG_MACOSXCFLAGS=-I/Library/Frameworks/SDL.framework/Headers -I$(HOME)/Library/Frameworks/SDL.framework/Headers
-SDLCONFIG_MACOSXLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
-SDLCONFIG_MACOSXSTATICLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
+SDLCONFIG_MACOSXCFLAGS=-I/Library/Frameworks/SDL2.framework/Headers -I$(HOME)/Library/Frameworks/SDL2.framework/Headers
+SDLCONFIG_MACOSXLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL2 -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
+SDLCONFIG_MACOSXSTATICLIBS=-F$(HOME)/Library/Frameworks/ -framework SDL2 -framework Cocoa $(SDLCONFIG_MACOSXCFLAGS)
STRIP?=strip
@echo "* $(MAKE) sdl-release-profile : make SDL client (release version)"
@echo "* $(MAKE) sdl-release : make SDL client (release version)"
@echo "* $(MAKE) sdl-nexuiz : make SDL client with nexuiz icon (release version)"
- @echo "* $(MAKE) sdl2-debug : make SDL2 client (debug version)"
- @echo "* $(MAKE) sdl2-profile : make SDL2 client (profile version)"
- @echo "* $(MAKE) sdl2-release-profile : make SDL2 client (release profile version)"
- @echo "* $(MAKE) sdl2-release : make SDL2 client (release version)"
- @echo "* $(MAKE) sdl2-nexuiz : make SDL2 client with nexuiz icon (release version)"
@echo
debug :
DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
EXE='$(EXE_SDLNEXUIZ)' CFLAGS_FEATURES='$(CFLAGS_CLIENT)' LDFLAGS_COMMON='$(LDFLAGS_SDL)' LEVEL=1
-sdl2-debug :
- $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-debug
-
-sdl2-profile :
- $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-profile
-
-sdl2-release :
- $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-release
-
-sdl2-release-profile :
- $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-release-profile
-
-sdl2-nexuiz :
- $(MAKE) SDL_CONFIG=$(SDL2_CONFIG) sdl-nexuiz
-
bin-debug :
$(CHECKLEVEL1)
@echo