version 1.13, 2000/12/24 06:32:29 |
version 1.18, 2001/12/25 08:59:47 |
|
|
* Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED |
* Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED |
* All rights reserved. |
* All rights reserved. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.12 2000/12/22 10:03:27 saito Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.17 2001/12/25 02:37:21 noro Exp $ |
*/ |
*/ |
#define RISA_TOP_DIR |
#define RISA_TOP_DIR |
#include "include/Risa.tmpl" |
#include "include/Risa.tmpl" |
|
|
#define IHaveSubdirs |
#define IHaveSubdirs |
#define PassCDebugFlags |
#define PassCDebugFlags |
|
|
|
#ifdef FreeBSDArchitecture |
|
EXTRALIB=-lcompat |
|
#endif |
|
|
#ifdef SunArchitecture |
#ifdef SunArchitecture |
EXTRASTDLIB= $(MPILIB) -ldl |
EXTRASTDLIB= $(MPILIB) -ldl |
#endif |
#endif |
|
|
#endif |
#endif |
|
|
PLIB = parse/libparse.a |
PLIB = parse/libparse.a |
GLIB = gc/libasir-gc.a |
GLIB = gc5.3/libasir-gc.a |
ELIB = engine/libca.a |
ELIB = engine/libca.a |
FLIB=fft/libdft.a |
FLIB=fft/libdft.a |
ALIB = asm/libasm.a |
ALIB = asm/libasm.a |
Line 50 PLLIB = plot/libplot.a |
|
Line 54 PLLIB = plot/libplot.a |
|
PLLIB = |
PLLIB = |
#endif |
#endif |
|
|
PROGRAM = asir |
#if defined(cygwinArchitecture) |
PROGRAMS = $(PROGRAM) |
PROGRAMS = asir.exe |
|
#else |
|
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 fft asm gc parse builtin io plot lib include |
SUBDIRS = engine fft asm gc5.3 parse builtin io plot lib include |
|
|
LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(FLIB) $(ALIB) |
LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(FLIB) $(ALIB) |
LIBS = $(LIBS0) $(GLIB) |
LIBS = $(LIBS0) $(GLIB) |
Line 66 PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(FLIB) $(ALIB) |
|
Line 73 PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(FLIB) $(ALIB) |
|
MakeSubdirs($(SUBDIRS)) |
MakeSubdirs($(SUBDIRS)) |
DependSubdirs($(SUBDIRS)) |
DependSubdirs($(SUBDIRS)) |
|
|
|
#if 0 |
|
AllTarget($(PROGRAMS) asir.o) |
|
#else |
AllTarget($(PROGRAMS) $(LIBRARIES)) |
AllTarget($(PROGRAMS) $(LIBRARIES)) |
|
#endif |
|
|
#ifndef NormalRelocTarget |
#ifndef NormalRelocTarget |
#define NormalRelocTarget(program,objects,deplibs,locallibs,syslibs) @@\ |
#define NormalRelocTarget(program,objects,deplibs,locallibs,syslibs) @@\ |
|
|
$(RM) program |
$(RM) program |
#endif /* NormalRelocTarget */ |
#endif /* NormalRelocTarget */ |
|
|
NormalProgramTarget($(PROGRAM),$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(LAPACKLIB) $(LIBCLIB) $(FEPLIB) $(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)) |
|
|
$(LIBASIR): $(LIBS0) |
$(LIBASIR): $(LIBS0) |
-mkdir libtmp |
-mkdir libtmp |
Line 90 $(LIBASIR): $(LIBS0) |
|
Line 102 $(LIBASIR): $(LIBS0) |
|
|
|
install:: $(PROGRAMS) |
install:: $(PROGRAMS) |
MakeDir($(ASIR_LIBDIR)) |
MakeDir($(ASIR_LIBDIR)) |
$(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR) |
$(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR) |
|
|
install-bin-lib:: $(PROGRAMS) |
install-bin-lib:: $(PROGRAMS) |
MakeDir($(ASIR_LIBDIR)) |
MakeDir($(ASIR_LIBDIR)) |
$(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR) |
$(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR) |
(cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib) |
(cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib) |
$(RM) $(ASIR_LIBDIR)/$(PROGRAM) |
$(RM) $(ASIR_LIBDIR)/asir |
(cd $(ASIR_LIBDIR); $(LN) -f ./../../bin/$(PROGRAM) $(PROGRAM)) |
(cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir) |
(cd $(ASIR_LIBDIR); $(LN) -f ./../../bin/$(PROGRAM) ox_asir) |
$(RM) $(ASIR_LIBDIR)/ox_asir |
(cd $(ASIR_LIBDIR); $(LN) -f ./../../bin/$(PROGRAM) ox_plot) |
(cd $(ASIR_LIBDIR); $(LN) asir ox_asir) |
(cd $(ASIR_LIBDIR); $(LN) -f ./../../bin/$(PROGRAM) ox_launch) |
$(RM) $(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 |
|
(cd $(ASIR_LIBDIR); $(LN) asir ox_plot) |
|
|
install-libasir:: $(LIBASIR) |
install-libasir:: $(LIBASIR) |
MakeDir($(ASIR_LIBDIR)) |
MakeDir($(ROOTDIR)/lib) |
$(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ASIR_LIBDIR) |
$(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib |
$(RANLIB) $(ASIR_LIBDIR) |
$(RANLIB) $(ROOTDIR)/lib/$(LIBASIR) |
|
|
install-libgc:: $(GLIB) |
install-libgc:: $(GLIB) |
MakeDir($(ROOTDIR)/lib) |
MakeDir($(ROOTDIR)/lib) |
Line 113 install-libgc:: $(GLIB) |
|
Line 132 install-libgc:: $(GLIB) |
|
$(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)` |
$(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)` |
|
|
install-lib:: |
install-lib:: |
MakeDir($(ASIR_LIBDIR)) |
MakeDir($(ROOTDIR)/lib) |
(cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib) |
(cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib) |
|
$(RM) $(ASIR_LIBDIR)/ox_asir |
|
(cd $(ASIR_LIBDIR); $(LN) asir ox_asir) |
|
$(RM) $(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 |
|
(cd $(ASIR_LIBDIR); $(LN) asir ox_plot) |
|
$(RM) $(ASIR_BINDIR)/asir |
|
$(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir |
|
|
|
install-doc:: |
|
(cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-doc) |
|
|
install-include:: |
install-include:: |
|
(cd include; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include) |
|
(cd parse; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include) |
|
(cd gc5.3; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include) |
|
|
clean:: |
clean:: |
$(RM) -r libtmp $(LIBRARIES) |
$(RM) -r libtmp $(LIBRARIES) |