2 SRCDIR = $(CURDIR)/../../..
5 include $(SRCDIR)/Makefile.config
7 # I can't figure out what XML_BYTE_ORDER is, but it doesn't look like the
8 # code has ever defined it. That means it's treated like 0 in #if. Since
9 # we started using the Gcc -Wundef option, that generates a warning, so
10 # se set it explicitly to 0 here.
12 CFLAGS = $(CFLAGS_COMMON) -DXML_BYTE_ORDER=0 $(CFLAGS_PERSONAL) $(CADD)
14 LIBLDFLAGS = $(LDFLAGS_VERSINFO) -rpath $(LIBINST_DIR) $(LADD)
16 INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/lib/util/include
20 include $(SRCDIR)/Makefile.common
23 all: libxmlrpc_xmltok.la
30 distclean: clean distclean-common
39 install: install-common
44 LTLIBRARIES_TO_INSTALL = libxmlrpc_xmltok.la
46 LIBXMLRPC_XMLTOK_OBJS = xmltok.lo xmlrole.lo
48 libxmlrpc_xmltok.la: $(LIBXMLRPC_XMLTOK_OBJS)
49 $(LIBTOOL) --mode=link $(CCLD) -o $@ $(LIBLDFLAGS) $^
51 $(LIBXMLRPC_XMLTOK_OBJS):%.lo:%.c
52 $(LIBTOOL) --mode=compile $(CC) -c $(INCLUDES) $(LIBXML_INCLUDES) \
55 GENNMTAB = ../gennmtab/gennmtab
57 nametab.h: $(GENNMTAB)
59 $(GENNMTAB) >$@ || (rm -f $@ || false)
62 $(MAKE) -C $(dir $@) $(notdir $@)
66 include Makefile.depend