initial load of upstream version 1.06.32
[xmlrpc-c] / lib / curl_transport / Makefile
1 ifeq ($(SRCDIR)x,x)
2 SRCDIR = $(CURDIR)/../..
3 BUILDDIR = ../..
4 endif
5
6 include $(SRCDIR)/Makefile.config
7
8 CURL_INCLUDES := $(shell curl-config --cflags)
9 # We expect that curl-config --cflags just gives us -I options, because
10 # we need just the -I options for 'make dep'.  Plus, it's scary to think
11 # of what any other compiler flag would do to our compile.
12
13 CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
14 LDFLAGS = $(LADD)
15
16 INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/include -I$(SRCDIR)/lib/util/include \
17   $(CURL_INCLUDES)
18
19 default: all
20
21 .PHONY: all
22 all: xmlrpc_curl_transport.lo
23
24 .PHONY: clean
25 clean: clean-common
26
27 .PHONY: distclean
28 distclean: clean distclean-common
29
30 .PHONY: tags
31 tags: TAGS
32
33 .PHONY: distdir
34 distdir:
35
36 .PHONY: install
37 install:
38
39 .PHONY: dep
40 dep: dep-common
41
42 include $(SRCDIR)/Makefile.common
43
44 include Makefile.depend
45
46 xmlrpc_curl_transport.lo:%.lo:%.c
47         $(LIBTOOL) --mode=compile $(CC) -c $(INCLUDES) $(CFLAGS) $<
48
49 # Need this dependency for those who don't use Makefile.depend.
50 # Without it, version.h doesn't get created.
51 xmlrpc_curl_transport.lo: version.h