~ubuntu-branches/ubuntu/natty/xmlrpc-c/natty

« back to all changes in this revision

Viewing changes to tools/xmlrpc_transport/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-01-06 18:56:02 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110106185602-09og2x3suqlzbf6s
Tags: 1.16.32-0ubuntu1
* New upstream version (stable release). LP: #659591.
  - No unresolved symbols in the shared libraries. LP: #690779.
  - Builds with --no-add-needed and --as-needed.
* Rename shared library packages.
* Add symbols files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
ifeq ($(SRCDIR)x,x)
2
 
SRCDIR = $(CURDIR)/../..
 
1
ifeq ($(SRCDIR),)
 
2
  updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
 
3
  TOOLSDIR := $(call updir,$(CURDIR))
 
4
  SRCDIR := $(call updir,$(TOOLSDIR))
 
5
  BLDDIR := $(SRCDIR)
3
6
endif
4
 
# BLDDIR is for use in places where a symbolic link won't work.
5
 
# BUILDDIR is for places in Makefile.common that can use the 'blddir'
6
 
# symbolic link (but in other directories, doesn't).
7
 
BLDDIR = $(SRCDIR)
8
 
BUILDDIR = blddir
 
7
SUBDIR := tools/xmlrpc_transport
9
8
 
10
9
default: all
11
10
 
12
 
include $(BLDDIR)/Makefile.config
 
11
include $(BLDDIR)/config.mk
13
12
 
14
13
PROGRAMS_TO_INSTALL = xmlrpc_transport
15
14
 
16
 
include ../Makefile.common
 
15
include $(SRCDIR)/tools/common.mk
17
16
 
18
 
INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/include -I$(SRCDIR)/lib/util/include
 
17
INCLUDES = \
 
18
  -I$(BLDDIR) \
 
19
  -I$(BLDDIR)/include \
 
20
  -I$(SRCDIR)/include \
 
21
  -I$(SRCDIR)/lib/util/include
19
22
 
20
23
CFLAGS = $(CFLAGS_COMMON) $(INCLUDES) $(CFLAGS_PERSONAL) $(CADD)
21
24
 
23
26
 
24
27
all: xmlrpc_transport
25
28
 
26
 
UTIL_OBJS = cmdline_parser.o getoptx.o casprintf.o
 
29
UTIL_OBJS = \
 
30
  casprintf.o \
 
31
  cmdline_parser.o \
 
32
  getoptx.o \
 
33
  stripcaseeq.o \
 
34
  string_parser.o \
 
35
 
27
36
UTILS = $(UTIL_OBJS:%=$(UTIL_DIR)/%)
28
37
 
29
38
# These are the Libtool .la files.  We use them only for make dependencies.
41
50
%.o:%.c
42
51
        $(CC) -c $(CFLAGS) $<
43
52
 
44
 
*.c: config.h
45
 
 
46
 
config.h:
47
 
        $(LN_S) $(BLDDIR)/xmlrpc_config.h $@
48
 
 
49
 
# This Makefile.config dependency makes sure the symlinks get built before
 
53
# This common.mk dependency makes sure the symlinks get built before
50
54
# this make file is used for anything.
51
55
 
52
 
$(BLDDIR)/Makefile.config: blddir srcdir
 
56
$(SRCDIR)/tools/common.mk: srcdir blddir
53
57
 
54
 
include Makefile.depend
 
58
include depend.mk
55
59
 
56
60
.PHONY: dep
57
61
dep: dep-common