]>
Commit | Line | Data |
---|---|---|
6de9cd9a DN |
1 | ## Makefile for the toplevel directory of the mudflap library. |
2 | ## | |
7954e85c | 3 | ## Copyright (C) 2002, 2003, 2004 |
6de9cd9a DN |
4 | ## Free Software Foundation, Inc. |
5 | ## | |
6 | ||
076e5443 | 7 | AUTOMAKE_OPTIONS = 1.8 foreign |
901713f1 | 8 | ACLOCAL_AMFLAGS = -I .. -I ../config |
6de9cd9a DN |
9 | MAINT_CHARSET = latin1 |
10 | SUBDIRS = testsuite | |
11 | ||
fd0811ef ZW |
12 | # May be used by various substitution variables. |
13 | gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) | |
14 | ||
7954e85c FCE |
15 | SECTION_FLAGS = @SECTION_FLAGS@ |
16 | AM_CFLAGS = -Wall $(SECTION_FLAGS) | |
6de9cd9a DN |
17 | |
18 | if LIBMUDFLAPTH | |
19 | libmudflapth = libmudflapth.la | |
20 | else | |
21 | libmudflapth = | |
22 | endif | |
23 | ||
42fcd7bb | 24 | toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth) |
6de9cd9a DN |
25 | include_HEADERS = mf-runtime.h |
26 | ||
cfbd22d7 | 27 | |
6de9cd9a DN |
28 | libmudflap_la_SOURCES = \ |
29 | mf-runtime.c \ | |
7954e85c FCE |
30 | mf-heuristics.c \ |
31 | mf-hooks1.c \ | |
32 | mf-hooks2.c | |
33 | libmudflap_la_LIBADD = | |
34 | libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD) | |
bd4c8250 | 35 | libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` |
6de9cd9a DN |
36 | |
37 | clean-local: | |
38 | rm -f pth/*.o pth/*.lo | |
39 | ||
fc5515a8 | 40 | pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h |
6de9cd9a DN |
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 $@ | |
7954e85c FCE |
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 $@ | |
6de9cd9a | 50 | |
6de9cd9a | 51 | |
7954e85c FCE |
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 | |
6de9cd9a | 59 | libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD) |
bd4c8250 | 60 | libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` |
6de9cd9a DN |
61 | |
62 | ||
63 | # XXX hack alert | |
64 | # From libffi/Makefile.am | |
65 | ||
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)" \ | |
0b817eb0 | 89 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ |
6de9cd9a DN |
90 | "exec_prefix=$(exec_prefix)" \ |
91 | "infodir=$(infodir)" \ | |
92 | "libdir=$(libdir)" \ | |
93 | "prefix=$(prefix)" \ | |
581fb421 | 94 | "includedir=$(includedir)" \ |
6de9cd9a DN |
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)" | |
105 | ||
106 | MAKEOVERRIDES= | |
107 | ||
6de9cd9a DN |
108 | ## ################################################################ |
109 |