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