From: Oliver Schmidt Date: Thu, 2 May 2013 21:57:26 +0000 (+0200) Subject: Replaced three function calls with one. X-Git-Tag: V2.14~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=151cadf0199daeb9bd09c36fc5b3a87c00e64ceb;p=cc65 Replaced three function calls with one. --- diff --git a/src/Makefile b/src/Makefile index bb09a80e3..41909a6c2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,6 +38,8 @@ uninstall: .PHONY: all $(PROGS) mostlyclean clean install uninstall +.SUFFIXES: + ########## define INSTALL_recipe @@ -58,7 +60,7 @@ endef define OBJS_template -$(1)_OBJS := $$(addprefix ../wrk/,$$(addsuffix .o,$$(basename $$(wildcard $(1)/*.c)))) +$(1)_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $(1)/*.c)) $$($(1)_OBJS): | ../wrk/$(1)