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

Annotation of OpenXM_contrib2/asir2000/Imakefile, Revision 1.13

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

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