X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2FMakefile;h=e42d5370f7c73fb0b4170e001fe3a45b4d48cd72;hp=0f98d356035c7cb823d146003df6ddd29906c9bc;hb=34dc736661e297f75d604335a7d85ea34d14c55d;hpb=30eb586d06bc4d1ee7388dced1c20e530292aa93 diff --git a/src/Makefile b/src/Makefile index 0f98d356..e42d5370 100644 --- a/src/Makefile +++ b/src/Makefile @@ -58,26 +58,19 @@ endif # configuring target # ----------------------------------------------------------------------------- -ifndef TARGET # auto-detect compiling for SDL or SDL2 +ifndef TARGET # auto-detect compiling for SDL2 SDL_VERSION := $(shell sdl2-config --version 2> /dev/null) ifdef SDL_VERSION TARGET = sdl2 else - SDL_VERSION := $(shell sdl-config --version 2> /dev/null) - ifdef SDL_VERSION - TARGET = sdl - else - $(error SDL/SDL2 library not found) - endif + $(error SDL2 library not found) endif endif # $(info Using SDL version $(SDL_VERSION) [TARGET == $(TARGET)]) ifeq ($(TARGET),sdl) # compiling for SDL target -SYS_CFLAGS = -DTARGET_SDL $(shell sdl-config --cflags) -SDL_LIBS = -lSDL_image -lSDL_mixer -lSDL_net -SYS_LDFLAGS = $(SDL_LIBS) $(shell sdl-config --libs) + $(error SDL library version 1.2 not supported anymore) endif ifeq ($(TARGET),sdl2) # compiling for SDL2 target @@ -121,7 +114,7 @@ OPTIONS = -O3 -Wall endif CFLAGS = $(OPTIONS) $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG) -LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm +LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm -lz SRCS = main.c \