home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / mesch12a.zip / makefile < prev    next >
Makefile  |  1994-02-14  |  6KB  |  203 lines

  1. # Generated automatically from makefile.in by configure.
  2. #
  3. # Makefile for Meschach via autoconf
  4. #
  5. # Copyright (C) David Stewart & Zbigniew Leyk 1993
  6. #
  7. # $Id: $
  8. #
  9.  
  10. srcdir = .
  11. VPATH = .
  12.  
  13. CC = cc
  14.  
  15. DEFS = -DHAVE_CONFIG_H
  16. LIBS =  -lm
  17. RANLIB = ranlib
  18.  
  19.  
  20. CFLAGS = -O
  21.  
  22.  
  23. .c.o:
  24.     $(CC) -c $(CFLAGS) $(DEFS) $<
  25.  
  26. SHELL = /bin/sh
  27. MES_PAK = mesch12a
  28. TAR = tar
  29. SHAR = stree -u
  30. ZIP = zip -r -l
  31. FLIST = FILELIST
  32.  
  33. ###############################
  34.  
  35. LIST1 = copy.o err.o matrixio.o memory.o vecop.o matop.o pxop.o \
  36.     submat.o init.o otherio.o machine.o matlab.o ivecop.o version.o \
  37.     meminfo.o memstat.o
  38. LIST2 = lufactor.o bkpfacto.o chfactor.o qrfactor.o solve.o hsehldr.o \
  39.     givens.o update.o norm.o hessen.o symmeig.o schur.o svd.o fft.o \
  40.     mfunc.o bdfactor.o
  41. LIST3 = sparse.o sprow.o sparseio.o spchfctr.o splufctr.o \
  42.     spbkp.o spswap.o iter0.o itersym.o iternsym.o
  43. ZLIST1 = zmachine.o zcopy.o zmatio.o zmemory.o zvecop.o zmatop.o znorm.o \
  44.      zfunc.o 
  45. ZLIST2 = zlufctr.o zsolve.o zmatlab.o zhsehldr.o zqrfctr.o \
  46.          zgivens.o  zhessen.o zschur.o
  47.  
  48. # they are no longer supported
  49. # if you use them add oldpart to all and sparse
  50. OLDLIST = conjgrad.o lanczos.o arnoldi.o
  51.  
  52. ALL_LISTS = $(LIST1) $(LIST2) $(LIST3) $(ZLIST1) $(ZLIST2) $(OLDLIST)
  53.  
  54. HBASE = err.h meminfo.h machine.h matrix.h
  55.  
  56. HLIST = $(HBASE) iter.h matlab.h matrix2.h  oldnames.h sparse.h \
  57.     sparse2.h  zmatrix.h zmatrix2.h
  58.  
  59. TORTURE = torture.o sptort.o ztorture.o memtort.o itertort.o \
  60.      mfuntort.o iotort.o
  61.  
  62. OTHERS = dmacheps.c extras.c fmacheps.c maxint.c  makefile.in \
  63.      README configure configure.in machine.h.in copyright \
  64.      tutorial.c tutadv.c rk4.dat ls.dat makefile $(FLIST)
  65.  
  66.  
  67. # Different configurations
  68. all:  part1 part2 part3 zpart1 zpart2 
  69. basic: part1 part2
  70. sparse: part1 part2 part3 
  71. complex: part1 part2 zpart1 zpart2
  72.  
  73.  
  74. $(LIST1): $(HBASE)
  75. part1: $(LIST1)
  76.     ar ru meschach.a $(LIST1); $(RANLIB) meschach.a
  77.  
  78. $(LIST2): $(HBASE) matrix2.h
  79. part2: $(LIST2)
  80.     ar ru meschach.a $(LIST2); $(RANLIB) meschach.a
  81. schur.o: schur.c $(HBASE) matrix2.h
  82.     cc -c $(DEFS) schur.c
  83.  
  84. $(LIST3): $(HBASE) sparse.h sparse2.h
  85. part3: $(LIST3)
  86.     ar ru meschach.a $(LIST3); $(RANLIB) meschach.a
  87.  
  88. $(ZLIST1): $(HBASDE) zmatrix.h
  89. zpart1: $(ZLIST1)
  90.     ar ru meschach.a $(ZLIST1); ranlib meschach.a
  91.  
  92. $(ZLIST2): $(HBASE) zmatrix.h zmatrix2.h 
  93. zpart2: $(ZLIST2)
  94.     ar ru meschach.a $(ZLIST2); ranlib meschach.a
  95.  
  96. $(OLDLIST): $(HBASE) sparse.h sparse2.h 
  97. oldpart: $(OLDLIST)
  98.     ar ru meschach.a $(OLDLIST); ranlib meschach.a
  99.  
  100.  
  101.  
  102. #######################################
  103.  
  104. tar:
  105.     - /bin/rm -f $(MES_PAK).tar
  106.     chmod 644 `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  107.     $(OTHERS) $(HLIST)  `echo $(TORTURE) | sed -e 's/\.o/.c/g'` 
  108.     chmod 755 configure
  109.     $(MAKE) list
  110.     $(TAR) cvf $(MES_PAK).tar \
  111.      `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  112.     $(HLIST)  $(OTHERS) \
  113.     `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  114.     MACHINES DOC
  115.  
  116. # use this only for PC machines    
  117. msdos-zip:
  118.     - /bin/rm -f $(MES_PAK).zip
  119.     chmod 644 `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  120.     $(OTHERS) $(HLIST) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` 
  121.     chmod 755 configure
  122.     $(MAKE) list
  123.     $(ZIP)  $(MES_PAK).zip \
  124.      `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  125.     $(HLIST)  $(OTHERS) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  126.     MACHINES DOC
  127.     
  128.  
  129. fullshar:
  130.     - /bin/rm -f $(MES_PAK).shar;
  131.     chmod 644 `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  132.     $(OTHERS) $(HLIST) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` 
  133.     chmod 755 configure
  134.     $(MAKE) list
  135.     $(SHAR) `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  136.     $(HLIST)  $(OTHERS) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  137.     MACHINES DOC > $(MES_PAK).shar
  138.  
  139. shar:
  140.     - /bin/rm -f meschach1.shar meschach2.shar meschach3.shar \
  141.     meschach4.shar oldmeschach.shar meschach0.shar 
  142.     chmod 644 `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  143.     $(OTHERS) $(HLIST) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` 
  144.     chmod 755 configure    
  145.     $(MAKE) list
  146.     $(SHAR) `echo $(LIST1) | sed -e 's/\.o/.c/g'` > meschach1.shar
  147.     $(SHAR) `echo $(LIST2) | sed -e 's/\.o/.c/g'` > meschach2.shar
  148.     $(SHAR) `echo $(LIST3) | sed -e 's/\.o/.c/g'` > meschach3.shar    
  149.     $(SHAR) `echo $(ZLIST1) | sed -e 's/\.o/.c/g'` \
  150.       `echo $(ZLIST2) | sed -e 's/\.o/.c/g'` > meschach4.shar
  151.     $(SHAR) `echo $(OLDLIST) | sed -e 's/\.o/.c/g'` > oldmeschach.shar
  152.     $(SHAR) $(OTHERS) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  153.       $(HLIST)  DOC MACHINES  > meschach0.shar
  154.  
  155. list:
  156.     /bin/rm -f $(FLIST)
  157.     ls -lR `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  158.     `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  159.     $(HLIST) $(OTHERS) MACHINES DOC \
  160.     |awk '/^$$/ {print};/^[-d]/ {printf("%s %s   %10d %s %s %s %s\n", \
  161.      $$1,$$2,$$5,$$6,$$7,$$8,$$9)}; /^[^-d]/ {print}' \
  162.     > $(FLIST)
  163.  
  164.  
  165.  
  166. clean:
  167.     /bin/rm -f *.o core asx5213a.mat iotort.dat 
  168.  
  169. cleanup:
  170.     /bin/rm -f *.o core asx5213a.mat iotort.dat *.a 
  171.  
  172. alltorture: torture sptort ztorture memtort itertort mfuntort iotort
  173.  
  174. torture:torture.o meschach.a
  175.     $(CC) $(CFLAGS) $(DEFS) -o torture torture.o \
  176.     meschach.a $(LIBS)
  177. sptort:sptort.o meschach.a
  178.     $(CC) $(CFLAGS) $(DEFS) -o sptort sptort.o \
  179.     meschach.a $(LIBS)
  180. memtort: memtort.o meschach.a
  181.     $(CC) $(CFLAGS) $(DEFS) -o memtort memtort.o \
  182.     meschach.a $(LIBS)
  183. ztorture:ztorture.o meschach.a
  184.     $(CC) $(CFLAGS) $(DEFS) -o ztorture ztorture.o \
  185.     meschach.a $(LIBS)
  186. itertort: itertort.o meschach.a
  187.     $(CC) $(CFLAGS) $(DEFS) -o itertort itertort.o \
  188.     meschach.a $(LIBS)
  189.  
  190. iotort: iotort.o meschach.a
  191.     $(CC) $(CFLAGS) $(DEFS) -o iotort iotort.o \
  192.     meschach.a $(LIBS)
  193. mfuntort: mfuntort.o meschach.a
  194.     $(CC) $(CFLAGS) $(DEFS) -o mfuntort mfuntort.o \
  195.     meschach.a $(LIBS)
  196. tstmove: tstmove.o meschach.a
  197.     $(CC) $(CFLAGS) $(DEFS) -o tstmove tstmove.o \
  198.     meschach.a $(LIBS)
  199. tstpxvec: tstpxvec.o meschach.a
  200.     $(CC) $(CFLAGS) $(DEFS) -o tstpxvec tstpxvec.o \
  201.     meschach.a $(LIBS)
  202.  
  203.