Speed up ia64 compilations
[official-gcc.git] / zlib / Makefile.am
blob80de4ef763f1d609bc401ed35003601c86ee746b
1 ## Process this file with automake to create Makefile.in.
3 AUTOMAKE_OPTIONS = cygnus
5 # Multilib support variables.
6 MULTISRCTOP =
7 MULTIBUILDTOP =
8 MULTIDIRS =
9 MULTISUBDIR =
10 MULTIDO = true
11 MULTICLEAN = true
13 ## Install a library built with a cross compiler in tooldir, not
14 ## libdir.
15 if USE_LIBDIR
16 toolexeclibdir = $(libdir)$(MULTISUBDIR)
17 else
18 toolexecdir = $(exec_prefix)/$(target_alias)
19 toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
20 endif
22 ZLIB_SOURCES = adler32.c compress.c crc32.c deflate.c deflate.h \
23 gzio.c infblock.c infblock.h infcodes.c infcodes.h inffast.c inffast.h \
24 inffixed.h inflate.c inftrees.c inftrees.h infutil.c infutil.h trees.c \
25 trees.h uncompr.c zconf.h zlib.h zutil.c zutil.h
27 if TARGET_LIBRARY
28 ## We don't use `libz.la' because we don't want to conflict with a
29 ## system library of that name.
30 toolexeclib_LTLIBRARIES = @target_all@
31 EXTRA_LTLIBRARIES = libzgcj.la
32 libzgcj_la_SOURCES = $(ZLIB_SOURCES)
33 libzgcj_la_LDFLAGS = -version-info 0:0:0 -rpath $(toolexeclibdir)
34 else
35 toolexeclib_LIBRARIES = libz.a
36 libz_a_SOURCES = $(ZLIB_SOURCES)
37 endif
39 # Work around what appears to be a GNU make bug handling MAKEFLAGS
40 # values defined in terms of make variables, as is the case for CC and
41 # friends when we are called from the top level Makefile.
42 AM_MAKEFLAGS = \
43         "AR_FLAGS=$(AR_FLAGS)" \
44         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
45         "CFLAGS=$(CFLAGS)" \
46         "CXXFLAGS=$(CXXFLAGS)" \
47         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
48         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
49         "INSTALL=$(INSTALL)" \
50         "INSTALL_DATA=$(INSTALL_DATA)" \
51         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
52         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
53         "LDFLAGS=$(LDFLAGS)" \
54         "LIBCFLAGS=$(LIBCFLAGS)" \
55         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
56         "MAKE=$(MAKE)" \
57         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
58         "PICFLAG=$(PICFLAG)" \
59         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
60         "SHELL=$(SHELL)" \
61         "EXPECT=$(EXPECT)" \
62         "RUNTEST=$(RUNTEST)" \
63         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
64         "exec_prefix=$(exec_prefix)" \
65         "infodir=$(infodir)" \
66         "libdir=$(libdir)" \
67         "prefix=$(prefix)" \
68         "tooldir=$(tooldir)" \
69         "AR=$(AR)" \
70         "AS=$(AS)" \
71         "CC=$(CC)" \
72         "CXX=$(CXX)" \
73         "LD=$(LD)" \
74         "LIBCFLAGS=$(LIBCFLAGS)" \
75         "NM=$(NM)" \
76         "PICFLAG=$(PICFLAG)" \
77         "RANLIB=$(RANLIB)" \
78         "DESTDIR=$(DESTDIR)"
80 # Multilib support.
81 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
82         maintainer-clean-multi
84 all-am: all-multi
85 install-am: install-multi
86 mostlyclean-am: mostlyclean-multi
87 clean-am: clean-multi
88 distclean-am: distclean-multi
89 maintainer-clean-am: maintainer-clean-multi
91 all-multi:
92         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
93 install-multi:
94         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
95 mostlyclean-multi:
96         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
97 clean-multi:
98         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
99 distclean-multi:
100         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
101 maintainer-clean-multi:
102         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean