Annotation of OpenXM_contrib2/asir2000/Imakefile, Revision 1.8
1.8 ! noro 1: /* $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.7 2000/03/10 03:05:00 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:
1.7 noro 54: SUBDIRS = engine engine-27 fft asm gc parse builtin io plot lib include
1.1 noro 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:
1.7 noro 80: NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(LAPACKLIB) $(LIBCLIB) $(EXTRASTDLIB) )
1.1 noro 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:
1.7 noro 95: install-bin-lib:: $(PROGRAMS)
96: MakeDir($(ASIR_LIBDIR))
97: $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR)
98: (cd lib; make install-lib)
99: $(RM) $(ASIR_LIBDIR)/asir
1.8 ! noro 100: (cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir)
1.7 noro 101: $(RM) $(ASIR_LIBDIR)/ox_asir
102: (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
103: $(RM) $(ASIR_LIBDIR)/ox_launch
104: (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
105: $(RM) $(ASIR_LIBDIR)/ox_plot
106: (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
107:
1.5 noro 108: install-libasir:: $(LIBASIR)
109: MakeDir($(ROOTDIR)/lib)
110: $(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib
111: $(RANLIB) $(ROOTDIR)/lib/$(LIBASIR)
112:
113: install-libgc:: $(GLIB)
1.4 noro 114: MakeDir($(ROOTDIR)/lib)
1.5 noro 115: $(INSTALL) $(INSTALLFLAGS) $(GLIB) $(ROOTDIR)/lib
116: $(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)`
1.1 noro 117:
1.2 noro 118: install-lib::
119: (cd lib; make install-lib)
1.1 noro 120: $(RM) $(ASIR_LIBDIR)/ox_asir
1.6 noro 121: (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
1.1 noro 122: $(RM) $(ASIR_LIBDIR)/ox_launch
1.6 noro 123: (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
1.1 noro 124: $(RM) $(ASIR_LIBDIR)/ox_plot
1.6 noro 125: (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
1.1 noro 126: $(RM) $(ASIR_BINDIR)/asir
127: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir
1.3 noro 128:
129: install-doc::
130: (cd lib; make install-doc)
1.7 noro 131:
132: install-include::
133: (cd include; make install-include)
134: (cd parse; make install-include)
135: (cd gc; make install-include)
1.4 noro 136:
137: clean::
138: $(RM) -r libtmp $(LIBRARIES)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>