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

Annotation of OpenXM_contrib2/asir2000/Imakefile, Revision 1.11

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

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