From: Holger Schemel Date: Thu, 20 Oct 2022 14:35:24 +0000 (+0200) Subject: moved compiler flags for analyzing to CFLAGS / LDFLAGS X-Git-Tag: 4.3.3.0~51 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3bd276d072694c0a285d951c00fa5f856c485741;p=rocksndiamonds.git moved compiler flags for analyzing to CFLAGS / LDFLAGS --- diff --git a/src/Makefile b/src/Makefile index 60a43700..bea3ad8a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -147,8 +147,8 @@ SYS_LDFLAGS := $(shell echo $(SYS_LDFLAGS) | \ OPTIONS = -O2 -Wall endif -CFLAGS = $(OPTIONS) $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG) -LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) +CFLAGS = $(OPTIONS) $(ANALYZE) $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG) +LDFLAGS = $(ANALYZE) $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) SRCS = main.c \ @@ -259,7 +259,7 @@ GRAPHICS_DIR = ../graphics all: $(AUTOCONF) libgame_dir game_em_dir game_sp_dir game_mm_dir $(PROGNAME) graphics_dir $(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(COMMIT_HASH_FILE) $(OBJS) $(ICON) - $(CC) $(ANALYZE) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME) + $(CC) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME) ifdef BUILD_DIST $(STRIP) $(PROGNAME) endif @@ -330,7 +330,7 @@ $(ICON): echo "$(ICONBASE) ICON $(ICONBASE).ico" | $(WINDRES) -o $(ICON) .c.o: - $(CC) $(ANALYZE) $(CFLAGS) -c $*.c + $(CC) $(CFLAGS) -c $*.c graphics_dir: @test -f $(GRAPHICS_DIR)/Makefile && $(MAKE) -C $(GRAPHICS_DIR) || true