commit 5e34c88

Michael Forney  ·  2014-05-21 02:28:02 +0000 UTC
parent 2fd9024
Use a pattern-specific dir variable so we can use it in the rule definitions
1 files changed,  +4, -2
+4, -2
 1@@ -9,11 +9,13 @@ install-$(dir):
 2 .deps/$(dir):
 3 	@mkdir -p "$@"
 4 
 5+$(dir)/%: dir := $(dir)
 6+
 7 $(dir)/%.o: $(dir)/%.c | .deps/$(dir)
 8-	$(compile) $($(@D)_CFLAGS) $($(@D)_PACKAGE_CFLAGS)
 9+	$(compile) $($(dir)_CFLAGS) $($(dir)_PACKAGE_CFLAGS)
10 
11 $(dir)/%.lo: $(dir)/%.c | .deps/$(dir)
12-	$(compile) -fPIC $($(@D)_CFLAGS) $($(@D)_PACKAGE_CFLAGS)
13+	$(compile) -fPIC $($(dir)_CFLAGS) $($(dir)_PACKAGE_CFLAGS)
14 
15 ifdef $(dir)_PACKAGES
16     ifndef $(dir)_PACKAGE_CFLAGS