]> git.sur5r.net Git - cc65/commitdiff
Replaced three function calls with one.
authorOliver Schmidt <ol.sc@web.de>
Thu, 2 May 2013 21:57:26 +0000 (23:57 +0200)
committerOliver Schmidt <ol.sc@web.de>
Thu, 2 May 2013 21:57:26 +0000 (23:57 +0200)
src/Makefile

index bb09a80e3dcfb76020047c85480aff30eb5704b4..41909a6c27fef240a6871bc748c9db2607559b0f 100644 (file)
@@ -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)