initial load of upstream version 1.06.32
[xmlrpc-c] / include / Makefile
1 ifeq ($(SRCDIR)x,x)
2 SRCDIR = $(CURDIR)/..
3 endif
4 SUBDIR = src
5 BUILDDIR = $(SRCDIR)
6 VPATH = .:$(SRCDIR)
7
8 include $(BUILDDIR)/Makefile.config
9
10 default: all
11
12 all: xmlrpc-c/config.h
13
14 xmlrpc-c/config.h:
15         echo "#define XMLRPC_HAVE_WCHAR $(HAVE_WCHAR_H_DEFINE)" >$@
16
17
18 HEADERS_TO_INSTALL = \
19   xmlrpc-c/config.h \
20   xmlrpc-c/util.h \
21   xmlrpc-c/base.h \
22   xmlrpc-c/abyss.h \
23   xmlrpc-c/server.h \
24   xmlrpc-c/server_abyss.h \
25   xmlrpc-c/server_w32httpsys.h \
26   xmlrpc-c/oldxmlrpc.h \
27
28 ifeq ($(ENABLE_CPLUSPLUS),yes)
29   HEADERS_TO_INSTALL += \
30     xmlrpc-c/oldcppwrapper.hpp \
31     xmlrpc-c/girerr.hpp \
32     xmlrpc-c/girmem.hpp \
33     xmlrpc-c/base.hpp \
34     xmlrpc-c/timeout.hpp \
35     xmlrpc-c/xml.hpp \
36     xmlrpc-c/registry.hpp \
37     xmlrpc-c/server_abyss.hpp \
38
39 endif
40
41 HEADERINST_PREFIX = /xmlrpc-c
42
43 ifeq ($(MUST_BUILD_CLIENT),yes)
44   HEADERS_TO_INSTALL += \
45     xmlrpc-c/client.h \
46     xmlrpc-c/transport.h \
47     xmlrpc-c/client_global.h \
48
49   ifeq ($(ENABLE_CPLUSPLUS),yes)
50     HEADERS_TO_INSTALL += \
51       xmlrpc-c/client.hpp \
52       xmlrpc-c/client_transport.hpp \
53       xmlrpc-c/client_simple.hpp \
54
55   endif
56 endif
57 ifeq ($(ENABLE_CGI_SERVER),yes)
58   HEADERS_TO_INSTALL += xmlrpc-c/server_cgi.h
59 endif
60
61 default: all
62
63 all:
64
65 .PHONY: install
66 install: install-common
67
68 .PHONY: clean distclean dep
69 clean:
70 distclean:
71         rm -f xmlrpc-c/config.h
72
73 .PHONY: check
74 check:
75
76 .PHONY: dep
77 dep:
78
79 include $(SRCDIR)/Makefile.common