Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ifeq ($(SRCDIR),)
  2. updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
  3. LIBDIR := $(call updir,$(CURDIR))
  4. SRCDIR := $(call updir,$(LIBDIR))
  5. BLDDIR := $(SRCDIR)
  6. endif
  7. SUBDIR := lib/libwww_transport
  8. include $(BLDDIR)/config.mk
  9. default: all
  10. .PHONY: all
  11. all: xmlrpc_libwww_transport.o xmlrpc_libwww_transport.osh
  12. # Rules for the above dependencies are in common.mk,
  13. # courtesy of TARGET_MODS.
  14. TARGET_MODS = xmlrpc_libwww_transport
  15. OMIT_LIBWWW_TRANSPORT_RULE=Y
  16. include $(SRCDIR)/common.mk
  17. # This 'common.mk' dependency makes sure the symlinks get built before
  18. # this make file is used for anything.
  19. $(SRCDIR)/common.mk: srcdir blddir
  20. LIBWWW_INCLUDES := $(shell libwww-config --cflags)
  21. INCLUDES = \
  22. -I$(BLDDIR) \
  23. -I$(BLDDIR)/include \
  24. -Isrcdir/include \
  25. -Isrcdir/lib/util/include \
  26. $(LIBWWW_INCLUDES)
  27. .PHONY: clean
  28. clean: clean-common
  29. .PHONY: distclean
  30. distclean: clean distclean-common
  31. .PHONY: tags
  32. tags: TAGS
  33. .PHONY: distdir
  34. distdir:
  35. .PHONY: install
  36. install:
  37. .PHONY: dep
  38. dep: dep-common
  39. include depend.mk
  40. # Need this dependency for those who don't use depend.mk.
  41. # Without it, version.h doesn't get created.
  42. xmlrpc_libwww_transport.o xmlrpc_libwww_transport.osh: version.h