From 151cadf0199daeb9bd09c36fc5b3a87c00e64ceb Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Thu, 2 May 2013 23:57:26 +0200
Subject: [PATCH] Replaced three function calls with one.
---
src/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
--
2.39.5