version 1.5, 2000/02/08 04:47:08 |
version 1.22, 2002/07/26 10:34:25 |
|
|
/* $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.4 2000/02/07 07:19:58 noro Exp $ */ |
/* |
|
* Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED |
|
* All rights reserved. |
|
* |
|
* $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.21 2002/07/26 00:33:01 noro Exp $ |
|
*/ |
#define RISA_TOP_DIR |
#define RISA_TOP_DIR |
#include "include/Risa.tmpl" |
#include "include/Risa.tmpl" |
|
|
|
|
#endif |
#endif |
|
|
#if defined(USE_PLOT) |
#if defined(USE_PLOT) |
|
#ifdef FreeBSDArchitecture |
|
LOCAL_LIBRARIES = -L/usr/X11R6/lib XawClientLibs $(XWCHARLIB) |
|
#else |
LOCAL_LIBRARIES = -L/usr/openwin/lib XawClientLibs $(XWCHARLIB) |
LOCAL_LIBRARIES = -L/usr/openwin/lib XawClientLibs $(XWCHARLIB) |
|
#endif |
DEPLIBS = XawClientDepLibs |
DEPLIBS = XawClientDepLibs |
#else |
#else |
LOCAL_LIBRARIES = |
LOCAL_LIBRARIES = |
|
|
PLIB = parse/libparse.a |
PLIB = parse/libparse.a |
GLIB = gc/libasir-gc.a |
GLIB = gc/libasir-gc.a |
ELIB = engine/libca.a |
ELIB = engine/libca.a |
E27LIB=engine-27/libca-27.a |
|
FLIB=fft/libdft.a |
FLIB=fft/libdft.a |
ALIB = asm/libasm.a |
ALIB = asm/libasm.a |
IOLIB = io/libio.a |
IOLIB = io/libio.a |
Line 46 PLLIB = plot/libplot.a |
|
Line 54 PLLIB = plot/libplot.a |
|
PLLIB = |
PLLIB = |
#endif |
#endif |
|
|
|
#if defined(cygwinArchitecture) |
|
PROGRAMS = asir.exe |
|
#else |
PROGRAMS = asir |
PROGRAMS = asir |
|
#endif |
|
|
TOBJ = parse/main.o $(FOBJ) |
TOBJ = parse/main.o $(FOBJ) |
UOBJ = parse/umain.o $(FOBJ) |
UOBJ = parse/umain.o $(FOBJ) |
|
|
SUBDIRS = engine engine-27 fft asm gc parse builtin io plot lib |
SUBDIRS = engine fft asm parse builtin io plot lib include |
|
|
LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB) |
LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(FLIB) $(ALIB) |
LIBS = $(LIBS0) $(GLIB) |
LIBS = $(LIBS0) $(GLIB) |
PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB) |
PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(FLIB) $(ALIB) |
|
|
|
|
MakeSubdirs($(SUBDIRS)) |
MakeSubdirs($(SUBDIRS)) |
|
|
$(RM) program |
$(RM) program |
#endif /* NormalRelocTarget */ |
#endif /* NormalRelocTarget */ |
|
|
NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(KANLIB) $(GMPLIB) $(LAPACKLIB) $(LIBCLIB) $(EXTRASTDLIB) ) |
NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(LAPACKLIB) $(LIBCLIB) $(FEPLIB) $(EXTRASTDLIB) ) |
NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB)) |
NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB)) |
|
|
$(LIBASIR): $(LIBS0) |
$(LIBASIR): $(LIBS0) |
Line 88 $(LIBASIR): $(LIBS0) |
|
Line 100 $(LIBASIR): $(LIBS0) |
|
( cd libtmp; $(AR) ../$@ *.o ) |
( cd libtmp; $(AR) ../$@ *.o ) |
$(RANLIB) $@ |
$(RANLIB) $@ |
|
|
|
$(GLIB): parse/gc_risa.o |
|
( cd gc; make) |
|
-rm gc/libasir-gc.a |
|
cp gc/.libs/libgc.a $(GLIB) |
|
ar q $(GLIB) parse/gc_risa.o |
|
$(RANLIB) $(GLIB) |
|
|
install:: $(PROGRAMS) |
install:: $(PROGRAMS) |
MakeDir($(ASIR_LIBDIR)) |
MakeDir($(ASIR_LIBDIR)) |
$(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR) |
$(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR) |
|
|
|
install-bin-lib:: $(PROGRAMS) |
|
MakeDir($(ASIR_LIBDIR)) |
|
$(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR) |
|
(cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib) |
|
#if defined(cygwinArchitecture) |
|
$(RM) $(ASIR_LIBDIR)/asir |
|
$(RM) $(ASIR_LIBDIR)/asir.exe |
|
(cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir) |
|
$(RM) $(ASIR_LIBDIR)/ox_launch |
|
$(RM) $(ASIR_LIBDIR)/ox_launch.exe |
|
(cd $(ASIR_LIBDIR); $(CP) ./../../bin/asir.exe ox_launch.exe) |
|
#else |
|
$(RM) $(ASIR_LIBDIR)/asir |
|
(cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir) |
|
$(RM) $(ASIR_LIBDIR)/ox_launch |
|
(cd $(ASIR_LIBDIR); $(LN) asir ox_launch) |
|
#endif |
|
$(RM) $(ASIR_LIBDIR)/ox_asir |
|
(cd $(ASIR_LIBDIR); $(LN) asir ox_asir) |
|
$(RM) $(ASIR_LIBDIR)/ox_plot |
|
(cd $(ASIR_LIBDIR); $(LN) asir ox_plot) |
|
|
install-libasir:: $(LIBASIR) |
install-libasir:: $(LIBASIR) |
MakeDir($(ROOTDIR)/lib) |
MakeDir($(ROOTDIR)/lib) |
$(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib |
$(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib |
Line 103 install-libgc:: $(GLIB) |
|
Line 144 install-libgc:: $(GLIB) |
|
$(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)` |
$(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)` |
|
|
install-lib:: |
install-lib:: |
(cd lib; make install-lib) |
MakeDir($(ROOTDIR)/lib) |
|
(cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib) |
$(RM) $(ASIR_LIBDIR)/ox_asir |
$(RM) $(ASIR_LIBDIR)/ox_asir |
$(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_asir |
(cd $(ASIR_LIBDIR); $(LN) asir ox_asir) |
$(RM) $(ASIR_LIBDIR)/ox_launch |
$(RM) $(ASIR_LIBDIR)/ox_launch |
$(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_launch |
#if defined(cygwinArchitecture) |
|
(cd $(ASIR_LIBDIR); $(CP) asir.exe ox_launch.exe) |
|
#else |
|
(cd $(ASIR_LIBDIR); $(LN) asir ox_launch) |
|
#endif |
$(RM) $(ASIR_LIBDIR)/ox_plot |
$(RM) $(ASIR_LIBDIR)/ox_plot |
$(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_plot |
(cd $(ASIR_LIBDIR); $(LN) asir ox_plot) |
$(RM) $(ASIR_BINDIR)/asir |
$(RM) $(ASIR_BINDIR)/asir |
$(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir |
$(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir |
|
|
install-doc:: |
install-doc:: |
(cd lib; make install-doc) |
(cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-doc) |
|
|
|
install-include:: |
|
(cd include; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include) |
|
(cd parse; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include) |
|
MakeDir($(GC_INCDIR)) |
|
-$(CP) gc/include//**/*.h $(GC_INCDIR) |
|
MakeDir($(GC_INCDIR)/private) |
|
-$(CP) gc/include/private//**/*.h $(GC_INCDIR)/private |
|
|
clean:: |
clean:: |
$(RM) -r libtmp $(LIBRARIES) |
$(RM) -r libtmp $(LIBRARIES) |
|
-$(RM) -f gc/libasir-gc.a |
|
(cd gc; make 'clean') |