makefile.in 5.8 KB

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