X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2FMakefile;h=0c195c0c65eca673a680d9900ab323a860508675;hp=da2806bb2a3496aa1d4b7c8dcfdcfa55882b1f01;hb=1d35cc6d159fbdcfebcfc0d7b361944f8da20062;hpb=f0c9ece87ae8b4c00974d1d5c11a2147147a1d08 diff --git a/src/Makefile b/src/Makefile index da2806bb..0c195c0c 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 @@ -107,7 +100,8 @@ DEBUG = -DDEBUG -g # OPTIONS = $(DEBUG) -Wall # only for debugging purposes # OPTIONS = $(DEBUG) -O3 -Wall # only for debugging purposes -OPTIONS = $(DEBUG) -Wall # only for debugging purposes +# OPTIONS = $(DEBUG) -Wall # only for debugging purposes +OPTIONS = $(DEBUG) -Wall -Wstrict-prototypes -Wmissing-prototypes # OPTIONS = $(DEBUG) -Wall -ansi -pedantic # only for debugging purposes # OPTIONS = -O3 -Wall -ansi -pedantic # OPTIONS = -O3 -Wall