common.mk 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # We try to get Xmlrpc-c directories early in the link library search
  2. # path to avert problems with other versions of Xmlrpc-c being in more
  3. # general directories (such as /usr/local/lib) that are added to the
  4. # search path by curl-config, etc. That's why we separate the -L from
  5. # the corresponding -l.
  6. #
  7. # Note that in a properly configured system, curl-config, etc. do not
  8. # generate -L options for general directories.
  9. CLIENT_LDLIBS = -Lblddir/src -Lblddir/lib/libutil
  10. CLIENT_LDLIBS += -lxmlrpc_client -lxmlrpc -lxmlrpc_util
  11. ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes)
  12. CLIENT_LDLIBS += $(shell libwww-config --libs)
  13. endif
  14. ifeq ($(MUST_BUILD_CURL_CLIENT),yes)
  15. CLIENT_LDLIBS += $(shell curl-config --libs)
  16. endif
  17. ifeq ($(MUST_BUILD_WININET_CLIENT),yes)
  18. CLIENT_LDLIBS += $(shell wininet-config --libs)
  19. endif
  20. CLIENT_LDLIBS += $(LDLIBS_XML)
  21. CLIENTPP_LDLIBS = -Lblddir/src/cpp
  22. CLIENTPP_LDLIBS += -lxmlrpc_client++ -lxmlrpc_packetsocket -lxmlrpc++
  23. include $(SRCDIR)/common.mk
  24. ifneq ($(OMIT_LIB_RULE),Y)
  25. blddir/tools/lib/dumpvalue.o: FORCE
  26. $(MAKE) -C $(dir $@) -f $(SRCDIR)/tools/lib/Makefile $(notdir $@)
  27. endif
  28. .PHONY: install
  29. install: install-common
  30. .PHONY: check
  31. check:
  32. .PHONY: FORCE
  33. FORCE: