comparison liboctave/Makefile.in @ 3029:9ce32027e269

[project @ 1997-06-05 06:39:06 by jwe]
author jwe
date Thu, 05 Jun 1997 06:46:03 +0000
parents 91589ab98e37
children ad0e94b6784c
comparison
equal deleted inserted replaced
3028:6d56646a2d1f 3029:9ce32027e269
46 Range.h base-de.h base-min.h byte-swap.h cmd-edit.h cmd-hist.h \ 46 Range.h base-de.h base-min.h byte-swap.h cmd-edit.h cmd-hist.h \
47 data-conv.h dir-ops.h file-ops.h file-stat.h getopt.h \ 47 data-conv.h dir-ops.h file-ops.h file-stat.h getopt.h \
48 glob-match.h idx-vector.h lo-ieee.h lo-mappers.h lo-sysdep.h \ 48 glob-match.h idx-vector.h lo-ieee.h lo-mappers.h lo-sysdep.h \
49 lo-utils.h mach-info.h oct-alloc.h oct-cmplx.h oct-env.h \ 49 lo-utils.h mach-info.h oct-alloc.h oct-cmplx.h oct-env.h \
50 oct-math.h oct-group.h oct-passwd.h oct-syscalls.h pathsearch.h \ 50 oct-math.h oct-group.h oct-passwd.h oct-syscalls.h pathsearch.h \
51 prog-args.h statdefs.h str-vec.h sun-utils.h sysdir.h \ 51 prog-args.h statdefs.h str-vec.h sun-utils.h sysdir.h syswait.h \
52 $(MATRIX_INC) \ 52 $(MATRIX_INC) \
53 $(MX_OP_INC) 53 $(MX_OP_INC)
54 54
55 TEMPLATE_SRC := Array.cc Array2.cc Array3.cc DiagArray2.cc \ 55 TEMPLATE_SRC := Array.cc Array2.cc Array3.cc DiagArray2.cc \
56 MArray.cc MArray2.cc MDiagArray2.cc base-lu.cc 56 MArray.cc MArray2.cc MDiagArray2.cc base-lu.cc
95 95
96 DISTFILES := Makefile.in ChangeLog safe-xstat.cin safe-xstat.hin \ 96 DISTFILES := Makefile.in ChangeLog safe-xstat.cin safe-xstat.hin \
97 $(SOURCES) $(INCLUDES) $(EXTRAS) 97 $(SOURCES) $(INCLUDES) $(EXTRAS)
98 98
99 ifeq ($(SHARED_LIBS), true) 99 ifeq ($(SHARED_LIBS), true)
100 BINDISTFILES = liboctave.$(SHLEXT) 100 BINDISTFILES = liboctave.$(SHLEXT_VER)
101 BINDISTLIBS = $(addprefix liboctave/, liboctave.$(SHLEXT)) 101 BINDISTLIBS = liboctave/liboctave.$(SHLEXT_VER)
102 endif 102 endif
103 103
104 MAKEDEPS_1 := $(patsubst %.cc, %.d, $(SOURCES)) 104 MAKEDEPS_1 := $(patsubst %.cc, %.d, $(SOURCES))
105 MAKEDEPS := $(patsubst %.c, %.d, $(MAKEDEPS_1)) 105 MAKEDEPS := $(patsubst %.c, %.d, $(MAKEDEPS_1))
106 106
113 else 113 else
114 PICOBJ := $(OBJECTS) 114 PICOBJ := $(OBJECTS)
115 endif 115 endif
116 endif 116 endif
117 117
118 LIBOCTAVE_DEPEND := $(patsubst %, liboctave.a(%), $(OBJECTS)) 118 LIBOCTAVE_DEPEND := $(patsubst %, liboctave.$(LIBEXT)(%), $(OBJECTS))
119 119
120 all: liboctave.a stamp-shared 120 all: libraries
121 .PHONY: all 121 .PHONY: all
122 122
123 stamp-prereq: stamp-picdir safe-stat.h safe-lstat.h 123 stamp-prereq: pic safe-stat.h safe-lstat.h
124 touch stamp-prereq 124 touch stamp-prereq
125 125
126 stamp-picdir: 126 pic:
127 @if $(SHARED_LIBS); then \ 127 @if [ -d pic ]; then \
128 if [ -n "$(CPICFLAG)" ] || [ -n "$(CXXPICFLAG)" ]; then \ 128 true; \
129 if [ -d pic ]; then \
130 true ; \
131 else \
132 echo "mkdir pic" ; \
133 mkdir pic ; \
134 fi ; \
135 fi ; \
136 else \ 129 else \
137 true ; \ 130 echo "mkdir pic"; \
138 fi 131 mkdir pic; \
139 touch stamp-picdir 132 fi
140 133
141 liboctave.a: stamp-prereq $(OBJECTS) 134 ifeq ($(SHARED_LIBS), true)
142 $(AR) $(ARFLAGS) liboctave.a $(OBJECTS) 135 libraries: liboctave.$(LIBEXT) liboctave.$(SHLEXT)
143 $(RANLIB) liboctave.a 136 else
144 137 libraries: liboctave.$(LIBEXT)
145 stamp-shared: stamp-prereq $(PICOBJ) 138 endif
146 if $(SHARED_LIBS); then \ 139 .PHONY: libraries
147 $(SH_LD) $(SH_LDFLAGS) -o liboctave.$(SHLEXT) $(PICOBJ) ; \ 140
148 else \ 141 liboctave.$(LIBEXT): stamp-prereq $(OBJECTS)
149 true ; \ 142 $(AR) $(ARFLAGS) liboctave.$(LIBEXT) $(OBJECTS)
150 fi 143 $(RANLIB) liboctave.$(LIBEXT)
151 touch stamp-shared 144
145 liboctave.$(SHLEXT): liboctave.$(SHLEXT_VER)
146 rm -f liboctave.$(SHLEXT)
147 $(LN_S) liboctave.$(SHLEXT_VER) liboctave.$(SHLEXT)
148
149 liboctave.$(SHLEXT_VER): stamp-prereq $(PICOBJ)
150 $(SH_LD) $(SH_LDFLAGS) -o liboctave.$(SHLEXT_VER) $(PICOBJ)
152 151
153 extract_stat = sed 's/@l@//g; s/@L@//g; /@LSTAT_ONLY@/d' 152 extract_stat = sed 's/@l@//g; s/@L@//g; /@LSTAT_ONLY@/d'
154 extract_lstat = sed 's/@l@/l/g; s/@L@/L/g; s/ *@LSTAT_ONLY@//' 153 extract_lstat = sed 's/@l@/l/g; s/@L@/L/g; s/ *@LSTAT_ONLY@//'
155 154
156 safe-lstat.c: safe-xstat.cin 155 safe-lstat.c: safe-xstat.cin
185 install-strip: 184 install-strip:
186 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install 185 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install
187 .PHONY: install-strip 186 .PHONY: install-strip
188 187
189 install-lib: 188 install-lib:
190 $(top_srcdir)/mkinstalldirs $(octlibdir) 189 $(top_srcdir)/mkinstalldirs $(libdir)
191 rm -f $(octlibdir)/liboctave.a 190 rm -f $(libdir)/liboctave.$(LIBEXT)
192 $(INSTALL_DATA) liboctave.a $(octlibdir)/liboctave.a 191 $(INSTALL_DATA) liboctave.$(LIBEXT) $(libdir)/liboctave.$(LIBEXT)
193 $(RANLIB) $(octlibdir)/liboctave.a 192 $(RANLIB) $(libdir)/liboctave.$(LIBEXT)
194 if $(SHARED_LIBS); then \ 193 if $(SHARED_LIBS); then \
195 rm -f $(octlibdir)/liboctave.$(SHLEXT); \ 194 rm -f $(libdir)/liboctave.$(SHLEXT_VER); \
196 $(INSTALL_PROGRAM) \ 195 $(INSTALL_PROGRAM) \
197 liboctave.$(SHLEXT) $(octlibdir)/liboctave.$(SHLEXT); \ 196 liboctave.$(SHLEXT_VER) $(libdir)/liboctave.$(SHLEXT_VER); \
198 fi 197 cd $(libdir); \
199 $(mk-libdir-link) 198 rm -f liboctave.$(SHLEXT); \
199 $(LN_S) liboctave.$(SHLEXT_VER) liboctave.$(SHLEXT); \
200 fi
200 .PHONY: install-lib 201 .PHONY: install-lib
201 202
202 install-inc: 203 install-inc:
203 $(top_srcdir)/mkinstalldirs $(octincludedir) 204 $(top_srcdir)/mkinstalldirs $(octincludedir)
204 for f in $(INCLUDES_FOR_INSTALL) ; do \ 205 for f in $(INCLUDES_FOR_INSTALL); do \
205 rm -f $(octincludedir)/$$f ; \ 206 rm -f $(octincludedir)/$$f; \
206 $(INSTALL_DATA) $(srcdir)/$$f $(octincludedir)/$$f ; \ 207 $(INSTALL_DATA) $(srcdir)/$$f $(octincludedir)/$$f; \
207 done 208 done
208 $(mk-includedir-link) 209 $(mk-includedir-link)
209 .PHONY: install-inc 210 .PHONY: install-inc
210 211
211 uninstall: 212 uninstall:
212 rm -f $(octlibdir)/liboctave.a $(octlibdir)/liboctave.$(SHLEXT) 213 rm -f $(libdir)/liboctave.$(LIBEXT)
213 for f in $(INCLUDES) ; do rm -f $(octincludedir)/$$f ; done 214 rm -f $(libdir)/liboctave.$(SHLEXT)
215 rm -f $(libdir)/liboctave.$(SHLEXT_VER)
216 for f in $(INCLUDES); do rm -f $(octincludedir)/$$f; done
214 .PHONY: uninstall 217 .PHONY: uninstall
215 218
216 tags: $(SOURCES) 219 tags: $(SOURCES)
217 ctags $(SOURCES) 220 ctags $(SOURCES)
218 221
219 TAGS: $(SOURCES) 222 TAGS: $(SOURCES)
220 etags $(SOURCES) 223 etags $(SOURCES)
221 224
222 clean: 225 clean:
223 rm -f safe-stat.h safe-lstat.h *.a *.o *.d pic/*.o 226 rm -f safe-stat.h safe-lstat.h *.$(LIBEXT) *.o *.d pic/*.o
224 if $(SHARED_LIBS); then rm -f *.$(SHLEXT); fi 227 if $(SHARED_LIBS); then rm -f *.$(SHLEXT_VER) *.$(SHLEXT); fi
225 .PHONY: clean 228 .PHONY: clean
226 229
227 mostlyclean: clean 230 mostlyclean: clean
228 .PHONY: mostlyclean 231 .PHONY: mostlyclean
229 232
230 distclean: clean 233 distclean: clean
231 rm -f Makefile so_locations stamp-picdir stamp-shared stamp-prereq 234 rm -f Makefile so_locations stamp-prereq
232 -rmdir pic 235 -rmdir pic
233 .PHONY: distclean 236 .PHONY: distclean
234 237
235 maintainer-clean: distclean 238 maintainer-clean: distclean
236 rm -f tags TAGS stamp-picdir stamp-shared stamp-prereq 239 rm -f tags TAGS
237 -rmdir pic
238 .PHONY: maintainer-clean 240 .PHONY: maintainer-clean
239 241
240 dist: 242 dist:
241 ln $(DISTFILES) ../`cat ../.fname`/liboctave 243 ln $(DISTFILES) ../`cat ../.fname`/liboctave
242 .PHONY: dist 244 .PHONY: dist
243 245
244 bin-dist: 246 bin-dist:
245 if [ -n "$(BINDISTFILES)" ]; then \ 247 if [ -n "$(BINDISTFILES)" ]; then \
246 ln $(BINDISTFILES) ../`cat ../.fname`/liboctave ; \ 248 ln $(BINDISTFILES) ../`cat ../.fname`/liboctave; \
247 fi 249 fi
248 if [ -n "$(BINDISTLIBS)" ]; then \ 250 if [ -n "$(BINDISTLIBS)" ]; then \
249 echo $(BINDISTLIBS) >> ../`cat ../.fname`/LIBRARIES ; \ 251 echo $(BINDISTLIBS) >> ../`cat ../.fname`/LIBRARIES; \
250 fi 252 fi
251 .PHONY: bin-dist 253 .PHONY: bin-dist
252 254
253 # If missing, GNU make attempts to create them in the reverse of the 255 # If missing, GNU make attempts to create them in the reverse of the
254 # order in which they are listed here. We rely on that fact to ensure 256 # order in which they are listed here. We rely on that fact to ensure