~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/tools/leaky/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! gmake
 
2
#
 
3
# The contents of this file are subject to the Mozilla Public License
 
4
# Version 1.1 (the "License"); you may not use this file except in
 
5
# compliance with the License. You may obtain a copy of the License
 
6
# at http://www.mozilla.org/MPL/
 
7
#
 
8
# Software distributed under the License is distributed on an "AS IS"
 
9
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
10
# the License for the specific language governing rights and
 
11
# limitations under the License.
 
12
#
 
13
# The Initial Developer of the Original Code is Kipp E.B. Hickman.
 
14
#
 
15
# Autoconf version of original Makefile
 
16
# Fri Sep 24 23:44:10 PDT 1999 <mcafee@netscape.com>
 
17
#
 
18
 
 
19
DEPTH           = ../..
 
20
topsrcdir       = @top_srcdir@
 
21
srcdir          = @srcdir@
 
22
VPATH           = @srcdir@
 
23
 
 
24
include $(DEPTH)/config/autoconf.mk
 
25
 
 
26
SIMPLE_PROGRAMS = TestLeaky TestPreload ShowLibs
 
27
 
 
28
PROGRAM = leaky
 
29
 
 
30
CPPSRCS = \
 
31
        bfd.cpp    \
 
32
        coff.cpp   \
 
33
        dict.cpp   \
 
34
        elf.cpp    \
 
35
        leaky.cpp  \
 
36
        strset.cpp \
 
37
        $(NULL)
 
38
 
 
39
LIBS = \
 
40
        -lbfd \
 
41
        -liberty \
 
42
        $(NULL)
 
43
 
 
44
RESOURCES =            \
 
45
        leaky.css      \
 
46
        leaky.js       \
 
47
        open.gif       \
 
48
        open-over.gif  \
 
49
        close.gif      \
 
50
        close-over.gif \
 
51
        $(NULL)
 
52
 
 
53
RESOURCES := $(addprefix $(srcdir)/, $(RESOURCES))
 
54
 
 
55
# Stuff to build the library used to wrap malloc
 
56
LIBMALLOC_CPPSRCS = libmalloc.cpp
 
57
LIBMALLOC_OBJECTS = $(LIBMALLOC_CPPSRCS:.cpp=.o)
 
58
LIBMALLOC = libleaky.so
 
59
 
 
60
# Stuff to build test programs
 
61
LIBPRELOAD_CPPSRCS = LibPreload.cpp
 
62
LIBPRELOAD_OBJECTS = $(LIBPRELOAD_CPPSRCS:.cpp=.o)
 
63
LIBPRELOAD = libpreload.so
 
64
 
 
65
# include $(topsrcdir)/config/config.mk
 
66
 
 
67
OTHER_LIBRARIES = $(LIBMALLOC) $(LIBPRELOAD)
 
68
TARGETS := $(PROGRAM) $(SIMPLE_PROGRAMS) $(OTHER_LIBRARIES)
 
69
 
 
70
include $(topsrcdir)/config/rules.mk
 
71
 
 
72
# Make sure all depends on files that rules.mk doesn't know about.
 
73
all:: $(OTHER_LIBRARIES)
 
74
 
 
75
# Make sure install depends on files that rules.mk doesn't know about.
 
76
libs:: $(OTHER_LIBRARIES)
 
77
 
 
78
# Make sure libs depends on files that rules.mk doesn't know about.
 
79
libs:: $(OTHER_LIBRARIES)
 
80
 
 
81
clobber::
 
82
        rm -f $(LIBMALLOC_OBJECTS) $(LIBPRELOAD_OBJECTS)
 
83
        rm -f $(LIBMALLOC) $(LIBPRELOAD)
 
84
        rm -f $(SIMPLE_PROGRAMS:=.o)
 
85
 
 
86
clean::
 
87
        rm -f $(LIBMALLOC_OBJECTS) $(LIBPRELOAD_OBJECTS)
 
88
 
 
89
$(LIBMALLOC): $(LIBMALLOC_OBJECTS)
 
90
        rm -f $@
 
91
        $(MKSHLIB) $(LIBMALLOC_OBJECTS)
 
92
 
 
93
$(LIBPRELOAD): $(LIBPRELOAD_OBJECTS)
 
94
        $(MKSHLIB) $(LIBPRELOAD_OBJECTS)
 
95
 
 
96
test:
 
97
        @echo LIBMALLOC = $(LIBMALLOC)
 
98
        @echo LIBPRELOAD = $(LIBPRELOAD)
 
99
        @echo TARGETS = $(TARGETS)
 
100
 
 
101
libs:: $(OTHER_LIBRARIES) $(RESOURCES)
 
102
        $(INSTALL) -m 555 $(OTHER_LIBRARIES) $(DIST)/lib
 
103
        $(INSTALL) $(RESOURCES) $(DIST)/bin/res/leaky