2 # Makefile for the Bash library
8 BUILD_DIR = @BUILD_DIR@
10 POSIX_INC = ${topdir}/lib/posixheaders
13 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 INSTALL_DATA = @INSTALL_DATA@
24 LOCAL_CFLAGS = @LOCAL_CFLAGS@
26 LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
28 PROFILE_FLAGS = @PROFILE_FLAGS@
31 LOCAL_DEFS = @LOCAL_DEFS@
33 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(POSIX_INC) -I$(srcdir)
35 CCFLAGS = ${PROFILE_FLAGS} ${INCLUDES} $(DEFS) $(LOCAL_DEFS) $(LOCAL_CFLAGS) \
39 $(CC) -c $(CCFLAGS) $<
41 # The name of the library target.
42 LIBRARY_NAME = libsh.a
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 \
49 # The header files for this library.
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 \
61 $(LIBRARY_NAME): $(OBJECTS)
63 $(AR) cr $@ $(OBJECTS)
64 -test -n "$(RANLIB)" && $(RANLIB) $@
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
74 $(RM) $(OBJECTS) $(LIBRARY_NAME)
76 realclean distclean maintainer-clean: clean
83 # rules for losing makes, like SunOS
89 setlinebuf.o: setlinebuf.c
90 strcasecmp.o: strcasecmp.c
91 strerror.o: strerror.c
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
111 clktck.o: ${topdir}/bashtypes.h
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
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
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
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
146 strcasecmp.o: ${topdir}/stdc.h ${topdir}/bashansi.h ${topdir}/ansi_stdlib.h
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
157 strtod.o: ${topdir}/bashansi.h
158 strtod.o: ${POSIX_INC}/ansi_stdlib.h
160 strtol.o: ${topdir}/bashansi.h
161 strtol.o: ${POSIX_INC}/ansi_stdlib.h
163 strtoul.o: ${topdir}/bashansi.h
164 strtoul.o: ${POSIX_INC}/ansi_stdlib.h