439595c1d4508d7e6d104fd70e2e522b5e6fab4e
[platform/upstream/bash.git] / lib / sh / Makefile.in
1 #
2 # Makefile for the Bash library
3 #
4
5 srcdir = @srcdir@
6 VPATH = .:@srcdir@
7 topdir = @top_srcdir@
8 BUILD_DIR = @BUILD_DIR@
9
10 POSIX_INC = ${topdir}/lib/posixheaders
11
12 INSTALL = @INSTALL@
13 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 INSTALL_DATA = @INSTALL_DATA@
15
16 CC = @CC@
17 RANLIB = @RANLIB@
18 AR = @AR@
19 ARFLAGS = @ARFLAGS@
20 RM = rm -f
21 CP = cp
22 MV = mv
23
24 SHELL = @MAKE_SHELL@
25
26 CFLAGS = @CFLAGS@
27 LOCAL_CFLAGS = @LOCAL_CFLAGS@
28 CPPFLAGS = @CPPFLAGS@
29 LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
30
31 PROFILE_FLAGS = @PROFILE_FLAGS@
32
33 DEFS = @DEFS@
34 LOCAL_DEFS = @LOCAL_DEFS@
35
36 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(POSIX_INC) -I$(srcdir)
37
38 CCFLAGS = ${PROFILE_FLAGS} ${INCLUDES} $(DEFS) $(LOCAL_DEFS) $(LOCAL_CFLAGS) \
39           $(CFLAGS) $(CPPFLAGS) 
40
41 .c.o:
42         $(CC) -c $(CCFLAGS) $<
43
44 # The name of the library target.
45 LIBRARY_NAME = libsh.a
46
47 # The C code source files for this library.
48 CSOURCES = clktck.c getcwd.c getenv.c oslib.c setlinebuf.c \
49            strcasecmp.c strerror.c strtod.c strtol.c strtoul.c \
50            vprint.c itos.c rename.c
51
52 # The header files for this library.
53 HSOURCES = 
54
55 # The object files contained in $(LIBRARY_NAME)
56 OBJECTS = clktck.o getcwd.o getenv.o oslib.o setlinebuf.o \
57           strcasecmp.o strerror.o strtod.o strtol.o strtoul.o \
58           vprint.o itos.o rename.o
59
60 SUPPORT = Makefile
61
62 all: $(LIBRARY_NAME)
63
64 $(LIBRARY_NAME): $(OBJECTS)
65         $(RM) $@
66         $(AR) $(ARFLAGS) $@ $(OBJECTS)
67         -test -n "$(RANLIB)" && $(RANLIB) $@
68
69 force:
70
71 # The rule for 'includes' is written funny so that the if statement
72 # always returns TRUE unless there really was an error installing the
73 # include files.
74 install:
75
76 clean:
77         $(RM) $(OBJECTS) $(LIBRARY_NAME)
78
79 realclean distclean maintainer-clean: clean
80         $(RM) Makefile
81
82 mostlyclean: clean
83
84 # Dependencies
85
86 # rules for losing makes, like SunOS
87 clktck.o: clktck.c
88 getcwd.o: getcwd.c
89 getenv.o: getenv.c
90 itos.o: itos.c
91 oslib.o: oslib.c
92 rename.o: rename.c
93 setlinebuf.o: setlinebuf.c
94 strcasecmp.o: strcasecmp.c
95 strerror.o: strerror.c
96 strtod.o: strtod.c
97 strtol.o: strtol.c
98 strtoul.o: strtoul.c
99 vprint.o: vprint.c
100
101 # all files in the library depend on config.h
102 clktck.o: ${BUILD_DIR}/config.h
103 getcwd.o: ${BUILD_DIR}/config.h
104 getenv.o: ${BUILD_DIR}/config.h
105 itos.o: ${BUILD_DIR}/config.h
106 oslib.o: ${BUILD_DIR}/config.h
107 rename.o: ${BUILD_DIR}/config.h
108 setlinebuf.o: ${BUILD_DIR}/config.h
109 strcasecmp.o: ${BUILD_DIR}/config.h
110 strerror.o: ${BUILD_DIR}/config.h
111 strtod.o: ${BUILD_DIR}/config.h
112 strtol.o: ${BUILD_DIR}/config.h
113 strtoul.o: ${BUILD_DIR}/config.h
114 vprint.o: ${BUILD_DIR}/config.h
115
116 clktck.o: ${topdir}/bashtypes.h
117
118 getcwd.o: ${topdir}/bashtypes.h ${topdir}/bashansi.h ${topdir}/maxpath.h
119 getcwd.o: ${POSIX_INC}/posixstat.h ${POSIX_INC}/posixdir.h
120 getcwd.o: ${POSIX_INC}/memalloc.h ${POSIX_INC}/ansi_stdlib.h
121
122 getenv.o: ${topdir}/bashansi.h ${topdir}/ansi_stdlib.h
123 getenv.o: ${topdir}/shell.h ${topdir}/bashjmp.h ${topdir}/posixjmp.h
124 getenv.o: ${topdir}/command.h ${topdir}/stdc.h ${topdir}/error.h
125 getenv.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
126 getenv.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
127 getenv.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
128 getenv.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
129 getenv.o: ${topdir}/pathnames.h ${topdir}/externs.h
130
131 itos.o: ${topdir}/bashansi.h ${topdir}/ansi_stdlib.h
132 itos.o: ${topdir}/shell.h ${topdir}/bashjmp.h ${topdir}/posixjmp.h
133 itos.o: ${topdir}/command.h ${topdir}/stdc.h ${topdir}/error.h
134 itos.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
135 itos.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
136 itos.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
137 itos.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
138 itos.o: ${topdir}/pathnames.h ${topdir}/externs.h
139
140 oslib.o: ${topdir}/bashtypes.h ${topdir}/bashansi.h ${topdir}/maxpath.h
141 oslib.o: ${topdir}/shell.h ${topdir}/bashjmp.h ${topdir}/posixjmp.h
142 oslib.o: ${topdir}/command.h ${topdir}/stdc.h ${topdir}/error.h
143 oslib.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
144 oslib.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
145 oslib.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
146 oslib.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
147 oslib.o: ${topdir}/pathnames.h ${topdir}/externs.h
148 oslib.o: ${POSIX_INC}/posixstat.h ${POSIX_INC}/filecntl.h
149 oslib.o: ${POSIX_INC}/ansi_stdlib.h
150
151 rename.o: ${topdir}/bashtypes.h ${topdir}/stdc.h
152
153 strcasecmp.o: ${topdir}/stdc.h ${topdir}/bashansi.h ${topdir}/ansi_stdlib.h
154
155 strerror.o: ${topdir}/bashtypes.h
156 strerror.o: ${topdir}/shell.h ${topdir}/bashjmp.h ${topdir}/posixjmp.h
157 strerror.o: ${topdir}/command.h ${topdir}/stdc.h ${topdir}/error.h
158 strerror.o: ${topdir}/general.h ${topdir}/bashtypes.h ${topdir}/variables.h
159 strerror.o: ${topdir}/array.h ${topdir}/hashlib.h ${topdir}/quit.h
160 strerror.o: ${topdir}/unwind_prot.h ${topdir}/dispose_cmd.h
161 strerror.o: ${topdir}/make_cmd.h ${topdir}/subst.h ${topdir}/sig.h
162 strerror.o: ${topdir}/pathnames.h ${topdir}/externs.h
163
164 strtod.o: ${topdir}/bashansi.h
165 strtod.o: ${POSIX_INC}/ansi_stdlib.h
166
167 strtol.o: ${topdir}/bashansi.h
168 strtol.o: ${POSIX_INC}/ansi_stdlib.h
169
170 strtoul.o: ${topdir}/bashansi.h
171 strtoul.o: ${POSIX_INC}/ansi_stdlib.h