2
0

Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/wininet_transport
  8. include $(BLDDIR)/config.mk
  9. default: all
  10. .PHONY: all
  11. all: xmlrpc_wininet_transport.o xmlrpc_wininet_transport.osh
  12. # Rules for the above dependencies are in common.mk,
  13. # courtesy of TARGET_MODS.
  14. TARGET_MODS = xmlrpc_wininet_transport
  15. OMIT_WININET_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. INCLUDES = \
  21. -I$(BLDDIR) \
  22. -I$(BLDDIR)/include \
  23. -Isrcdir/include \
  24. -Isrcdir/lib/util/include \
  25. .PHONY: clean
  26. clean: clean-common
  27. .PHONY: distclean
  28. distclean: clean distclean-common
  29. .PHONY: tags
  30. tags: TAGS
  31. .PHONY: distdir
  32. distdir:
  33. .PHONY: install
  34. install:
  35. .PHONY: dep
  36. dep: dep-common
  37. include depend.mk
  38. # Need this dependency for those who don't use depend.mk.
  39. # Without it, version.h doesn't get created.
  40. xmlrpc_wininet_transport.o xmlrpc_wininet_transport.osh: version.h