X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2FMakefile;h=0456b906a58798e4a7c5728b791ce757abe66e54;hb=HEAD;hp=bea3ad8a11476e7d9c8874b2a3fc122589c6685b;hpb=3bd276d072694c0a285d951c00fa5f856c485741;p=rocksndiamonds.git diff --git a/src/Makefile b/src/Makefile index bea3ad8a..b7289d01 100644 --- a/src/Makefile +++ b/src/Makefile @@ -44,8 +44,6 @@ DEBUGGER = gdb -batch -ex "run" -ex "bt" PROGBASE = rocksndiamonds PROGNAME = ../$(PROGBASE) -EDITION ?= default - # ----------------------------------------------------------------------------- # configuring platform @@ -72,6 +70,7 @@ endif ifeq ($(shell uname -s),Darwin) # compiling on Mac OS X DEBUGGER = lldb --batch -o "run" -k "bt" -k "quit" +SANITIZING_FLAGS = -fsanitize=undefined ifdef BUILD_DIST # distribution build MAC_TARGET_VERSION_MIN = 10.7 EXTRA_FLAGS_MAC = -mmacosx-version-min=$(MAC_TARGET_VERSION_MIN) @@ -81,6 +80,11 @@ MACOSX_DEPLOYMENT_TARGET = $MAC_TARGET_VERSION_MIN endif endif +ifeq ($(shell uname -s),OS/2) # compiling on OS/2 +PROGNAME = ../$(PROGBASE).exe +EXTRA_LDFLAGS = -Zomf -Zbin-files -Zmap -lcx -Zhigh-mem +endif + # ----------------------------------------------------------------------------- # configuring target @@ -127,11 +131,13 @@ CONFIG = $(CONFIG_BASE_PATH) $(JOYSTICK) DEBUG = -DDEBUG -g # ANALYZE = $(PROFILING_FLAGS) +# ANALYZE = $(SANITIZING_FLAGS) # OPTIONS = $(DEBUG) -Wall # only for debugging purposes # OPTIONS = $(DEBUG) -O2 -Wall # only for debugging purposes # OPTIONS = $(DEBUG) -Wall # only for debugging purposes OPTIONS = $(DEBUG) -Wall -Wstrict-prototypes -Wmissing-prototypes +# OPTIONS = $(DEBUG) -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes # OPTIONS = $(DEBUG) -Wall -ansi -pedantic # only for debugging purposes # OPTIONS = -O2 -Wall -ansi -pedantic # OPTIONS = -O2 -Wall @@ -242,10 +248,10 @@ RNDLIBS = $(LIBGAME) $(GAME_EM) $(GAME_SP) $(GAME_MM) AUTOCONF = conf_gfx.h conf_snd.h conf_mus.h ICONBASE = windows_icon -ICON_BASEPATH = ../Special/Icons/windows_icons +ICON_BASEPATH = ../build-projects/windows/icons ifeq ($(PLATFORM_BASE),cross-win) -ICON_PATH = $(ICON_BASEPATH)/$(EDITION) +ICON_PATH = $(ICON_BASEPATH) ICON = $(ICONBASE).o endif @@ -325,7 +331,6 @@ $(COMMIT_HASH_FILE): $(SRCS) $(RNDLIBS) @$(MAKE) conf-hash $(ICON): -# $(CONVERT) $(ICON32X32) $(CONVERT_ICON_ARGS) $(ICONBASE).ico $(CONVERT) $(ICON_PATH)/*.png $(CONVERT_ICON_ARGS) $(ICONBASE).ico echo "$(ICONBASE) ICON $(ICONBASE).ico" | $(WINDRES) -o $(ICON)