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

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