From 74ce69c77a8ed993870e6cc22582a1dea8e918e6 Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Wed, 30 Jan 2013 15:23:42 -0600 Subject: Add proper dependency checking, so that parallel builds work. This also lets you build individual library files, rather than aliases. --- pjlib/build/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'pjlib') diff --git a/pjlib/build/Makefile b/pjlib/build/Makefile index a36f5f4..272206d 100644 --- a/pjlib/build/Makefile +++ b/pjlib/build/Makefile @@ -77,17 +77,21 @@ depend: ../include/pj/config_site.h echo '$(TEST_EXE): $(PJLIB_LIB)' >> .pjlib-test-$(TARGET_NAME).depend -.PHONY: dep depend pjlib pjlib-test clean realclean distclean +.PHONY: dep depend clean realclean distclean +.PHONY: $(TARGETS) +.PHONY: $(PJLIB_LIB) $(TEST_EXE) dep: depend -pjlib: ../include/pj/config_site.h +pjlib: $(PJLIB_LIB) +$(PJLIB_LIB): ../include/pj/config_site.h $(MAKE) -f $(RULES_MAK) APP=PJLIB app=pjlib $(PJLIB_LIB) ../include/pj/config_site.h: touch ../include/pj/config_site.h - -pjlib-test: pjlib + +pjlib-test: $(TEST_EXE) +$(TEST_EXE): $(PJLIB_LIB) $(MAKE) -f $(RULES_MAK) APP=TEST app=pjlib-test $(TEST_EXE) .PHONY: ../lib/pjlib.ko -- cgit v1.2.3