From: Christian Groessler Date: Wed, 18 Dec 2013 20:54:14 +0000 (+0100) Subject: - Add a way to give additional compiler flags with USER_CFLAGS. X-Git-Tag: V2.15~206^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=418209f9232c587165ec4d07f5f3dcf435dc9568;p=cc65 - Add a way to give additional compiler flags with USER_CFLAGS. - Add possibility to specify an file name extension for generated executables (PROGEXT). --- diff --git a/src/Makefile b/src/Makefile index 3d0463147..1a55f1fb2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -29,7 +29,8 @@ endif CFLAGS += -MMD -MP -O -std=c89 -I common \ -Wall -Wextra -Wno-char-subscripts -Werror \ -DCA65_INC=$(CA65_INC) -DCC65_INC=$(CC65_INC) \ - -DLD65_LIB=$(LD65_LIB) -DLD65_OBJ=$(LD65_OBJ) -DLD65_CFG=$(LD65_CFG) + -DLD65_LIB=$(LD65_LIB) -DLD65_OBJ=$(LD65_OBJ) -DLD65_CFG=$(LD65_CFG) \ + $(USER_CFLAGS) LDLIBS += -lm @@ -88,10 +89,10 @@ define PROG_template $$(eval $$(call OBJS_template,$1)) -../bin/$1: $$($1_OBJS) ../wrk/common/common.a | ../bin +../bin/$1$(PROGEXT): $$($1_OBJS) ../wrk/common/common.a | ../bin $$(CC) $$(LDFLAGS) -o $$@ $$^ $$(LDLIBS) -$1: ../bin/$1 +$1: ../bin/$1$(PROGEXT) endef