From: Oliver Schmidt
Date: Sat, 4 May 2013 09:59:42 +0000 (+0200)
Subject: Make use of single character variable syntax for the formal parameter variable.
X-Git-Tag: V2.14~32
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1c962f73f5491933865d5b552503ab29bf283f23;p=cc65
Make use of single character variable syntax for the formal parameter variable.
---
diff --git a/src/Makefile b/src/Makefile
index 41909a6c2..e62886c73 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -60,14 +60,14 @@ endef
define OBJS_template
-$(1)_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $(1)/*.c))
+$1_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $1/*.c))
-$$($(1)_OBJS): | ../wrk/$(1)
+$$($1_OBJS): | ../wrk/$1
-../wrk/$(1):
+../wrk/$1:
mkdir -p $$@
-DEPS += $$($(1)_OBJS:.o=.d)
+DEPS += $$($1_OBJS:.o=.d)
endef
@@ -75,12 +75,12 @@ endef
define PROG_template
-$$(eval $$(call OBJS_template,$(1)))
+$$(eval $$(call OBJS_template,$1))
-../bin/$(1): $$($(1)_OBJS) ../wrk/common/common.a | ../bin
+../bin/$1: $$($1_OBJS) ../wrk/common/common.a | ../bin
$$(CC) $$(LDFLAGS) -o $$@ $$^ $$(LDLIBS)
-$(1): ../bin/$(1)
+$1: ../bin/$1
endef