Annotation of OpenXM_contrib2/asir2000/Imakefile, Revision 1.15
1.10 noro 1: /*
2: * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
3: * All rights reserved.
4: *
1.15 ! noro 5: * $OpenXM$
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:
1.15 ! noro 13: #ifdef FreeBSDArchitecture
! 14: EXTRALIB=-lcompat
! 15: #endif
! 16:
1.1 noro 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.12 saito 32: #ifdef FreeBSDArchitecture
33: LOCAL_LIBRARIES = -L/usr/X11R6/lib XawClientLibs $(XWCHARLIB)
34: #else
1.1 noro 35: LOCAL_LIBRARIES = -L/usr/openwin/lib XawClientLibs $(XWCHARLIB)
1.12 saito 36: #endif
1.1 noro 37: DEPLIBS = XawClientDepLibs
1.5 noro 38: #else
39: LOCAL_LIBRARIES =
40: DEPLIBS =
41: #endif
1.1 noro 42:
43: PLIB = parse/libparse.a
1.4 noro 44: GLIB = gc/libasir-gc.a
1.1 noro 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:
1.15 ! noro 57: PROGRAMS = asir
1.1 noro 58:
59: TOBJ = parse/main.o $(FOBJ)
60: UOBJ = parse/umain.o $(FOBJ)
61:
1.11 murao 62: SUBDIRS = engine fft asm gc parse builtin io plot lib include
1.1 noro 63:
1.11 murao 64: LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(FLIB) $(ALIB)
1.4 noro 65: LIBS = $(LIBS0) $(GLIB)
1.11 murao 66: PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(FLIB) $(ALIB)
1.1 noro 67:
1.4 noro 68:
1.1 noro 69: MakeSubdirs($(SUBDIRS))
70: DependSubdirs($(SUBDIRS))
71:
1.15 ! noro 72: #if 0
! 73: AllTarget($(PROGRAMS) asir.o)
! 74: #else
1.4 noro 75: AllTarget($(PROGRAMS) $(LIBRARIES))
1.15 ! noro 76: #endif
1.1 noro 77:
78: #ifndef NormalRelocTarget
79: #define NormalRelocTarget(program,objects,deplibs,locallibs,syslibs) @@\
80: program: objects deplibs @@\
81: RemoveTargetProgram($@) @@\
82: ld -r objects locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) -o $@ @@\
83: @@\
84: clean:: @@\
85: $(RM) program
86: #endif /* NormalRelocTarget */
87:
1.15 ! noro 88: NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(LAPACKLIB) $(LIBCLIB) $(FEPLIB) $(EXTRASTDLIB) )
! 89: NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB))
1.1 noro 90:
1.5 noro 91: $(LIBASIR): $(LIBS0)
1.4 noro 92: -mkdir libtmp
93: ( cd libtmp; $(RM) * )
1.5 noro 94: for i in $(LIBS0); do ( cd libtmp; ar x ../$$i; chmod 644 * ) done
1.4 noro 95: $(RM) $@
96: ( cd libtmp; $(AR) ../$@ *.o )
97: $(RANLIB) $@
98:
1.5 noro 99: install:: $(PROGRAMS)
1.1 noro 100: MakeDir($(ASIR_LIBDIR))
1.15 ! noro 101: $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR)
1.5 noro 102:
1.7 noro 103: install-bin-lib:: $(PROGRAMS)
104: MakeDir($(ASIR_LIBDIR))
105: $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR)
1.9 noro 106: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib)
1.15 ! noro 107: $(RM) $(ASIR_LIBDIR)/asir
! 108: (cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir)
! 109: $(RM) $(ASIR_LIBDIR)/ox_asir
! 110: (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
! 111: $(RM) $(ASIR_LIBDIR)/ox_launch
! 112: (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
! 113: $(RM) $(ASIR_LIBDIR)/ox_plot
! 114: (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
1.7 noro 115:
1.5 noro 116: install-libasir:: $(LIBASIR)
1.15 ! noro 117: MakeDir($(ROOTDIR)/lib)
! 118: $(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib
! 119: $(RANLIB) $(ROOTDIR)/lib/$(LIBASIR)
1.5 noro 120:
121: install-libgc:: $(GLIB)
1.4 noro 122: MakeDir($(ROOTDIR)/lib)
1.5 noro 123: $(INSTALL) $(INSTALLFLAGS) $(GLIB) $(ROOTDIR)/lib
124: $(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)`
1.1 noro 125:
1.2 noro 126: install-lib::
1.15 ! noro 127: MakeDir($(ROOTDIR)/lib)
1.9 noro 128: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib)
1.15 ! noro 129: $(RM) $(ASIR_LIBDIR)/ox_asir
! 130: (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
! 131: $(RM) $(ASIR_LIBDIR)/ox_launch
! 132: (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
! 133: $(RM) $(ASIR_LIBDIR)/ox_plot
! 134: (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
! 135: $(RM) $(ASIR_BINDIR)/asir
! 136: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir
! 137:
! 138: install-doc::
! 139: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-doc)
1.7 noro 140:
141: install-include::
1.15 ! noro 142: (cd include; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
! 143: (cd parse; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
! 144: (cd gc; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
1.4 noro 145:
146: clean::
147: $(RM) -r libtmp $(LIBRARIES)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>