home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume8 / gnuplot1.10A / part03 / makefile.3b1 < prev    next >
Encoding:
Makefile  |  1989-09-09  |  3.8 KB  |  125 lines

  1. # "make all" will compile all the necessary programs, gnuplot itself, the
  2. # help system and helptree (to make the help tree out of the flat file.)
  3. #
  4. # "make install will install all the necessary pieces to run gnuplot
  5. # successfully.  This includes creating the help tree in /usr/local/help.
  6.  
  7. # If you do not wish the destinations of the executable and manual page to
  8. # be at the default locations (see below), feel free to change them.
  9. # The location of the help system and help tree also have default values.
  10. # If you want them somewhere else or would like to test the whole system
  11. # before you run "make install", you have to set environment variables so
  12. # that gnuplot finds them.  See README.3B1 for details.
  13.  
  14. # where to install executable on 'make install'
  15. DEST=/usr/local/bin/gnuplot
  16. # where to install man page on 'make man_install'
  17. MANDEST=/usr/man/man1/gnuplot.1
  18.  
  19. # -DFORK if you have vfork()
  20. # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
  21. # -DNOCOPY if you don't have a memcpy() by any name
  22. # -DGAMMA if you've got gamma(3)
  23. # -O if you trust your compiler's optimizer
  24. CFLAGS = -DGAMMA -DUNIXPC -O # -gx # debug it.
  25.  
  26. # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
  27. # -DAED         AED 512 and AED 767
  28. # -DBITGRAPH    BBN BitGraph
  29. # -DHP26        HP2623A and maybe others
  30. # -DHP75        HP7580, and probably other HPs
  31. # -DHPLJET      HP LaserJet laserprinter
  32. # -DPOSTSCRIPT  Postscript
  33. # -DQMS         QMS/QUIC laserprinter (Talaris 1200 and others)
  34. # -DREGIS       ReGis graphics (vt125, vt220, vt240, Gigis...)
  35. # -DSELANAR     Selanar
  36. # -DTEK         Tektronix 4010, and probably others
  37. # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
  38. # -DUNIXPLOT    unixplot
  39. # -DV384        Vectrix 384 and tandy color printer
  40.  
  41. TERMFLAGS = -DUNIXPC -DUNIXPLOT
  42.  
  43.  
  44. OBJS =     command.o eval.o graphics.o internal.o misc.o parse.o plot.o scanner.o\
  45.     standard.o term.o util.o
  46.  
  47. # -lplot if you have -DUNIXPLOT
  48. LIBS = -lm -lplot
  49.  
  50. # If you do not wish to compile the help system or make the help directory
  51. # tree, feel free to comment out the appropriate lines that do it.
  52.  
  53. all:    gnuplot help_system doc_tree
  54.  
  55. gnuplot: $(OBJS) version.o
  56.     ld /lib/crt0s.o /lib/shlib.ifile $(OBJS) version.o $(LIBS) -o gnuplot
  57.  
  58. help_system:
  59.     ( cd help ; make )
  60.  
  61. doc_tree:
  62.     ( cd docs ; make helptree )
  63.  
  64. # note that directory /usr/local/help must exist for the help tree
  65. # to be created
  66. install: gnuplot help_system doc_tree man_install
  67.     cp gnuplot $(DEST)
  68.     strip $(DEST)
  69.     docs/helptree -t /usr/local/help/gnuplot < docs/gnuplot.hlp
  70.     cd help; make install
  71.  
  72. man_install: gnuplot.1
  73.     cp gnuplot.1 $(MANDEST)
  74.  
  75. term.o: term.c aed.trm bitgraph.trm hp26.trm hp75.trm hpljet.trm pc.trm \
  76.     postscpt.trm qms.trm regis.trm selanar.trm tek.trm unixpc.trm \
  77.     unixplot.trm v384.trm
  78.     cc $(CFLAGS) $(TERMFLAGS) -c term.c
  79.  
  80.  
  81. $(OBJS): plot.h
  82.  
  83. clean:
  84.     rm -f *.o gnuplot
  85.  
  86.     ( cd help ; make clean )
  87.     ( cd docs ; make clean )
  88.  
  89. spotless:
  90.     rm -f *.o gnuplot Makefile help/Makefile
  91.  
  92.     ( cd help ; make clean -f makefile.unx )
  93.     ( cd docs ; make clean )
  94.  
  95. #
  96. # if you have the Rich $alz shar package, you can use this make shar section.
  97. #
  98.  
  99. shars:    spotless shar/gnuplot.shar.1 shar/gnuplot.shar.2 \
  100.     shar/gnuplot.shar.3 shar/gnuplot.shar.4 shar/gnuplot.shar.5 \
  101.     shar/gnuplot.shar.6 shar/gnuplot.shar.7
  102.  
  103. shar/gnuplot.shar.1: [1-9]* [A-Z]* [a-f]*
  104.     shar -n1 -e7 [1-9]* [A-Z]* [a-f]* > shar/gnuplot.shar.1
  105.  
  106. shar/gnuplot.shar.2: [g-l]*
  107.     shar -n2 -e7 [g-l]* > shar/gnuplot.shar.2
  108.  
  109. shar/gnuplot.shar.3: [m-o]* p[a-i]*
  110.     shar -n3 -e7 [m-o]* p[a-i]* > shar/gnuplot.shar.3
  111.  
  112. shar/gnuplot.shar.4: p[j-z]* [q-t]*
  113.     shar -n4 -e7 p[j-z]* [q-t]* > shar/gnuplot.shar.4
  114.  
  115. shar/gnuplot.shar.5: [u-z]*
  116.     shar -n5 -e7 [u-z]* > shar/gnuplot.shar.5
  117.  
  118. shar/gnuplot.shar.6: docs/[A-Z]* docs/[a-g]*
  119.     cd docs; make clean; cd ..
  120.     shar -n6 -e7 docs docs/[A-Z]* docs/[a-g]* > shar/gnuplot.shar.6
  121.  
  122. shar/gnuplot.shar.7: docs/[h-z]* help/*
  123.     shar -n7 -e7 docs/[h-z]* help help/* > shar/gnuplot.shar.7
  124.  
  125.