all:
@$(MAKE_CMD)
-sdl:
- @$(MAKE_CMD) TARGET=sdl
-
-sdl2:
- @$(MAKE_CMD) TARGET=sdl2
-
-mac:
- @$(MAKE_CMD) PLATFORM=macosx
-
cross-win32:
@PATH=$(CROSS_PATH_WIN32)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win32
# configuring platform
# -----------------------------------------------------------------------------
-ifeq ($(PLATFORM),macosx) # compiling on Mac OS X
-EXTRA_LDFLAGS = -lstdc++
-override PLATFORM = unix
-endif
-
ifeq ($(PLATFORM),unix) # compiling on Unix/Linux (generic)
PROFILING_FLAGS = -pg
endif
# $(info Using SDL version $(SDL_VERSION) [TARGET == $(TARGET)])
-ifeq ($(TARGET),sdl) # compiling for SDL target
- $(error SDL library version 1.2 not supported anymore)
-endif
-
ifeq ($(TARGET),sdl2) # compiling for SDL2 target
SYS_CFLAGS = -DTARGET_SDL2 $(shell sdl2-config --cflags)
SDL_LIBS = -lSDL2_image -lSDL2_mixer -lSDL2_net