build: allow several .c files per module
authorMarko Kreen <markokr@gmail.com>
Tue, 15 Feb 2011 06:49:06 +0000 (08:49 +0200)
committerMarko Kreen <markokr@gmail.com>
Tue, 15 Feb 2011 06:49:06 +0000 (08:49 +0200)
Setup.mk
find_modules.sh

index d8584ae0f99f65a9422cc8478c5a3e744705f3df..7549e26481a22a6673cd36aad7883b42bc7a9708 100644 (file)
--- a/Setup.mk
+++ b/Setup.mk
@@ -16,7 +16,7 @@ USUAL_CPPFLAGS = -I$(USUAL_DIR)
 
 USUAL_OBJDIR ?= .
 USUAL_HDRS = $(addprefix $(USUAL_DIR)/usual/, $(addsuffix .h, $(USUAL_MODULES)))
-USUAL_SRCS = $(wildcard $(addprefix $(USUAL_DIR)/usual/, $(addsuffix .c, $(USUAL_MODULES))))
+USUAL_SRCS = $(wildcard $(addprefix $(USUAL_DIR)/usual/, $(addsuffix *.c, $(USUAL_MODULES))))
 USUAL_OBJS = $(addprefix $(USUAL_OBJDIR)/, $(notdir $(USUAL_SRCS:.c=.o)))
 
 # find_modules is slow, so do immediate assignment
index 7a08755684a7c28129e89b15bca48c80113ec737..f0529cad3d9d4b1051a448f2512273eb2d176058 100755 (executable)
@@ -31,7 +31,7 @@ grep_usual() {
 # return module filename globs
 make_pats() {
   for m in "$@"; do
-    echo "$top/usual/$m.[ch]"
+    echo "$top/usual/$m*.[ch]"
   done
 }