OSDN Git Service

2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libmudflap / Makefile.am
1 ## Makefile for the toplevel directory of the mudflap library.
2 ##
3 ## Copyright (C) 2002, 2003, 2004
4 ## Free Software Foundation, Inc.
5 ##
6
7 AUTOMAKE_OPTIONS = 1.8 foreign
8 MAINT_CHARSET = latin1
9 SUBDIRS = testsuite
10
11 SECTION_FLAGS = @SECTION_FLAGS@
12 AM_CFLAGS = -Wall $(SECTION_FLAGS)
13
14 if LIBMUDFLAPTH
15 libmudflapth = libmudflapth.la
16 else
17 libmudflapth =
18 endif
19
20 toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
21 include_HEADERS = mf-runtime.h
22
23
24 libmudflap_la_SOURCES = \
25         mf-runtime.c \
26         mf-heuristics.c \
27         mf-hooks1.c \
28         mf-hooks2.c
29 libmudflap_la_LIBADD = 
30 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
31 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
32
33 clean-local:
34         rm -f pth/*.o pth/*.lo
35
36 pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h
37         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-runtime.c -o $@
38 pth/mf-heuristics.lo: mf-heuristics.c mf-runtime.h mf-impl.h
39         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-heuristics.c -o $@
40 pth/mf-hooks1.lo: mf-hooks1.c mf-runtime.h mf-impl.h
41         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks1.c -o $@
42 pth/mf-hooks2.lo: mf-hooks2.c mf-runtime.h mf-impl.h
43         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks2.c -o $@
44 pth/mf-hooks3.lo: mf-hooks3.c mf-runtime.h mf-impl.h
45         $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-hooks3.c -o $@
46
47
48 libmudflapth_la_SOURCES =
49 libmudflapth_la_LIBADD = \
50         pth/mf-runtime.lo \
51         pth/mf-heuristics.lo \
52         pth/mf-hooks1.lo \
53         pth/mf-hooks2.lo \
54         pth/mf-hooks3.lo
55 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
56 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
57
58
59 # XXX hack alert
60 # From libffi/Makefile.am
61
62 # Work around what appears to be a GNU make bug handling MAKEFLAGS
63 # values defined in terms of make variables, as is the case for CC and
64 # friends when we are called from the top level Makefile.
65 AM_MAKEFLAGS = \
66         "AR_FLAGS=$(AR_FLAGS)" \
67         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
68         "CFLAGS=$(CFLAGS)" \
69         "CXXFLAGS=$(CXXFLAGS)" \
70         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
71         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
72         "INSTALL=$(INSTALL)" \
73         "INSTALL_DATA=$(INSTALL_DATA)" \
74         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
75         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
76         "JC1FLAGS=$(JC1FLAGS)" \
77         "LDFLAGS=$(LDFLAGS)" \
78         "LIBCFLAGS=$(LIBCFLAGS)" \
79         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
80         "MAKE=$(MAKE)" \
81         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
82         "PICFLAG=$(PICFLAG)" \
83         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
84         "SHELL=$(SHELL)" \
85         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
86         "exec_prefix=$(exec_prefix)" \
87         "infodir=$(infodir)" \
88         "libdir=$(libdir)" \
89         "prefix=$(prefix)" \
90         "AR=$(AR)" \
91         "AS=$(AS)" \
92         "CC=$(CC)" \
93         "CXX=$(CXX)" \
94         "LD=$(LD)" \
95         "LIBCFLAGS=$(LIBCFLAGS)" \
96         "NM=$(NM)" \
97         "PICFLAG=$(PICFLAG)" \
98         "RANLIB=$(RANLIB)" \
99         "DESTDIR=$(DESTDIR)"
100
101 MAKEOVERRIDES=
102
103 ## ################################################################
104