=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/Attic/Imakefile,v retrieving revision 1.1.1.1 retrieving revision 1.4 diff -u -p -r1.1.1.1 -r1.4 --- OpenXM_contrib2/asir2000/Attic/Imakefile 1999/12/03 07:39:06 1.1.1.1 +++ OpenXM_contrib2/asir2000/Attic/Imakefile 2000/02/07 07:19:58 1.4 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/asir99/Imakefile,v 1.2 1999/11/17 08:57:05 noro Exp $ */ +/* $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.3 2000/01/26 02:18:02 noro Exp $ */ #define RISA_TOP_DIR #include "include/Risa.tmpl" @@ -27,7 +27,7 @@ LOCAL_LIBRARIES = -L/usr/openwin/lib XawClientLibs $(X DEPLIBS = XawClientDepLibs PLIB = parse/libparse.a -GLIB = gc/libgc.a +GLIB = gc/libasir-gc.a ELIB = engine/libca.a E27LIB=engine-27/libca-27.a FLIB=fft/libdft.a @@ -42,22 +42,25 @@ PLLIB = #endif PROGRAMS = asir +LIBRARIES = libasir.a $(GLIB) TOBJ = parse/main.o $(FOBJ) UOBJ = parse/umain.o $(FOBJ) SUBDIRS = engine engine-27 fft asm gc parse builtin io plot lib -LIBS = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(GLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB) +LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB) +LIBS = $(LIBS0) $(GLIB) PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB) + MakeSubdirs($(SUBDIRS)) DependSubdirs($(SUBDIRS)) #if 0 AllTarget($(PROGRAMS) asir.o) #else -AllTarget($(PROGRAMS)) +AllTarget($(PROGRAMS) $(LIBRARIES)) #endif #ifndef NormalRelocTarget @@ -73,13 +76,24 @@ clean:: @@\ NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(KANLIB) $(GMPLIB) $(LAPACKLIB) $(LIBCLIB) $(EXTRASTDLIB) ) NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB)) -install:: $(PROGRAMS) - MakeDir($(ASIR_BINDIR)) +libasir.a: $(LIBS0) + -mkdir libtmp + ( cd libtmp; $(RM) * ) + for i in $(LIBS); do ( cd libtmp; ar x ../$$i; chmod 644 * ) done + $(RM) $@ + ( cd libtmp; $(AR) ../$@ *.o ) + $(RANLIB) $@ + $(_NULLCMD_) + +install:: $(PROGRAMS) $(LIBRARIES) MakeDir($(ASIR_LIBDIR)) - $(INSTALL) -c $(PROGRAMS) $(ASIR_LIBDIR) + $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR) + MakeDir($(ROOTDIR)/lib) + $(INSTALL) $(INSTALLFLAGS) $(LIBRARIES) $(ROOTDIR)/lib + for i in $(LIBRARIES); do $(RANLIB) $(ROOTDIR)/lib/`basename $$i` ; done -install2:: - (cd lib; make install2) +install-lib:: + (cd lib; make install-lib) $(RM) $(ASIR_LIBDIR)/ox_asir $(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_asir $(RM) $(ASIR_LIBDIR)/ox_launch @@ -88,3 +102,9 @@ install2:: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_plot $(RM) $(ASIR_BINDIR)/asir $(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir + +install-doc:: + (cd lib; make install-doc) + +clean:: + $(RM) -r libtmp $(LIBRARIES)