initial load of upstream version 1.06.32
[xmlrpc-c] / lib / expat / xmlparse / Makefile
1 ifeq ($(SRCDIR)x,x)
2 SRCDIR = $(CURDIR)/../../..
3 endif
4 SUBDIR = lib/expat/xmlparse
5 # BLDDIR is for use in places where a symbolic link won't work.
6 # BUILDDIR is for places in Makefile.common that can use the 'blddir'
7 # symbolic link (but in other directories, doesn't).
8 BLDDIR = ../../..
9 BUILDDIR = blddir
10 VPATH = .:$(SRCDIR)
11
12 XMLTOKDIR = ../xmltok
13 UTILDIR = $(SRCDIR)/lib/util
14
15 include $(BLDDIR)/Makefile.config
16
17 default: all
18
19 all: libxmlrpc_xmlparse.la
20
21 LIBXMLRPC_XMLPARSE_OBJS = xmlparse.lo
22
23 INCLUDES = -Iblddir -I$(SRCDIR) -I$(UTILDIR)/include -I$(XMLTOKDIR)
24
25 LDFLAGS = $(LADD)
26
27 LIBLDFLAGS = $(LDFLAGS_VERSINFO) -rpath $(LIBINST_DIR) $(LADD)
28
29 libxmlrpc_xmlparse.la: $(LIBXMLRPC_XMLPARSE_OBJS)
30         $(LIBTOOL) --mode=link $(CCLD) -o $@ $(LIBLDFLAGS) $^
31
32 CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
33
34 $(LIBXMLRPC_XMLPARSE_OBJS):%.lo:%.c
35         $(LIBTOOL) --mode=compile $(CC) -c $(INCLUDES) $(CFLAGS) $<
36
37 LTLIBRARIES_TO_INSTALL = libxmlrpc_xmlparse.la
38
39 .PHONY: install
40 install: install-common
41
42 .PHONY: clean distclean
43 clean: clean-common
44
45 distclean: clean distclean-common
46
47 .PHONY: dep
48 dep: dep-common
49
50 # This 'Makefile.common' dependency makes sure the symlinks get built before
51 # this make file is used for anything.
52
53 $(SRCDIR)/Makefile.common: srcdir blddir
54
55 include $(SRCDIR)/Makefile.common
56
57 include Makefile.depend