Michael Jerris 3abb7730b2 add xmlrpc-c 1.03.14 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3772 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-21 03:57:49 +00:00

67 lines
1.3 KiB
Makefile

ifeq ($(SRCDIR)x,x)
SRCDIR = $(CURDIR)/../../..
endif
include $(SRCDIR)/Makefile.config
# I can't figure out what XML_BYTE_ORDER is, but it doesn't look like the
# code has ever defined it. That means it's treated like 0 in #if. Since
# we started using the Gcc -Wundef option, that generates a warning, so
# se set it explicitly to 0 here.
CFLAGS = $(CFLAGS_COMMON) -DXML_BYTE_ORDER=0 $(CFLAGS_PERSONAL) $(CADD)
LIBLDFLAGS = $(LDFLAGS_VERSINFO) -rpath $(LIBINST_DIR) $(LADD)
INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/lib/util/include
default: all
include $(SRCDIR)/Makefile.common
.PHONY: all
all: libxmlrpc_xmltok.la
.PHONY: clean
clean: clean-common
rm -f nametab.h
.PHONY: distclean
distclean: clean distclean-common
.PHONY: tags
tags: TAGS
.PHONY: distdir
distdir:
.PHONY: install
install: install-common
.PHONY: dep
dep: dep-common
LTLIBRARIES_TO_INSTALL = libxmlrpc_xmltok.la
LIBXMLRPC_XMLTOK_OBJS = xmltok.lo xmlrole.lo
libxmlrpc_xmltok.la: $(LIBXMLRPC_XMLTOK_OBJS)
$(LIBTOOL) --mode=link $(CCLD) -o $@ $(LIBLDFLAGS) $^
$(LIBXMLRPC_XMLTOK_OBJS):%.lo:%.c
$(LIBTOOL) --mode=compile $(CC) -c $(INCLUDES) $(LIBXML_INCLUDES) \
$(CFLAGS) $<
GENNMTAB = ../gennmtab/gennmtab
nametab.h: $(GENNMTAB)
rm -f $@
$(GENNMTAB) >$@ || rm -f $@
$(GENNMTAB):
$(MAKE) -C $(dir $@) $(notdir $@)
xmltok.lo: nametab.h
include Makefile.depend