[BACK]Return to Imakefile CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000

Annotation of OpenXM_contrib2/asir2000/Imakefile, Revision 1.5

1.5     ! noro        1: /* $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.4 2000/02/07 07:19:58 noro Exp $ */
1.1       noro        2: #define RISA_TOP_DIR
                      3: #include "include/Risa.tmpl"
                      4:
                      5: #define IHaveSubdirs
                      6: #define PassCDebugFlags
                      7:
                      8: #ifdef FreeBSDArchitecture
                      9: EXTRALIB=-lcompat
                     10: #endif
                     11:
                     12: #ifdef SunArchitecture
                     13: EXTRASTDLIB= $(MPILIB) -ldl
                     14: #endif
                     15:
                     16: #if defined(AlphaArchitecture) && OSMajorVersion < 4
                     17: EXTRASTDLIB=/usr/lib/libots.a
                     18: #endif
                     19:
                     20: #if defined(LinuxArchitecture) && DefaultLinuxCLibMajorVersion < 6
                     21: LIBCLIB=/usr/lib/libc.a -lm
                     22: #else
                     23: LIBCLIB=-lm
                     24: #endif
                     25:
1.5     ! noro       26: #if defined(USE_PLOT)
1.1       noro       27: LOCAL_LIBRARIES = -L/usr/openwin/lib XawClientLibs $(XWCHARLIB)
                     28: DEPLIBS = XawClientDepLibs
1.5     ! noro       29: #else
        !            30: LOCAL_LIBRARIES =
        !            31: DEPLIBS =
        !            32: #endif
1.1       noro       33:
                     34: PLIB = parse/libparse.a
1.4       noro       35: GLIB = gc/libasir-gc.a
1.1       noro       36: ELIB = engine/libca.a
                     37: E27LIB=engine-27/libca-27.a
                     38: FLIB=fft/libdft.a
                     39: ALIB = asm/libasm.a
                     40: IOLIB = io/libio.a
                     41: BLIB = builtin/libfunc.a
                     42:
                     43: #ifdef USE_PLOT
                     44: PLLIB = plot/libplot.a
                     45: #else
                     46: PLLIB =
                     47: #endif
                     48:
                     49: PROGRAMS = asir
                     50:
                     51: TOBJ = parse/main.o $(FOBJ)
                     52: UOBJ = parse/umain.o $(FOBJ)
                     53:
                     54: SUBDIRS = engine engine-27 fft asm gc parse builtin io plot lib
                     55:
1.4       noro       56: LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB)
                     57: LIBS = $(LIBS0) $(GLIB)
1.1       noro       58: PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB)
                     59:
1.4       noro       60:
1.1       noro       61: MakeSubdirs($(SUBDIRS))
                     62: DependSubdirs($(SUBDIRS))
                     63:
                     64: #if 0
                     65: AllTarget($(PROGRAMS) asir.o)
                     66: #else
1.4       noro       67: AllTarget($(PROGRAMS) $(LIBRARIES))
1.1       noro       68: #endif
                     69:
                     70: #ifndef NormalRelocTarget
                     71: #define        NormalRelocTarget(program,objects,deplibs,locallibs,syslibs)    @@\
                     72: program: objects deplibs                                               @@\
                     73:        RemoveTargetProgram($@)                                         @@\
                     74:        ld -r objects locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) -o $@ @@\
                     75:                                                                        @@\
                     76: clean::                                                                        @@\
                     77:        $(RM) program
                     78: #endif /* NormalRelocTarget */
                     79:
                     80: NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(KANLIB) $(GMPLIB) $(LAPACKLIB) $(LIBCLIB) $(EXTRASTDLIB) )
                     81: NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB))
                     82:
1.5     ! noro       83: $(LIBASIR): $(LIBS0)
1.4       noro       84:        -mkdir libtmp
                     85:        ( cd libtmp; $(RM) * )
1.5     ! noro       86:        for i in $(LIBS0); do ( cd libtmp; ar x ../$$i; chmod 644 * ) done
1.4       noro       87:        $(RM) $@
                     88:        ( cd libtmp; $(AR) ../$@ *.o )
                     89:        $(RANLIB) $@
                     90:
1.5     ! noro       91: install:: $(PROGRAMS)
1.1       noro       92:        MakeDir($(ASIR_LIBDIR))
1.4       noro       93:        $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR)
1.5     ! noro       94:
        !            95: install-libasir:: $(LIBASIR)
        !            96:        MakeDir($(ROOTDIR)/lib)
        !            97:        $(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib
        !            98:        $(RANLIB) $(ROOTDIR)/lib/$(LIBASIR)
        !            99:
        !           100: install-libgc:: $(GLIB)
1.4       noro      101:        MakeDir($(ROOTDIR)/lib)
1.5     ! noro      102:        $(INSTALL) $(INSTALLFLAGS) $(GLIB) $(ROOTDIR)/lib
        !           103:        $(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)`
1.1       noro      104:
1.2       noro      105: install-lib::
                    106:        (cd lib; make install-lib)
1.1       noro      107:        $(RM) $(ASIR_LIBDIR)/ox_asir
                    108:        $(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_asir
                    109:        $(RM) $(ASIR_LIBDIR)/ox_launch
                    110:        $(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_launch
                    111:        $(RM) $(ASIR_LIBDIR)/ox_plot
                    112:        $(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_plot
                    113:        $(RM) $(ASIR_BINDIR)/asir
                    114:        $(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir
1.3       noro      115:
                    116: install-doc::
                    117:        (cd lib; make install-doc)
1.4       noro      118:
                    119: clean::
                    120:        $(RM) -r libtmp $(LIBRARIES)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>