Annotation of OpenXM_contrib2/asir2000/Imakefile, Revision 1.3
1.3 ! noro 1: /* $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.2 2000/01/19 02:08:06 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:
26: LOCAL_LIBRARIES = -L/usr/openwin/lib XawClientLibs $(XWCHARLIB)
27: DEPLIBS = XawClientDepLibs
28:
29: PLIB = parse/libparse.a
30: GLIB = gc/libgc.a
31: ELIB = engine/libca.a
32: E27LIB=engine-27/libca-27.a
33: FLIB=fft/libdft.a
34: ALIB = asm/libasm.a
35: IOLIB = io/libio.a
36: BLIB = builtin/libfunc.a
37:
38: #ifdef USE_PLOT
39: PLLIB = plot/libplot.a
40: #else
41: PLLIB =
42: #endif
43:
44: PROGRAMS = asir
45:
46: TOBJ = parse/main.o $(FOBJ)
47: UOBJ = parse/umain.o $(FOBJ)
48:
49: SUBDIRS = engine engine-27 fft asm gc parse builtin io plot lib
50:
51: LIBS = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(GLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB)
52: PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(E27LIB) $(FLIB) $(ALIB)
53:
54: MakeSubdirs($(SUBDIRS))
55: DependSubdirs($(SUBDIRS))
56:
57: #if 0
58: AllTarget($(PROGRAMS) asir.o)
59: #else
60: AllTarget($(PROGRAMS))
61: #endif
62:
63: #ifndef NormalRelocTarget
64: #define NormalRelocTarget(program,objects,deplibs,locallibs,syslibs) @@\
65: program: objects deplibs @@\
66: RemoveTargetProgram($@) @@\
67: ld -r objects locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) -o $@ @@\
68: @@\
69: clean:: @@\
70: $(RM) program
71: #endif /* NormalRelocTarget */
72:
73: NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(KANLIB) $(GMPLIB) $(LAPACKLIB) $(LIBCLIB) $(EXTRASTDLIB) )
74: NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB))
75:
76: install:: $(PROGRAMS)
77: MakeDir($(ASIR_BINDIR))
78: MakeDir($(ASIR_LIBDIR))
79: $(INSTALL) -c $(PROGRAMS) $(ASIR_LIBDIR)
80:
1.2 noro 81: install-lib::
82: (cd lib; make install-lib)
1.1 noro 83: $(RM) $(ASIR_LIBDIR)/ox_asir
84: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_asir
85: $(RM) $(ASIR_LIBDIR)/ox_launch
86: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_launch
87: $(RM) $(ASIR_LIBDIR)/ox_plot
88: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_LIBDIR)/ox_plot
89: $(RM) $(ASIR_BINDIR)/asir
90: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir
1.3 ! noro 91:
! 92: install-doc::
! 93: (cd lib; make install-doc)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>