summaryrefslogtreecommitdiff
path: root/pjlib-util
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2013-01-30 15:23:42 -0600
committerJason Parker <jparker@digium.com>2013-03-11 15:19:15 -0500
commit74ce69c77a8ed993870e6cc22582a1dea8e918e6 (patch)
tree8def2a05c0a230623f415d3ffdef0684ecfcc4f6 /pjlib-util
parent483805f79570115ab95c69698792d238c1719b1b (diff)
Add proper dependency checking, so that parallel builds work.
This also lets you build individual library files, rather than aliases.
Diffstat (limited to 'pjlib-util')
-rw-r--r--pjlib-util/build/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/pjlib-util/build/Makefile b/pjlib-util/build/Makefile
index d2ad65a..6c37979 100644
--- a/pjlib-util/build/Makefile
+++ b/pjlib-util/build/Makefile
@@ -69,12 +69,16 @@ doc:
dep: depend
distclean: realclean
-.PHONY: dep depend pjlib pjlib-test clean realclean distclean
+.PHONY: dep depend clean realclean distclean
+.PHONY: $(TARGETS)
+.PHONY: $(PJLIB_UTIL_LIB) $(UTIL_TEST_EXE)
-pjlib-util:
+pjlib-util: $(PJLIB_UTIL_LIB)
+$(PJLIB_UTIL_LIB):
$(MAKE) -f $(RULES_MAK) APP=PJLIB_UTIL app=pjlib-util $(PJLIB_UTIL_LIB)
-pjlib-util-test: pjlib-util
+pjlib-util-test: $(UTIL_TEST_EXE)
+$(UTIL_TEST_EXE): $(PJLIB_UTIL_LIB)
$(MAKE) -f $(RULES_MAK) APP=UTIL_TEST app=pjlib-util-test $(UTIL_TEST_EXE)
.PHONY: ../lib/pjlib-util.ko