1 ## Makefile for the toplevel directory of the mudflap library.
3 ## Copyright (C) 2002, 2003, 2004
4 ## Free Software Foundation, Inc.
7 AUTOMAKE_OPTIONS = 1.8 foreign
11 SECTION_FLAGS = @SECTION_FLAGS@
12 AM_CFLAGS = -Wall $(SECTION_FLAGS)
15 libmudflapth = libmudflapth.la
20 toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
21 include_HEADERS = mf-runtime.h
24 libmudflap_la_SOURCES = \
29 libmudflap_la_LIBADD =
30 libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
31 libmudflap_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
34 rm -f pth/*.o pth/*.lo
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 $@
48 libmudflapth_la_SOURCES =
49 libmudflapth_la_LIBADD = \
51 pth/mf-heuristics.lo \
55 libmudflapth_la_DEPENDENCIES = $(libmudflapth_la_LIBADD)
56 libmudflapth_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
60 # From libffi/Makefile.am
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.
66 "AR_FLAGS=$(AR_FLAGS)" \
67 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
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)" \
81 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
82 "PICFLAG=$(PICFLAG)" \
83 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
85 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
86 "exec_prefix=$(exec_prefix)" \
87 "infodir=$(infodir)" \
95 "LIBCFLAGS=$(LIBCFLAGS)" \
97 "PICFLAG=$(PICFLAG)" \
103 ## ################################################################