initial load of upstream version 1.06.32
[xmlrpc-c] / lib / expat / xmltok / Makefile
1 ifeq ($(SRCDIR)x,x)
2 SRCDIR = $(CURDIR)/../../..
3 endif
4
5 include $(SRCDIR)/Makefile.config
6
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.
11
12 CFLAGS = $(CFLAGS_COMMON) -DXML_BYTE_ORDER=0 $(CFLAGS_PERSONAL) $(CADD)
13
14 LIBLDFLAGS = $(LDFLAGS_VERSINFO) -rpath $(LIBINST_DIR) $(LADD)
15
16 INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/lib/util/include
17
18 default: all
19
20 include $(SRCDIR)/Makefile.common
21
22 .PHONY: all
23 all: libxmlrpc_xmltok.la
24
25 .PHONY: clean
26 clean: clean-common
27         rm -f nametab.h
28
29 .PHONY: distclean
30 distclean: clean distclean-common
31
32 .PHONY: tags
33 tags: TAGS
34
35 .PHONY: distdir
36 distdir:
37
38 .PHONY: install
39 install: install-common
40
41 .PHONY: dep
42 dep: dep-common
43
44 LTLIBRARIES_TO_INSTALL = libxmlrpc_xmltok.la
45
46 LIBXMLRPC_XMLTOK_OBJS = xmltok.lo xmlrole.lo
47
48 libxmlrpc_xmltok.la: $(LIBXMLRPC_XMLTOK_OBJS)
49         $(LIBTOOL) --mode=link $(CCLD) -o $@ $(LIBLDFLAGS) $^
50
51 $(LIBXMLRPC_XMLTOK_OBJS):%.lo:%.c
52         $(LIBTOOL) --mode=compile $(CC) -c $(INCLUDES) $(LIBXML_INCLUDES) \
53           $(CFLAGS) $<
54
55 GENNMTAB = ../gennmtab/gennmtab
56
57 nametab.h: $(GENNMTAB)
58         rm -f $@
59         $(GENNMTAB) >$@ || (rm -f $@ || false)
60
61 $(GENNMTAB):
62         $(MAKE) -C $(dir $@) $(notdir $@)
63
64 xmltok.lo: nametab.h
65
66 include Makefile.depend