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

« back to all changes in this revision

Viewing changes to tools/lib/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),)
 
2
  updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
 
3
  TOOLSDIR := $(call updir,$(CURDIR))
 
4
  SRCDIR := $(call updir,$(TOOLSDIR))
 
5
  BLDDIR := $(SRCDIR)
 
6
endif
 
7
SUBDIR := tools/lib
 
8
 
 
9
default: all
 
10
 
 
11
include $(BLDDIR)/config.mk
 
12
 
 
13
OMIT_LIB_RULE = Y
 
14
 
 
15
include $(SRCDIR)/tools/common.mk
 
16
 
 
17
INCLUDES = \
 
18
  -Isrcdir/$(SUBDIR)/include \
 
19
  -Iblddir \
 
20
  -Isrcdir/include \
 
21
  -Isrcdir/lib/util/include \
 
22
 
 
23
CFLAGS = $(CFLAGS_COMMON) $(INCLUDES) $(CFLAGS_PERSONAL) $(CADD)
 
24
 
 
25
LIBOBJS = \
 
26
  dumpvalue.o \
 
27
 
 
28
.PHONY: all
 
29
all: $(LIBOBJS)
 
30
 
 
31
%.o:%.c
 
32
        $(CC) -c $(CFLAGS) $<
 
33
 
 
34
# This common.mk dependency makes sure the symlinks get built before
 
35
# this make file is used for anything.
 
36
 
 
37
$(SRCDIR)/tools/common.mk: srcdir blddir
 
38
 
 
39
include depend.mk
 
40
 
 
41
.PHONY: dep
 
42
dep: dep-common
 
43
 
 
44
.PHONY: clean
 
45
clean: clean-common
 
46
 
 
47
.PHONY: distclean
 
48
distclean: clean distclean-common