makefile 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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: makefile.in,v 1.4 1994/03/14 01:24:06 des Exp $
  8. #
  9. srcdir = .
  10. VPATH = .
  11. CC = cc
  12. DEFS = -DHAVE_CONFIG_H
  13. LIBS = -lm
  14. RANLIB = :
  15. CFLAGS = -O
  16. .c.o:
  17. $(CC) -c $(CFLAGS) $(DEFS) $<
  18. SHELL = /bin/sh
  19. MES_PAK = mesch12b
  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. # the dependencies **between** the parts are for dmake
  51. all: part1 part2 part3 zpart1 zpart2 ar_create
  52. part2: part1
  53. part3: part2
  54. basic: part1 part2
  55. sparse: part1 part2 part3
  56. zpart2: zpart1
  57. complex: part1 part2 zpart1 zpart2
  58. $(LIST1): $(HBASE)
  59. part1: $(LIST1)
  60. ar ru meschach.a $(LIST1)
  61. $(RANLIB) meschach.a
  62. $(LIST2): $(HBASE) matrix2.h
  63. part2: $(LIST2)
  64. ar ru meschach.a $(LIST2)
  65. $(RANLIB) meschach.a
  66. $(LIST3): $(HBASE) sparse.h sparse2.h
  67. part3: $(LIST3)
  68. ar ru meschach.a $(LIST3)
  69. $(RANLIB) meschach.a
  70. $(ZLIST1): $(HBASDE) zmatrix.h
  71. zpart1: $(ZLIST1)
  72. ar ru meschach.a $(ZLIST1)
  73. $(RANLIB) meschach.a
  74. $(ZLIST2): $(HBASE) zmatrix.h zmatrix2.h
  75. zpart2: $(ZLIST2)
  76. ar ru meschach.a $(ZLIST2)
  77. $(RANLIB) meschach.a
  78. $(OLDLIST): $(HBASE) sparse.h sparse2.h
  79. oldpart: $(OLDLIST)
  80. ar ru meschach.a $(OLDLIST)
  81. $(RANLIB) meschach.a
  82. #######################################
  83. tar:
  84. - /bin/rm -f $(MES_PAK).tar
  85. chmod 644 `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  86. $(OTHERS) $(HLIST) `echo $(TORTURE) | sed -e 's/\.o/.c/g'`
  87. chmod 755 configure
  88. $(MAKE) list
  89. $(TAR) cvf $(MES_PAK).tar \
  90. `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  91. $(HLIST) $(OTHERS) \
  92. `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  93. MACHINES DOC
  94. # use this only for PC machines
  95. msdos-zip:
  96. - /bin/rm -f $(MES_PAK).zip
  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. $(ZIP) $(MES_PAK).zip \
  102. `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  103. $(HLIST) $(OTHERS) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  104. MACHINES DOC
  105. fullshar:
  106. - /bin/rm -f $(MES_PAK).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 $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  112. $(HLIST) $(OTHERS) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  113. MACHINES DOC > $(MES_PAK).shar
  114. shar:
  115. - /bin/rm -f meschach1.shar meschach2.shar meschach3.shar \
  116. meschach4.shar oldmeschach.shar meschach0.shar
  117. chmod 644 `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  118. $(OTHERS) $(HLIST) `echo $(TORTURE) | sed -e 's/\.o/.c/g'`
  119. chmod 755 configure
  120. $(MAKE) list
  121. $(SHAR) `echo $(LIST1) | sed -e 's/\.o/.c/g'` > meschach1.shar
  122. $(SHAR) `echo $(LIST2) | sed -e 's/\.o/.c/g'` > meschach2.shar
  123. $(SHAR) `echo $(LIST3) | sed -e 's/\.o/.c/g'` > meschach3.shar
  124. $(SHAR) `echo $(ZLIST1) | sed -e 's/\.o/.c/g'` \
  125. `echo $(ZLIST2) | sed -e 's/\.o/.c/g'` > meschach4.shar
  126. $(SHAR) `echo $(OLDLIST) | sed -e 's/\.o/.c/g'` > oldmeschach.shar
  127. $(SHAR) $(OTHERS) `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  128. $(HLIST) DOC MACHINES > meschach0.shar
  129. list:
  130. /bin/rm -f $(FLIST)
  131. ls -lR `echo $(ALL_LISTS) | sed -e 's/\.o/.c/g'` \
  132. `echo $(TORTURE) | sed -e 's/\.o/.c/g'` \
  133. $(HLIST) $(OTHERS) MACHINES DOC \
  134. |awk '/^$$/ {print};/^[-d]/ {printf("%s %s %10d %s %s %s %s\n", \
  135. $$1,$$2,$$5,$$6,$$7,$$8,$$9)}; /^[^-d]/ {print}' \
  136. > $(FLIST)
  137. clean:
  138. /bin/rm -f *.o core asx5213a.mat iotort.dat
  139. cleanup:
  140. /bin/rm -f *.o core asx5213a.mat iotort.dat *.a
  141. realclean:
  142. /bin/rm -f *.o core asx5213a.mat iotort.dat *.a
  143. /bin/rm -f torture sptort ztorture memtort itertort mfuntort iotort
  144. /bin/rm -f makefile machine.h config.status maxint macheps
  145. alltorture: torture sptort ztorture memtort itertort mfuntort iotort
  146. torture:torture.o meschach.a
  147. $(CC) $(CFLAGS) $(DEFS) -o torture torture.o \
  148. meschach.a $(LIBS)
  149. sptort:sptort.o meschach.a
  150. $(CC) $(CFLAGS) $(DEFS) -o sptort sptort.o \
  151. meschach.a $(LIBS)
  152. memtort: memtort.o meschach.a
  153. $(CC) $(CFLAGS) $(DEFS) -o memtort memtort.o \
  154. meschach.a $(LIBS)
  155. ztorture:ztorture.o meschach.a
  156. $(CC) $(CFLAGS) $(DEFS) -o ztorture ztorture.o \
  157. meschach.a $(LIBS)
  158. itertort: itertort.o meschach.a
  159. $(CC) $(CFLAGS) $(DEFS) -o itertort itertort.o \
  160. meschach.a $(LIBS)
  161. iotort: iotort.o meschach.a
  162. $(CC) $(CFLAGS) $(DEFS) -o iotort iotort.o \
  163. meschach.a $(LIBS)
  164. mfuntort: mfuntort.o meschach.a
  165. $(CC) $(CFLAGS) $(DEFS) -o mfuntort mfuntort.o \
  166. meschach.a $(LIBS)
  167. tstmove: tstmove.o meschach.a
  168. $(CC) $(CFLAGS) $(DEFS) -o tstmove tstmove.o \
  169. meschach.a $(LIBS)
  170. tstpxvec: tstpxvec.o meschach.a
  171. $(CC) $(CFLAGS) $(DEFS) -o tstpxvec tstpxvec.o \
  172. meschach.a $(LIBS)
  173. ar_create:
  174. rm meschach.a
  175. ar ruv meschach.a $(LIST1) $(LIST2) $(LIST3) \
  176. $(ZLIST1) $(ZLIST2) $(OLDLIST)