Annotation of OpenXM_contrib2/asir2000/Imakefile-gc6, Revision 1.1
1.1 ! noro 1: /*
! 2: * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
! 3: * All rights reserved.
! 4: *
! 5: * $OpenXM$
! 6: */
! 7: #define RISA_TOP_DIR
! 8: #include "include/Risa.tmpl"
! 9:
! 10: #define IHaveSubdirs
! 11: #define PassCDebugFlags
! 12:
! 13: #ifdef FreeBSDArchitecture
! 14: EXTRALIB=-lcompat
! 15: #endif
! 16:
! 17: #ifdef SunArchitecture
! 18: EXTRASTDLIB= $(MPILIB) -ldl
! 19: #endif
! 20:
! 21: #if defined(AlphaArchitecture) && OSMajorVersion < 4
! 22: EXTRASTDLIB=/usr/lib/libots.a
! 23: #endif
! 24:
! 25: #if defined(LinuxArchitecture) && DefaultLinuxCLibMajorVersion < 6
! 26: LIBCLIB=/usr/lib/libc.a -lm
! 27: #else
! 28: LIBCLIB=-lm
! 29: #endif
! 30:
! 31: #if defined(USE_PLOT)
! 32: #ifdef FreeBSDArchitecture
! 33: LOCAL_LIBRARIES = -L/usr/X11R6/lib XawClientLibs $(XWCHARLIB)
! 34: #else
! 35: LOCAL_LIBRARIES = -L/usr/openwin/lib XawClientLibs $(XWCHARLIB)
! 36: #endif
! 37: DEPLIBS = XawClientDepLibs
! 38: #else
! 39: LOCAL_LIBRARIES =
! 40: DEPLIBS =
! 41: #endif
! 42:
! 43: PLIB = parse/libparse.a
! 44: GLIB = gc/libasir-gc.a
! 45: ELIB = engine/libca.a
! 46: FLIB=fft/libdft.a
! 47: ALIB = asm/libasm.a
! 48: IOLIB = io/libio.a
! 49: BLIB = builtin/libfunc.a
! 50:
! 51: #ifdef USE_PLOT
! 52: PLLIB = plot/libplot.a
! 53: #else
! 54: PLLIB =
! 55: #endif
! 56:
! 57: #if defined(cygwinArchitecture)
! 58: PROGRAMS = asir.exe
! 59: #else
! 60: PROGRAMS = asir
! 61: #endif
! 62:
! 63: TOBJ = parse/main.o $(FOBJ)
! 64: UOBJ = parse/umain.o $(FOBJ)
! 65:
! 66: SUBDIRS = engine fft asm parse builtin io plot lib include
! 67:
! 68: LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(FLIB) $(ALIB)
! 69: LIBS = $(LIBS0) $(GLIB)
! 70: PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(FLIB) $(ALIB)
! 71:
! 72:
! 73: MakeSubdirs($(SUBDIRS))
! 74: DependSubdirs($(SUBDIRS))
! 75:
! 76: #if 0
! 77: AllTarget($(PROGRAMS) asir.o)
! 78: #else
! 79: AllTarget($(PROGRAMS) $(LIBRARIES))
! 80: #endif
! 81:
! 82: #ifndef NormalRelocTarget
! 83: #define NormalRelocTarget(program,objects,deplibs,locallibs,syslibs) @@\
! 84: program: objects deplibs @@\
! 85: RemoveTargetProgram($@) @@\
! 86: ld -r objects locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) -o $@ @@\
! 87: @@\
! 88: clean:: @@\
! 89: $(RM) program
! 90: #endif /* NormalRelocTarget */
! 91:
! 92: NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(LAPACKLIB) $(LIBCLIB) $(FEPLIB) $(EXTRASTDLIB) )
! 93: NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB))
! 94:
! 95: $(LIBASIR): $(LIBS0)
! 96: -mkdir libtmp
! 97: ( cd libtmp; $(RM) * )
! 98: for i in $(LIBS0); do ( cd libtmp; ar x ../$$i; chmod 644 * ) done
! 99: $(RM) $@
! 100: ( cd libtmp; $(AR) ../$@ *.o )
! 101: $(RANLIB) $@
! 102:
! 103: $(GLIB): libs/libgc.a parse/gc_risa.o
! 104: ( cd gc; make)
! 105: -rm gc/libasir-gc.a
! 106: cp gc/.libs/libgc.a $(GLIB)
! 107: ar q $(GLIB) parse/gc_risa.o
! 108: $(RANLIB) $(GLIB)
! 109:
! 110: install:: $(PROGRAMS)
! 111: MakeDir($(ASIR_LIBDIR))
! 112: $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR)
! 113:
! 114: install-bin-lib:: $(PROGRAMS)
! 115: MakeDir($(ASIR_LIBDIR))
! 116: $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR)
! 117: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib)
! 118: #if defined(cygwinArchitecture)
! 119: $(RM) $(ASIR_LIBDIR)/asir
! 120: $(RM) $(ASIR_LIBDIR)/asir.exe
! 121: (cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir)
! 122: $(RM) $(ASIR_LIBDIR)/ox_launch
! 123: $(RM) $(ASIR_LIBDIR)/ox_launch.exe
! 124: (cd $(ASIR_LIBDIR); $(CP) ./../../bin/asir.exe ox_launch.exe)
! 125: #else
! 126: $(RM) $(ASIR_LIBDIR)/asir
! 127: (cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir)
! 128: $(RM) $(ASIR_LIBDIR)/ox_launch
! 129: (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
! 130: #endif
! 131: $(RM) $(ASIR_LIBDIR)/ox_asir
! 132: (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
! 133: $(RM) $(ASIR_LIBDIR)/ox_plot
! 134: (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
! 135:
! 136: install-libasir:: $(LIBASIR)
! 137: MakeDir($(ROOTDIR)/lib)
! 138: $(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib
! 139: $(RANLIB) $(ROOTDIR)/lib/$(LIBASIR)
! 140:
! 141: install-libgc:: $(GLIB)
! 142: MakeDir($(ROOTDIR)/lib)
! 143: $(INSTALL) $(INSTALLFLAGS) $(GLIB) $(ROOTDIR)/lib
! 144: $(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)`
! 145:
! 146: install-lib::
! 147: MakeDir($(ROOTDIR)/lib)
! 148: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib)
! 149: $(RM) $(ASIR_LIBDIR)/ox_asir
! 150: (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
! 151: $(RM) $(ASIR_LIBDIR)/ox_launch
! 152: #if defined(cygwinArchitecture)
! 153: (cd $(ASIR_LIBDIR); $(CP) asir.exe ox_launch.exe)
! 154: #else
! 155: (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
! 156: #endif
! 157: $(RM) $(ASIR_LIBDIR)/ox_plot
! 158: (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
! 159: $(RM) $(ASIR_BINDIR)/asir
! 160: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir
! 161:
! 162: install-doc::
! 163: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-doc)
! 164:
! 165: install-include::
! 166: (cd include; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
! 167: (cd parse; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
! 168: (cd gc5.3; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
! 169:
! 170: clean::
! 171: $(RM) -r libtmp $(LIBRARIES)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>