makefile 5.5 KB

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