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