Annotation of OpenXM_contrib2/asir2000/Imakefile, Revision 1.23
1.10 noro 1: /*
2: * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
3: * All rights reserved.
4: *
1.23 ! noro 5: * $OpenXM: OpenXM_contrib2/asir2000/Imakefile,v 1.22 2002/07/26 10:34:25 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:
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.20 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.17 noro 57: #if defined(cygwinArchitecture)
58: PROGRAMS = asir.exe
59: #else
1.15 noro 60: PROGRAMS = asir
1.17 noro 61: #endif
1.1 noro 62:
63: TOBJ = parse/main.o $(FOBJ)
64: UOBJ = parse/umain.o $(FOBJ)
65:
1.20 noro 66: SUBDIRS = engine fft asm parse builtin io plot lib include
1.1 noro 67:
1.11 murao 68: LIBS0 = $(BLIB) $(PLIB) $(IOLIB) $(PLLIB) $(ELIB) $(FLIB) $(ALIB)
1.4 noro 69: LIBS = $(LIBS0) $(GLIB)
1.11 murao 70: PILIBS = $(IOLIB) $(GLIB) $(ELIB) $(FLIB) $(ALIB)
1.1 noro 71:
1.4 noro 72:
1.1 noro 73: MakeSubdirs($(SUBDIRS))
74: DependSubdirs($(SUBDIRS))
75:
1.15 noro 76: #if 0
77: AllTarget($(PROGRAMS) asir.o)
78: #else
1.4 noro 79: AllTarget($(PROGRAMS) $(LIBRARIES))
1.15 noro 80: #endif
1.1 noro 81:
82: #ifndef NormalRelocTarget
83: #define NormalRelocTarget(program,objects,deplibs,locallibs,syslibs) @@\
84: program: objects deplibs @@\
85: RemoveTargetProgram($@) @@\
86: ld -r objects locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS) -o $@ @@\
87: @@\
88: clean:: @@\
89: $(RM) program
90: #endif /* NormalRelocTarget */
91:
1.15 noro 92: NormalProgramTarget(asir,$(TOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(LOCAL_LIBRARIES) $(EXTRALIB) $(LAPACKLIB) $(LIBCLIB) $(FEPLIB) $(EXTRASTDLIB) )
93: NormalRelocTarget(asir.o,$(UOBJ),$(LIBS),$(LIBS),$(PARILIB) $(RLLIB) $(EXTRALIB) $(LIBCLIB) $(EXTRASTDLIB))
1.1 noro 94:
1.5 noro 95: $(LIBASIR): $(LIBS0)
1.4 noro 96: -mkdir libtmp
97: ( cd libtmp; $(RM) * )
1.5 noro 98: for i in $(LIBS0); do ( cd libtmp; ar x ../$$i; chmod 644 * ) done
1.4 noro 99: $(RM) $@
100: ( cd libtmp; $(AR) ../$@ *.o )
101: $(RANLIB) $@
1.20 noro 102:
1.23 ! noro 103: gc:
! 104: ( cd gc; make)
! 105:
! 106: $(GLIB): parse/gc_risa.o gc
1.20 noro 107: ( cd gc; make)
108: -rm gc/libasir-gc.a
109: cp gc/.libs/libgc.a $(GLIB)
110: ar q $(GLIB) parse/gc_risa.o
111: $(RANLIB) $(GLIB)
1.4 noro 112:
1.5 noro 113: install:: $(PROGRAMS)
1.1 noro 114: MakeDir($(ASIR_LIBDIR))
1.15 noro 115: $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_LIBDIR)
1.5 noro 116:
1.7 noro 117: install-bin-lib:: $(PROGRAMS)
118: MakeDir($(ASIR_LIBDIR))
119: $(INSTALL) $(INSTALLFLAGS) $(PROGRAMS) $(ASIR_BINDIR)
1.9 noro 120: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib)
1.19 noro 121: #if defined(cygwinArchitecture)
1.15 noro 122: $(RM) $(ASIR_LIBDIR)/asir
1.19 noro 123: $(RM) $(ASIR_LIBDIR)/asir.exe
1.15 noro 124: (cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir)
125: $(RM) $(ASIR_LIBDIR)/ox_launch
1.19 noro 126: $(RM) $(ASIR_LIBDIR)/ox_launch.exe
127: (cd $(ASIR_LIBDIR); $(CP) ./../../bin/asir.exe ox_launch.exe)
1.18 noro 128: #else
1.19 noro 129: $(RM) $(ASIR_LIBDIR)/asir
130: (cd $(ASIR_LIBDIR); $(LN) ./../../bin/asir asir)
131: $(RM) $(ASIR_LIBDIR)/ox_launch
1.15 noro 132: (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
1.18 noro 133: #endif
1.19 noro 134: $(RM) $(ASIR_LIBDIR)/ox_asir
135: (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
1.15 noro 136: $(RM) $(ASIR_LIBDIR)/ox_plot
137: (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
1.7 noro 138:
1.5 noro 139: install-libasir:: $(LIBASIR)
1.15 noro 140: MakeDir($(ROOTDIR)/lib)
141: $(INSTALL) $(INSTALLFLAGS) $(LIBASIR) $(ROOTDIR)/lib
142: $(RANLIB) $(ROOTDIR)/lib/$(LIBASIR)
1.5 noro 143:
144: install-libgc:: $(GLIB)
1.4 noro 145: MakeDir($(ROOTDIR)/lib)
1.5 noro 146: $(INSTALL) $(INSTALLFLAGS) $(GLIB) $(ROOTDIR)/lib
147: $(RANLIB) $(ROOTDIR)/lib/`basename $(GLIB)`
1.1 noro 148:
1.2 noro 149: install-lib::
1.15 noro 150: MakeDir($(ROOTDIR)/lib)
1.9 noro 151: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-lib)
1.15 noro 152: $(RM) $(ASIR_LIBDIR)/ox_asir
153: (cd $(ASIR_LIBDIR); $(LN) asir ox_asir)
154: $(RM) $(ASIR_LIBDIR)/ox_launch
1.18 noro 155: #if defined(cygwinArchitecture)
156: (cd $(ASIR_LIBDIR); $(CP) asir.exe ox_launch.exe)
157: #else
1.15 noro 158: (cd $(ASIR_LIBDIR); $(LN) asir ox_launch)
1.18 noro 159: #endif
1.15 noro 160: $(RM) $(ASIR_LIBDIR)/ox_plot
161: (cd $(ASIR_LIBDIR); $(LN) asir ox_plot)
162: $(RM) $(ASIR_BINDIR)/asir
163: $(LN) $(ASIR_LIBDIR)/asir $(ASIR_BINDIR)/asir
164:
165: install-doc::
166: (cd lib; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-doc)
1.7 noro 167:
168: install-include::
1.15 noro 169: (cd include; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
170: (cd parse; make ASIR_LIBDIR=$(ASIR_LIBDIR) install-include)
1.22 noro 171: MakeDir($(GC_INCDIR))
172: -$(CP) gc/include//**/*.h $(GC_INCDIR)
173: MakeDir($(GC_INCDIR)/private)
174: -$(CP) gc/include/private//**/*.h $(GC_INCDIR)/private
1.4 noro 175:
176: clean::
177: $(RM) -r libtmp $(LIBRARIES)
1.21 noro 178: -$(RM) -f gc/libasir-gc.a
179: (cd gc; make 'clean')
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>