makefile 5.5 KB

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