1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

Make use of single character variable syntax for the formal parameter variable.

This commit is contained in:
Oliver Schmidt 2013-05-04 11:59:42 +02:00
parent 151cadf019
commit 1c962f73f5

View File

@ -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