home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / progs / pari / pari_137 / src / makefile.por < prev    next >
Makefile  |  1992-05-20  |  3KB  |  135 lines

  1. # General Makefile for C-version of gp
  2.  
  3. # Change these installation directories to suit your needs
  4.  
  5. LIBDIR = /usr/local/lib
  6. BINDIR = /usr/local/bin
  7. INCLUDEDIR = /usr/include/pari-include
  8.  
  9. CC = cc
  10.  
  11. # You can set CC=gcc instead. You can also (if you want to debug gp yourself)
  12. # add the -g option in CFLAGS. However, remember that, while gcc accepts -g
  13. # and -O  simultaneously, cc usually does not.
  14.  
  15. CFLAGS = -O -c
  16.  
  17. OBJS=mp.o anal.o alglin1.o alglin2.o base.o arith1.o arith2.o bibli1.o bibli2.o elliptic.o es.o gen1.o gen2.o gen3.o init.o errmessages.o helpmessages.o polarit1.o polarit2.o trans1.o trans2.o trans3.o version.o
  18.  
  19. # Be sure to "make clean" before doing a
  20. # make on a different architecture
  21.  
  22. all:    genpari.h gp
  23.  
  24. gp:    gp.o $(OBJS) plot.o buch.o genpari.h
  25.     $(CC) -O -o gp gp.o $(OBJS) plot.o buch.o -lm
  26.  
  27. genpari.h:    genpariother.h
  28.     rm -f genpari.h;ln -s genpariother.h genpari.h;
  29.  
  30. mp.o:    mp.c
  31.     $(CC) $(CFLAGS) mp.c
  32.  
  33. gp.o:    gp.c
  34.     $(CC) $(CFLAGS) gp.c 
  35.  
  36. alglin1.o:    alglin1.c
  37.     $(CC) $(CFLAGS) alglin1.c
  38.  
  39. alglin2.o:    alglin2.c
  40.     $(CC) $(CFLAGS) alglin2.c
  41.  
  42. anal.o:    anal.c
  43.     $(CC) $(CFLAGS) anal.c
  44.  
  45. arith1.o:    arith1.c
  46.     $(CC) $(CFLAGS) arith1.c
  47.  
  48. arith2.o:    arith2.c
  49.     $(CC) $(CFLAGS) arith2.c
  50.  
  51. base.o:    base.c
  52.     $(CC) $(CFLAGS) base.c
  53.  
  54. buch.o:    buch.c
  55.     $(CC) $(CFLAGS) buch.c
  56.  
  57. bibli1.o:    bibli1.c
  58.     $(CC) $(CFLAGS) bibli1.c
  59.  
  60. bibli2.o:    bibli2.c
  61.     $(CC) $(CFLAGS) bibli2.c
  62.  
  63. elliptic.o:    elliptic.c
  64.     $(CC) $(CFLAGS) elliptic.c
  65.  
  66. es.o:    es.c
  67.     $(CC) $(CFLAGS) es.c
  68.  
  69. gen1.o:    gen1.c
  70.     $(CC) $(CFLAGS) gen1.c
  71.  
  72. gen2.o:    gen2.c
  73.     $(CC) $(CFLAGS) gen2.c
  74.  
  75. gen3.o:    gen3.c
  76.     $(CC) $(CFLAGS) gen3.c
  77.  
  78. init.o:    init.c
  79.     $(CC) $(CFLAGS) init.c
  80.  
  81. errmessages.o:    errmessages.c
  82.     $(CC) $(CFLAGS) errmessages.c
  83.  
  84. helpmessages.o:    helpmessages.c
  85.     $(CC) $(CFLAGS) helpmessages.c
  86.  
  87. plot.c:    plot.null
  88.     rm -f plot.c;ln -s plot.null plot.c
  89.  
  90. # if you are using XWindows, replace plot.null by plot.X in the two lines above
  91.  
  92. plot.o:        plot.c
  93.     $(CC) $(CFLAGS) plot.c
  94.  
  95. dummy.o:    dummy.c
  96.     $(CC) $(CFLAGS) dummy.c
  97.  
  98. polarit1.o:    polarit1.c
  99.     $(CC) $(CFLAGS) polarit1.c
  100.  
  101. polarit2.o:    polarit2.c
  102.     $(CC) $(CFLAGS) polarit2.c
  103.  
  104. trans1.o:    trans1.c
  105.     $(CC) $(CFLAGS) trans1.c
  106.  
  107. trans2.o:    trans2.c
  108.     $(CC) $(CFLAGS) trans2.c
  109.  
  110. trans3.o:    trans3.c
  111.     $(CC) $(CFLAGS) trans3.c
  112.  
  113. version.o:    versionport.c
  114.     $(CC) $(CFLAGS) -o version.o versionport.c
  115.  
  116. manual:    
  117.      (cd tex;make manual)
  118.  
  119. install:    dummy.o
  120.     install -c genpari.h $(INCLUDEDIR)
  121.     install -c gencom.h  $(INCLUDEDIR)
  122.     install -c genport.h $(INCLUDEDIR)
  123.     install -c erreurs.h $(INCLUDEDIR)
  124.     -\rm libpari.a;ar r libpari.a $(OBJS) dummy.o
  125.     install libpari.a $(LIBDIR)
  126.     ranlib $(LIBDIR)/libpari.a
  127.     install -c -s gp $(BINDIR)
  128.     strip $(BINDIR)/gp
  129.  
  130. clean:    
  131.     -\rm *.o libpari.a gp genpari.h *.log *.dvi *.std *.idx *.toc; \
  132.     (cd tex;rm -f *.log *.dvi *.std *.idx *.toc)
  133.  
  134.  
  135.