home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
octa21eb.zip
/
octave
/
PATOS2.ZIP
/
liboctave
/
makefile.os2
Wrap
Makefile
|
1999-04-26
|
5KB
|
114 lines
# Makefile for octave's liboctave directory
# Modified by Klaus Gebhardt, 1994 - 1997
TOPDIR = ..
include $(TOPDIR)/makeconf.os2
MATRIX_INC := Array.h Array2.h Array3.h DiagArray2.h Array-flags.h \
Array-idx.h Array2-idx.h Array3-idx.h MArray-defs.h \
MArray.h MArray2.h MDiagArray2.h Matrix.h \
base-lu.h mx-base.h mx-op-defs.h mx-defs.h mx-ext.h \
CColVector.h CDiagMatrix.h CMatrix.h CRowVector.h CmplxAEPBAL.h \
CmplxCHOL.h CmplxDET.h CmplxHESS.h CmplxLU.h CmplxQR.h \
CmplxQRP.h CmplxSCHUR.h CmplxSVD.h EIG.h boolMatrix.h chMatrix.h \
dColVector.h dDiagMatrix.h dMatrix.h dRowVector.h dbleAEPBAL.h \
dbleCHOL.h dbleDET.h dbleHESS.h dbleLU.h dbleQR.h \
dbleQRP.h dbleSCHUR.h dbleSVD.h
MX_OP_INC := mx-cdm-cm.h mx-cdm-cs.h mx-cdm-dm.h mx-cdm-m.h \
mx-cdm-s.h mx-cm-cdm.h mx-cm-dm.h mx-cm-m.h mx-cm-s.h \
mx-cs-cdm.h mx-cs-dm.h mx-cs-m.h mx-dm-cdm.h mx-dm-cm.h \
mx-dm-cs.h mx-dm-m.h mx-dm-s.h mx-m-cdm.h mx-m-cm.h \
mx-m-cs.h mx-m-dm.h mx-s-cdm.h mx-s-cm.h mx-s-dm.h
INCLUDES := Bounds.h CollocWt.h DAE.h DAEFunc.h DASSL.h FEGrid.h \
LinConst.h LP.h LPsolve.h LSODE.h NLConst.h NLEqn.h NLFunc.h \
NLP.h ODE.h ODEFunc.h Objective.h QP.h Quad.h Range.h base-de.h \
base-min.h byte-swap.h cmd-edit.h cmd-hist.h data-conv.h \
dir-ops.h file-ops.h file-stat.h getopt.h glob-match.h \
idx-vector.h lo-ieee.h lo-mappers.h lo-specfun.h lo-sysdep.h \
lo-utils.h mach-info.h oct-alloc.h oct-cmplx.h oct-env.h \
oct-group.h oct-passwd.h oct-syscalls.h pathlen.h \
pathsearch.h prog-args.h statdefs.h str-vec.h sun-utils.h \
sysdir.h syswait.h \
$(MATRIX_INC) \
$(MX_OP_INC)
TEMPLATE_SRC := Array.cc Array2.cc Array3.cc DiagArray2.cc \
MArray.cc MArray2.cc MDiagArray2.cc base-lu.cc
TI_SRC := Array-C.cc Array-b.cc Array-ch.cc Array-i.cc Array-d.cc \
Array-s.cc Array-str.cc \
MArray-C.cc MArray-ch.cc MArray-i.cc MArray-d.cc MArray-s.cc
MATRIX_SRC := Array-flags.cc CColVector.cc CDiagMatrix.cc CMatrix.cc \
CRowVector.cc CmplxAEPBAL.cc CmplxCHOL.cc CmplxDET.cc \
CmplxHESS.cc CmplxLU.cc CmplxQR.cc CmplxQRP.cc CmplxSCHUR.cc \
CmplxSVD.cc EIG.cc MArray-misc.cc boolMatrix.cc chMatrix.cc \
dColVector.cc dDiagMatrix.cc dMatrix.cc dRowVector.cc \
dbleAEPBAL.cc dbleCHOL.cc dbleDET.cc dbleHESS.cc dbleLU.cc \
dbleQR.cc dbleQRP.cc dbleSCHUR.cc dbleSVD.cc
MX_OP_SRC := mx-cdm-cm.cc mx-cdm-cs.cc mx-cdm-dm.cc mx-cdm-m.cc \
mx-cdm-s.cc mx-cm-cdm.cc mx-cm-dm.cc mx-cm-m.cc mx-cm-s.cc \
mx-cs-cdm.cc mx-cs-dm.cc mx-cs-m.cc mx-dm-cdm.cc mx-dm-cm.cc \
mx-dm-cs.cc mx-dm-m.cc mx-dm-s.cc mx-m-cdm.cc mx-m-cm.cc \
mx-m-cs.cc mx-m-dm.cc mx-s-cdm.cc mx-s-cm.cc mx-s-dm.cc
SOURCES := Bounds.cc CollocWt.cc DAE.cc DASSL.cc FEGrid.cc LinConst.cc \
LPsolve.cc LSODE.cc NLEqn.cc Quad.cc Range.cc cmd-edit.cc \
cmd-hist.cc data-conv.cc dir-ops.cc f2c-main.c file-ops.cc \
file-stat.cc filemode.c getopt.c getopt1.c glob-match.cc \
idx-vector.cc lo-ieee.cc lo-mappers.cc lo-specfun.cc \
lo-sysdep.cc lo-utils.cc mach-info.cc mkdir.c oct-alloc.cc \
oct-env.cc oct-group.cc oct-passwd.cc oct-syscalls.cc \
pathsearch.cc prog-args.cc rename.c rmdir.c str-vec.cc \
tempname.c tempnam.c \
$(TEMPLATE_SRC) \
$(TI_SRC) \
$(MATRIX_SRC) \
$(MX_OP_SRC)
EXTRAS := mx-inlines.cc
OBJECTS_1 = $(patsubst %.cc, %.obj, $(SOURCES))
OBJECTS = $(patsubst %.c, %.obj, $(OBJECTS_1))
all: lo-error.h f77-fcn.h octave2.a octave2.lib ../dll/octave2.dll
liboctave.lib: $(OBJECTS)
@rm -f $@
emxomfar -p32 $(ARFLAGS) $@ $(OBJECTS)
clean:
rm -f *.lib *.a *.o *.obj *.def
rm -f lo-error.h f77-fcn.h
rm -f ../dll/octave2.dll
f77-fcn.h: ../libcruft/misc/f77-fcn.h
cp ../libcruft/misc/f77-fcn.h f77-fcn.h
lo-error.h: ../libcruft/misc/lo-error.h
cp ../libcruft/misc/lo-error.h lo-error.h
octave2.def: liboctave.lib
@echo LIBRARY octave2 INITINSTANCE TERMINSTANCE > $@
@echo DESCRIPTION 'octave2.dll, (c) Klaus Gebhardt 1995-1996' >> $@
@echo. >> $@
@echo DATA >> $@
@echo MULTIPLE NONSHARED >> $@
@echo. >> $@
@echo EXPORTS >> $@
emxexp -o1 -n liboctave.lib >> $@
DLLINIT = #-ldllinit
CRFT = -L../libcruft -lcruft1 -lcruft2 -lcruft3 -lcruft4
STDLIBS = -lreadline -lkpathsea -lmkfifo -lstdcpp2 -lgpp2
LIBS = $(DLLINIT) $(CRFT) $(STDLIBS)
ZFLAGS = -Zdll -Zomf -Zcrtdll
../dll/octave2.dll: octave2.def liboctave.lib
$(CC) -o $@ octave2.def liboctave.lib $(LIBS) $(ZFLAGS)