2008-05-23 16:56:24 -04:00
|
|
|
ifeq ($(SRCDIR),)
|
|
|
|
updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
|
|
|
|
LIBDIR := $(call updir,$(CURDIR))
|
|
|
|
SRCDIR := $(call updir,$(LIBDIR))
|
|
|
|
BLDDIR := $(SRCDIR)
|
2006-12-20 22:57:49 -05:00
|
|
|
endif
|
2008-05-23 16:56:24 -04:00
|
|
|
SUBDIR := lib/libwww_transport
|
2006-12-20 22:57:49 -05:00
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
include $(BLDDIR)/config.mk
|
|
|
|
|
|
|
|
default: all
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: xmlrpc_libwww_transport.o xmlrpc_libwww_transport.osh
|
|
|
|
|
|
|
|
# Rules for the above dependencies are in common.mk,
|
|
|
|
# courtesy of TARGET_MODS.
|
|
|
|
|
|
|
|
TARGET_MODS = xmlrpc_libwww_transport
|
|
|
|
|
|
|
|
OMIT_LIBWWW_TRANSPORT_RULE=Y
|
|
|
|
|
|
|
|
include $(SRCDIR)/common.mk
|
2006-12-20 22:57:49 -05:00
|
|
|
|
|
|
|
LIBWWW_INCLUDES := $(shell libwww-config --cflags)
|
|
|
|
|
|
|
|
CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
|
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
INCLUDES = \
|
|
|
|
-I$(BLDDIR) \
|
|
|
|
-I$(BLDDIR)/include \
|
|
|
|
-I$(SRCDIR)/include \
|
|
|
|
-I$(SRCDIR)/lib/util/include \
|
2006-12-20 22:57:49 -05:00
|
|
|
$(LIBWWW_INCLUDES)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: clean-common
|
|
|
|
|
|
|
|
.PHONY: distclean
|
|
|
|
distclean: clean distclean-common
|
|
|
|
|
|
|
|
.PHONY: tags
|
|
|
|
tags: TAGS
|
|
|
|
|
|
|
|
.PHONY: distdir
|
|
|
|
distdir:
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
|
|
|
|
.PHONY: dep
|
|
|
|
dep: dep-common
|
|
|
|
|
|
|
|
include Makefile.depend
|
|
|
|
|
2008-05-23 16:56:24 -04:00
|
|
|
# Need this dependency for those who don't use Makefile.depend.
|
|
|
|
# Without it, version.h doesn't get created.
|
|
|
|
xmlrpc_libwww_transport.o xmlrpc_libwww_transport.osh: version.h
|