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

Annotation of OpenXM_contrib2/asir2000/Imakefile, Revision 1.10

1.10    ! noro        1: /*
        !             2:  * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
        !             3:  * All rights reserved.
        !             4:  *
        !             5:  * $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.9 2000/07/13 05:08:59 noro Exp $
        !             6:  */
1.1       noro        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:
1.5       noro       31: #if defined(USE_PLOT)
1.1       noro       32: LOCAL_LIBRARIES = -L/usr/openwin/lib XawClientLibs $(XWCHARLIB)
                     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: E27LIB=engine-27/libca-27.a
                     43: FLIB=fft/libdft.a
                     44: ALIB = asm/libasm.a
                     45: IOLIB = io/libio.a
                     46: BLIB = builtin/libfunc.a
                     47:
                     48: #ifdef USE_PLOT
                     49: PLLIB = plot/libplot.a
                     50: #else
                     51: PLLIB =
                     52: #endif
                     53:
                     54: PROGRAMS = asir
                     55:
                     56: TOBJ = parse/main.o $(FOBJ)
                     57: UOBJ = parse/umain.o $(FOBJ)
                     58:
1.7       noro       59: SUBDIRS = engine engine-27 fft asm gc parse builtin io plot lib include
1.1       noro       60:
1.4       noro       61: LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB)
                     62: LIBS = $(LIBS0) $(GLIB)
1.1       noro       63: PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB)
                     64:
1.4       noro       65:
1.1       noro       66: MakeSubdirs($(SUBDIRS))
                     67: DependSubdirs($(SUBDIRS))
                     68:
                     69: #if 0
                     70: AllTarget($(PROGRAMS) asir.o)
                     71: #else
1.4       noro       72: AllTarget($(PROGRAMS) $(LIBRARIES))
1.1       noro       73: #endif
                     74:
                     75: #ifndef NormalRelocTarget
                     76: #define        NormalRelocTarget(program,objects,deplibs,locallibs,syslibs)    @@\
                     77: program: objects deplibs                                               @@\
                     78:        RemoveTargetProgram($@)                                         @@\
                     79:        ld -r objects locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) -o $@ @@\
                     80:                                                                        @@\
                     81: clean::                                                                        @@\
                     82:        $(RM) program
                     83: #endif /* NormalRelocTarget */
                     84:
1.7       noro       85: NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(LAPACKLIB) $(LIBCLIB) $(EXTRASTDLIB) )
1.1       noro       86: NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB))
                     87:
1.5       noro       88: $(LIBASIR): $(LIBS0)
1.4       noro       89:        -mkdir libtmp
                     90:        ( cd libtmp; $(RM) * )
1.5       noro       91:        for i in $(LIBS0); do ( cd libtmp; ar x ../$$i; chmod 644 * ) done
1.4       noro       92:        $(RM) $@
                     93:        ( cd libtmp; $(AR) ../$@ *.o )
                     94:        $(RANLIB) $@
                     95:
1.5       noro       96: install:: $(PROGRAMS)
1.1       noro       97:        MakeDir($(ASIR_LIBDIR))
1.4       noro       98:        $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR)
1.5       noro       99:
1.7       noro      100: install-bin-lib:: $(PROGRAMS)
                    101:        MakeDir($(ASIR_LIBDIR))
                    102:        $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR)
1.9       noro      103:        (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib)
1.7       noro      104:        $(RM) $(ASIR_LIBDIR)/asir
1.8       noro      105:        (cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir)
1.7       noro      106:        $(RM) $(ASIR_LIBDIR)/ox_asir
                    107:        (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
                    108:        $(RM) $(ASIR_LIBDIR)/ox_launch
                    109:        (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
                    110:        $(RM) $(ASIR_LIBDIR)/ox_plot
                    111:        (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
                    112:
1.5       noro      113: install-libasir:: $(LIBASIR)
                    114:        MakeDir($(ROOTDIR)/lib)
                    115:        $(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib
                    116:        $(RANLIB) $(ROOTDIR)/lib/$(LIBASIR)
                    117:
                    118: install-libgc:: $(GLIB)
1.4       noro      119:        MakeDir($(ROOTDIR)/lib)
1.5       noro      120:        $(INSTALL) $(INSTALLFLAGS) $(GLIB) $(ROOTDIR)/lib
                    121:        $(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)`
1.1       noro      122:
1.2       noro      123: install-lib::
1.9       noro      124:        (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib)
1.1       noro      125:        $(RM) $(ASIR_LIBDIR)/ox_asir
1.6       noro      126:        (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
1.1       noro      127:        $(RM) $(ASIR_LIBDIR)/ox_launch
1.6       noro      128:        (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
1.1       noro      129:        $(RM) $(ASIR_LIBDIR)/ox_plot
1.6       noro      130:        (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
1.1       noro      131:        $(RM) $(ASIR_BINDIR)/asir
                    132:        $(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir
1.3       noro      133:
                    134: install-doc::
1.9       noro      135:        (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-doc)
1.7       noro      136:
                    137: install-include::
1.9       noro      138:        (cd include; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
                    139:        (cd parse; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
                    140:        (cd gc; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
1.4       noro      141:
                    142: clean::
                    143:        $(RM) -r libtmp $(LIBRARIES)

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