init version.
[bush.git] / lib / malloc / Makefile.in
blobe77242f1659ffd80bfa2c6eeed16ed7ed4ff2254
1 # Skeleton Makefile for the GNU malloc code
3 # Copyright (C) 1996-2009 Free Software Foundation, Inc.
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 srcdir = @srcdir@
19 VPATH = @srcdir@
20 topdir = @top_srcdir@
21 BUILD_DIR = @BUILD_DIR@
23 INSTALL = @INSTALL@
24 INSTALL_PROGRAM = @INSTALL_PROGRAM@
25 INSTALL_DATA = @INSTALL_DATA@
27 CC = @CC@
28 RANLIB = @RANLIB@
29 AR = @AR@
30 ARFLAGS = @ARFLAGS@
31 RM = rm -f
32 CP = cp
33 MV = mv
35 SHELL = @MAKE_SHELL@
37 PROFILE_FLAGS = @PROFILE_FLAGS@
39 CFLAGS = @CFLAGS@
40 LOCAL_CFLAGS = @LOCAL_CFLAGS@
41 CPPFLAGS = @CPPFLAGS@
42 LDFLAGS = @LDFLAGS@
44 DEFS = @DEFS@
45 LOCAL_DEFS = @LOCAL_DEFS@
47 LIBBUILD = ${BUILD_DIR}/lib
49 BUSHINCDIR = ${topdir}/include
51 INTL_LIBSRC = ${topdir}/lib/intl
52 INTL_BUILDDIR = ${LIBBUILD}/intl
53 INTL_INC = @INTL_INC@
54 LIBINTL_H = @LIBINTL_H@
56 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/src -I$(BUSHINCDIR) -I$(topdir)/lib $(INTL_INC)
58 CCFLAGS = ${PROFILE_FLAGS} ${INCLUDES} $(DEFS) $(LOCAL_DEFS) $(LOCAL_CFLAGS) \
59 $(CFLAGS) $(MALLOC_CFLAGS) $(CPPFLAGS)
61 .c.o:
62 $(CC) $(CCFLAGS) -c $<
64 .s.o:
65 $(CC) $(CCFLAGS) -c $<
67 MALLOC_SOURCE = malloc.c
68 STUB_SOURCE = stub.c
70 ALLOCA_SOURCE = alloca.c
71 ALLOCA_OBJECT = alloca.o
73 MALLOC_SRC = @MALLOC_SRC@
74 MALLOC = @MALLOC@
75 ALLOCA = @ALLOCA@
77 MALLOC_OBJS = malloc.o $(ALLOCA) trace.o stats.o table.o watch.o
78 STUB_OBJS = $(ALLOCA) stub.o
80 .PHONY: malloc stubmalloc
82 all: malloc
84 malloc: ${MALLOC_OBJS}
85 ${RM} libmalloc.a
86 ${AR} ${ARFLAGS} libmalloc.a ${MALLOC_OBJS}
87 -test -n "$(RANLIB)" && $(RANLIB) libmalloc.a
89 stubmalloc: ${STUB_OBJS}
90 ${RM} libmalloc.a
91 ${AR} ${ARFLAGS} libmalloc.a ${STUB_OBJS}
92 -test -n "$(RANLIB)" && $(RANLIB) libmalloc.a
94 alloca: ${ALLOCA}
95 ${RM} libmalloc.a
96 ${AR} ${ARFLAGS} libmalloc.a ${ALLOCA}
97 -test -n "$(RANLIB)" && $(RANLIB) libmalloc.a
99 alloca.o: $(srcdir)/$(ALLOCA_SOURCE)
100 $(CC) $(CCFLAGS) -c $(srcdir)/$(ALLOCA_SOURCE)
101 @- if test "$(ALLOCA_OBJECT)" != alloca.o ; then \
102 mv $(ALLOCA_OBJECT) alloca.o >/dev/null 2>&1 ; \
105 mostlyclean clean:
106 $(RM) *.o libmalloc.a
108 distclean realclean maintainer-clean: clean
109 $(RM) Makefile
111 alloca.o: $(BUILD_DIR)/config.h
112 malloc.o: $(BUILD_DIR)/config.h $(topdir)/src/bushtypes.h getpagesize.h
113 xmalloc.o: $(BUILD_DIR)/config.h $(BUSHINCDIR)/ansi_stdlib.h
114 trace.o: ${BUILD_DIR}/config.h
115 stats.o: ${BUILD_DIR}/config.h
116 table.o: ${BUILD_DIR}/config.h
117 watch.o: ${BUILD_DIR}/config.h
119 malloc.o: ${srcdir}/imalloc.h ${srcdir}/mstats.h
120 malloc.o: ${srcdir}/table.h ${srcdir}/watch.h
121 stats.o: ${srcdir}/imalloc.h ${srcdir}/mstats.h
122 trace.o: ${srcdir}/imalloc.h
123 table.o: ${srcdir}/imalloc.h ${srcdir}/table.h
124 watch.o: ${srcdir}/imalloc.h ${srcdir}/watch.h
126 malloc.o: ${topdir}/src/bushintl.h ${LIBINTL_H} ${BUSHINCDIR}/gettext.h
127 stats.o: ${topdir}/src/bushintl.h ${LIBINTL_H} ${BUSHINCDIR}/gettext.h
128 trace.o: ${topdir}/src/bushintl.h ${LIBINTL_H} ${BUSHINCDIR}/gettext.h
129 table.o: ${topdir}/src/bushintl.h ${LIBINTL_H} ${BUSHINCDIR}/gettext.h
130 watch.o: ${topdir}/src/bushintl.h ${LIBINTL_H} ${BUSHINCDIR}/gettext.h
132 # Rules for deficient makes, like SunOS and Solaris
133 stub.o: stub.c
134 malloc.o: malloc.c
135 table.o: table.c
136 trace.o: trace.c
137 stats.o: stats.c
138 watch.o: watch.c