makefile 5.1 KB

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