diff options
| author | Alan Conway <aconway@apache.org> | 2006-11-09 21:55:34 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2006-11-09 21:55:34 +0000 |
| commit | c33f3d8550b9b4455ad6ca8a2327a7bd9d6f7db1 (patch) | |
| tree | bb5d68281986eb1664c227d15f303664a65d5e03 /cpp/Makefile | |
| parent | 76fb78a8495b6cd48c633e8b6219b29761133d82 (diff) | |
| download | qpid-python-c33f3d8550b9b4455ad6ca8a2327a7bd9d6f7db1.tar.gz | |
Added POSIX equivalents to APR classes used by clients, inlined trivial calls.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@473087 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/Makefile')
| -rw-r--r-- | cpp/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/cpp/Makefile b/cpp/Makefile index ab542f7086..7cfa29c409 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -51,26 +51,30 @@ $(BUILDDIRS): ## Library rules -LIB_common := $(call LIBFILE,common,1.0) -$(LIB_common): $(call OBJECTS,qpid qpid/framing qpid/sys qpid/$(PLATFORM)) +LIB_common := $(call LIBFILE,common,1.0) +DIRS_common := qpid qpid/framing qpid/sys qpid/$(PLATFORM) +$(LIB_common): $(call OBJECTS, $(DIRS_common)) $(LIB_COMMAND) -LIB_client :=$(call LIBFILE,client,1.0) -$(LIB_client): $(call OBJECTS,qpid/client) $(LIB_common) +LIB_client := $(call LIBFILE,client,1.0) +DIRS_client := qpid/client +$(LIB_client): $(call OBJECTS,$(DIRS_client)) $(LIB_common) $(LIB_COMMAND) -LIB_broker :=$(call LIBFILE,broker,1.0) -$(LIB_broker): $(call OBJECTS,qpid/broker) $(LIB_common) +LIB_broker := $(call LIBFILE,broker,1.0) +DIRS_broker := qpid/broker +$(LIB_broker): $(call OBJECTS,$(DIRS_broker)) $(LIB_common) $(LIB_COMMAND) ## Daemon executable $(BINDIR)/qpidd: $(OBJDIR)/qpidd.o $(LIB_common) $(LIB_broker) mkdir -p $(dir $@) - $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) -lapr-1 $^ + $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $^ all-nogen: $(BINDIR)/qpidd ## Unit tests. UNITTEST_SRC:=$(shell find test/unit -name *Test.cpp) +UNITTEST_SRC:=$(filter-out test/unit/qpid/$(IGNORE)/%,$(UNITTEST_SRC)) UNITTESTS:=$(UNITTEST_SRC:test/unit/%.cpp=$(TESTDIR)/%.so) unittest: all @@ -100,7 +104,7 @@ endef $(foreach dir,$(SRCDIRS),$(eval $(call CPPRULE,$(dir)))) # Unit test plugin libraries. -$(TESTDIR)/%Test.so: test/unit/%Test.cpp $(LIB_common) $(LIB_client) +$(TESTDIR)/%Test.so: test/unit/%Test.cpp $(LIB_common) $(LIB_broker) mkdir -p $(dir $@) $(CXX) -shared -o $@ $< $(CXXFLAGS) -Itest/include $(LDFLAGS) -lcppunit $(LIB_common) $(LIB_broker) @@ -111,6 +115,7 @@ $(TESTDIR)/%: test/client/%.cpp $(LIB_common) $(LIB_client) CLIENT_TEST_SRC := $(wildcard test/client/*.cpp) CLIENT_TEST_EXE := $(CLIENT_TEST_SRC:test/client/%.cpp=$(TESTDIR)/%) all-nogen: $(CLIENT_TEST_EXE) +client: $(CLIENT_TEST_EXE) ## include dependencies DEPFILES:=$(wildcard $(OBJDIR)/*.d $(OBJDIR)/*/*.d $(OBJDIR)/*/*/*.d) |
