home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 May / cica_0595_4.zip / cica_0595_4 / UTIL / GPT34SRC / MAKEFILE.UNX < prev    next >
Text File  |  1993-06-04  |  34KB  |  896 lines

  1. #
  2. # $Id: makefile.unx%v 3.38.2.134 1993/06/04 01:03:20 woo Exp woo $
  3. #
  4. #
  5. ############################################################
  6. #
  7. # GNUPLOT 3.0 Makefile (Unix X11 support) for
  8. #  Apollo/Sun/Dec5000/IBM-RS6000/HP9000/SGI/3B1/386IX/Cray
  9. #
  10. # Original version by:
  11. #   oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA)
  12. #   Wed, 3 Jul 91 14:31:37 -0400
  13. #
  14. #>>> Customizing: You must customize part of this makefile for your site.
  15. #>>> Then type 'make' for further instructions.
  16. #>>> Customization instructions look like these lines do (#>>>).
  17. #
  18.  
  19. .NOEXPORT:
  20.  
  21. TARGET = All# What to make by default
  22.  
  23. ############################################################
  24. #>>> Decide where the binaries and manuals will go.
  25. # directory where to install executables on 'make install'
  26. DEST=/usr/local/bin
  27. # directory for installing man page on 'make man_install'.
  28. MANDEST=/usr/local/man/manl
  29. # where to install help file gnuplot.gih
  30. HELPDEST=/usr/local/lib
  31. #HELPDEST=docs/gnuplot.gih
  32. # Where to send email about bugs and comments (locally)
  33. EMAIL=bug-gnuplot@dartmouth.edu
  34.  
  35. ############################################################
  36. #>>> Some machines may need MAKE to be defined explicitly
  37. MAKE   = make
  38. #>>> Choose your C compiler and basic compiler flags.
  39. # the C compiler
  40. CC     = cc
  41. # -O if you trust your compiler's optimizer
  42. COPTS  = -O
  43. # default loading command
  44. LD     = $(CC) $(CFLAGS)
  45. NPROC  = 2
  46. RCSVER = 3.38.2.50
  47. RCSCOM = "D. Lewart's RS6000 fixes"
  48. #
  49. ############################################################
  50. #>>> Choose some optional features.
  51. #>>> At this point there are only two optional features:
  52. # READLINE:
  53. #   If READLINE is defined, then command-line editing is supported.
  54. #   Otherwise, your normal terminal editing is all you get.
  55. #   Some machines will not support this, and they will turn this
  56. #   option off (for example, apollos running SR10.2 or SR10.3 and
  57. #   loaded with BSD4.3 instead of SYS5). Note: problems with
  58. #   gnuplot prompts have been noted when this feature is selected
  59. #   on IBM RS/6000 AIX, and compile errors are encountered on
  60. #   Sequent Dynix 3 and Convex OS 9.0.
  61. # NOCWDRC:
  62. #   If NOCWDRC is defined, then any .gnuplot in the current directory
  63. #   is not read on startup. This is a security consideration
  64. #   especially for root users ( we recommend you define -DNOCWDRC ).
  65. OPTIONS = -DREADLINE -DNOCWDRC
  66.  
  67. #>>> Optionally install the lasergnu script.
  68. # Lasergnu is a handy shell script for creating a plot from the
  69. # command line and sending it directly to the printer. It currently
  70. # supports PostScript and imagen printers, and probably would need
  71. # tailoring to your site.
  72. # Use lasergnu_install to install lasergnu.
  73. # Use lasergnu_noinstall to not install lasergnu (default).
  74. LASERGNU = lasergnu_install
  75.  
  76. ############################################################
  77. # X11 support
  78. #
  79.  
  80. #>>> List your X11 libraries
  81. X11LIBS = -lX11
  82.  
  83. #>>> List where the X11 include directory is found (if other than /usr/include)
  84. X11INCLUDES =
  85.  
  86. #>>> List additional CFLAGS for X11 compilation
  87. # -DOLD_SELECT if you have an old 4.2 BSD OS (e.g. Sun OS 3.5) and
  88. #   encounter compile error for missing include file <sys/select.h>
  89. # -DBSD_TYPES if your system defines FD_* macros for select in
  90. #   <sys/bsdtypes.h>
  91. # -DOW_BOTCH if you encounter load error for missing _XtInherit on Sun
  92. #   Open Windows platforms
  93. # -ISC22 to circumvent missing plots past the first on ISC 2.2
  94. X11FLAGS =
  95.  
  96. #>>> You shouldn't have to change these, since they are controlled by
  97. #>>> Machine dependent definitions below.
  98. #       Compile option for plot.c and TERMFLAGS, to include X11 support
  99. PLOTXFLAG = -DX11
  100. #       make gnuplot_x11 by default
  101. GNUPLOT_X11 = gnuplot_x11
  102. #       install gnuplot_x11 by default
  103. X11INSTALL = x11_install
  104.  
  105. ############################################################
  106. #>>> Okay, you've changed enough. Now type 'make'.
  107.  
  108. ############################################################
  109. # This is used to pass many of the above definitions to make
  110. # subprocesses. Don't change this.
  111. MY_FLAGS  = CC="$(CC)" COPTS="$(COPTS)" DEST="$(DEST)" \
  112.         MANDEST="$(MANDEST)" HELPDEST="$(HELPDEST)" \
  113.         EMAIL="$(EMAIL)" LASERGNU="$(LASERGNU)"
  114.  
  115. ############################################################
  116. # Explanations of CFLAGS definitions.
  117. #  These should not need to be changed by you.
  118. # They are set correctly for each machine below. If your machine
  119. # doesn't fit the one of the patterns, override on the make command
  120. # line or make a new target for it and a new _FLAGS definition.
  121. #  -DNOVFORK if you're unix and you have don't have vfork()
  122. #  -DMEMSET if you need to use memset() instead of bzero()
  123. #  -DMEMCPY if your bcopy() is called memcpy()
  124. #  -DNOCOPY if you don't have a memcpy() by any name
  125. #  -DGAMMA=foo if your gamma function is called foo(). Apollos have
  126. #    lgamma(3m). The default is -DGAMMA=gamma.
  127. #  -DGETCWD if your unix uses getcwd() instead of getcd()
  128. #    this is needed by HP-UX and Cray Unicos systems.
  129. #  -DULTRIX_KLUDGE if you run X windows on Ultrix and experience the
  130. #    "every other plot" problem.
  131. #  -DCRIPPLED_SELECT if "select errors" are encountered with X. This
  132. #    option is needed on SVR3 platforms with incomplete support for
  133. #    the BSD select() system call
  134. #  -DXPG3_LOCALE if your system uses the 'setlocale' function to
  135. #    support foreign charactersets (currently only ISO8859-1).
  136. #  -Dunix is required to explicitly define "unix" for SCO and IBM
  137. #          RS/6000 running AIX 3.2
  138. #  -fswitch if you are compiling on a Sun3 (or even -f68881)
  139. #    (but -fswitch is buggy on some systems, so watch out)
  140.  
  141. # Defaults in case the user types 'make All' directly
  142. # Should match X11_FLAGS's CFLAGS definition
  143. CFLAGS = $(COPTS) $(OPTIONS)
  144.  
  145. ############################################################
  146. # Terminal (device) support
  147. #
  148. # All devices available to a given machine are compiled in by default.
  149. # This documents the flags available in TERMFLAGS, although TERMFLAGS
  150. # is usually controlled by the machine-dependent definitions below.
  151. # See other terminal defines in term.h.
  152. # Define ULTRIX_KLUDGE if you have the every-other plot problem in Ultrix X11.
  153. #
  154. # -DAPOLLO      Apollo Graphics Primitive Resource (window resize after replot)
  155. # -DGPR         Apollo Graphics Primitive Resource (fixed-size window)
  156. # -DCGI         SCO CGI
  157. # -DIRIS4D      IRIS4D series computer
  158. # -DSUN         Sun Microsystems Workstation
  159. # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
  160. # -DUNIXPLOT    unixplot
  161. # -DGNUGRAPH    use GNU graphics version of UNIX plot library
  162. #               This can only be used in combination with -DUNIXPLOT
  163. # -DX11         X11 Window System (This is $(PLOTXFLAG))
  164. TERMFLAGS = -Iterm $(PLOTXFLAG)
  165.  
  166. ############################################################
  167. # Library explanations.
  168. #  You shouldn't need to adjust this; again, it is handled by the
  169. # machine-dependent definitions below.
  170. #
  171. #  -lplot if you have -DUNIXPLOT in TERMFLAGS
  172. #  -lsuntool -lsunwindow -lpixrect  if you have -DSUN in TERMFLAGS
  173. #  -lgl_s if -DIRIS4D in TERMFLAGS
  174. #  -lccgi if -DCGI in TERMFLAGS
  175. LIBS = -lm# -lplot  (this library is no longer shipped on SUN systems)
  176.  
  177. ####################################################################
  178. # List of object files except version.o
  179. OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  180.        internal.o misc.o parse.o plot.o readline.o scanner.o \
  181.        setshow.o specfun.o standard.o term.o util.o gnubin.o binary.o
  182.  
  183. NEXTOBJS = epsviewe.o
  184. ############################################################
  185. # Machine-dependent settings.
  186. #
  187. X11_FLAGS = \
  188.            CFLAGS="$(COPTS) $(OPTIONS)" \
  189.            LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  190.            X11LIBS="$(X11LIBS)" \
  191.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  192.            X11INSTALL="$(X11INSTALL)" \
  193.            TERMFLAGS="$(TERMFLAGS)"
  194.  
  195. DEC_OSF_FLAGS = \
  196.            CFLAGS="$(COPTS) $(OPTIONS) -I/usr/sys/include -I/usr/sys/BINARY -DANSI -DNOVFORK -DNOGAMMA -D_XOPEN_SOURCE " \
  197.            LIBS="$(LIBS)" \
  198.            X11FLAGS="$(X11FLAGS) -DMOTIF -D_NO_PROTO -D_OSF_SOURCE" \
  199.            X11INCLUDES="$(X11INCLUDES) -I/usr/include/Xm" \
  200.            X11LIBS="$(X11LIBS)" \
  201.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  202.            X11INSTALL="$(X11INSTALL)" \
  203.            TERMFLAGS="$(TERMFLAGS) "
  204.  
  205. DEC_FLAGS = \
  206.            CFLAGS="$(COPTS) $(OPTIONS) " \
  207.            LIBS="-lplot $(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  208.            X11LIBS="$(X11LIBS)" \
  209.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  210.            X11INSTALL="$(X11INSTALL)" \
  211.            TERMFLAGS="$(TERMFLAGS) -DULTRIX_KLUDGE"
  212.  
  213. APOLLO_FLAGS = \
  214.            CFLAGS="$(COPTS) $(OPTIONS) -DGAMMA=lgamma" \
  215.            LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" \
  216.            X11INCLUDES="$(X11INCLUDES)" \
  217.            X11LIBS="-L/usr/lib/X11 -lX11" \
  218.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  219.            X11INSTALL="$(X11INSTALL)" \
  220.            TERMFLAGS="$(TERMFLAGS) -DAPOLLO -DGPR"
  221.  
  222. HP_FLAGS = \
  223.            CFLAGS="$(COPTS) $(OPTIONS) -DMEMSET -DMEMCPY -DGETCWD" \
  224.            LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  225.            X11INCLUDES="-I/usr/include/X11R4" \
  226.            X11LIBS="-L/usr/lib/X11R4 -lX11" \
  227.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  228.            X11INSTALL="$(X11INSTALL)" \
  229.            TERMFLAGS="-Iterm -DX11"
  230.  
  231. SOLARIS_X11_FLAGS = \
  232.            CFLAGS="$(COPTS) $(OPTIONS) -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS" \
  233.            X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  234.            X11LIBS="$(X11LIBS)" \
  235.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  236.            X11INSTALL="$(X11INSTALL)" \
  237.            TERMFLAGS="$(TERMFLAGS) -DSOLARIS"
  238.  
  239. SUN_FLAGS = \
  240.            CFLAGS="$(COPTS) $(OPTIONS) -DSUN" \
  241.            LIBS="-lsuntool -lsunwindow -lpixrect $(LIBS)" \
  242.            X11FLAGS=" " X11INCLUDES=" " \
  243.            X11LIBS=" " \
  244.            PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  245.            TERMFLAGS="-Iterm"
  246.  
  247. SUN_X11_FLAGS = \
  248.            CFLAGS="$(COPTS) $(OPTIONS) -DSUN" \
  249.            LIBS="-lsuntool -lsunwindow -lpixrect $(LIBS)" \
  250.            X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  251.            X11LIBS="$(X11LIBS)" \
  252.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  253.            X11INSTALL="$(X11INSTALL)" \
  254.            TERMFLAGS="$(TERMFLAGS)"
  255.  
  256. SGI_FLAGS = \
  257.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  258.            LIBS="-lgl_s -lm" X11FLAGS=" " X11INCLUDES=" " \
  259.            X11LIBS=" " \
  260.            PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  261.            TERMFLAGS="-Iterm -DIRIS4D"
  262.  
  263. SGIX11_FLAGS = \
  264.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  265.            LIBS="-lgl_s -lm -lc_s" X11FLAGS="$(X11FLAGS)" \
  266.            X11INCLUDES="$(X11INCLUDES)" \
  267.            X11LIBS="-L/usr/lib/X11 -lX11" \
  268.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  269.            X11INSTALL="$(X11INSTALL)" \
  270.            TERMFLAGS="-Iterm -DX11 -DIRIS4D"
  271.  
  272. CGI_FLAGS = \
  273.            CFLAGS="$(COPTS) $(OPTIONS) -Dunix" \
  274.            LIBS="-lccgi $(LIBS)" X11FLAGS=" " X11INCLUDES=" " \
  275.            X11LIBS=" " PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  276.            TERMFLAGS="-Iterm -DUNIXPLOT -DCGI"
  277.  
  278. 3B1_FLAGS = \
  279.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK" \
  280.            LIBS="$(LIBS)" X11FLAGS=" " X11INCLUDES=" " \
  281.            X11LIBS=" " \
  282.            PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  283.            LD="ld /lib/crt0s.o /lib/shlib.ifile" \
  284.            TERMFLAGS="-Iterm -DUNIXPC"
  285.  
  286. 3B2_FLAGS = \
  287.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK" \
  288.            X11FLAGS=" " X11INCLUDES=" " \
  289.            X11LIBS=" " \
  290.            PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  291.            TERMFLAGS="-Iterm -DUNIXPLOT" LIBS="$(LIBS) -lplot"
  292.  
  293. 386IX_FLAGS = \
  294.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK -DTCSETSW -DTCGETS" \
  295.            LIBS="$(LIBS) -lcposix" X11FLAGS=" " X11INCLUDES=" " \
  296.            X11LIBS=" " PLOTXFLAG=" " GNUPLOT_X11=" " \
  297.            X11INSTALL=x11_noinstall \
  298.            TERMFLAGS="-Iterm -DUNIXPLOT"
  299.  
  300. 386IX_X11_FLAGS = \
  301.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK -DTCSETSW -DTCGETS" \
  302.            LIBS="$(LIBS) -lcposix" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  303.            X11LIBS="$(X11LIBS)" PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  304.            X11INSTALL= "$(X11INSTALL)" \
  305.            TERMFLAGS="-Iterm -DUNIXPLOT -DX11"
  306.  
  307. ISC22_X11_FLAGS = \
  308.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK -DISC22" \
  309.            LIBS="$(LIBS) -lplot -lcposix" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  310.            X11LIBS="$(X11LIBS) -linet -lpt -lcposix" PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  311.            X11INSTALL= "$(X11INSTALL)" \
  312.            TERMFLAGS="-Iterm -DUNIXPLOT -DX11"
  313.  
  314. AIX_FLAGS = \
  315.            CFLAGS="$(COPTS) $(OPTIONS) -DGAMMA=gamma -DXPG3_LOCALE -Dunix" \
  316.            LIBS="$(LIBS) -lbsd" X11FLAGS="$(X11FLAGS)" \
  317.            X11INCLUDES="$(X11INCLUDES)" \
  318.            X11LIBS="$(X11LIBS)" \
  319.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  320.            X11INSTALL="$(X11INSTALL)" \
  321.            TERMFLAGS="$(TERMFLAGS) -qmaxmem=9000" \
  322.            COMFLAGS="-qmaxmem=3000" SSFLAGS="-qmaxmem=3000"
  323.  
  324. AIXO_FLAGS = \
  325.            CFLAGS="$(COPTS) $(OPTIONS) -DGAMMA=gamma -DXPG3_LOCALE -Dunix" \
  326.            LIBS="$(LIBS) -lbsd" X11FLAGS="$(X11FLAGS)" \
  327.            X11INCLUDES="$(X11INCLUDES)" \
  328.            X11LIBS="$(X11LIBS)" \
  329.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  330.            X11INSTALL="$(X11INSTALL)" \
  331.            TERMFLAGS="$(TERMFLAGS)"
  332.  
  333. NEXT_FLAGS = \
  334.            CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT -DREADLINE -DSGTTY" \
  335.            LIBS="-lNeXT_s -lsys_s -lm" \
  336.            X11FLAGS="$(X11FLAGS)" \
  337.            X11INCLUDES=" " X11LIBS=" " PLOTXFLAG=" " \
  338.            GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  339.            TERMFLAGS="-Iterm -ObjC" OBJS=" $(OBJS) $(NEXTOBJS)"
  340.  
  341. NEXT_X11_FLAGS = \
  342.            CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT -DREADLINE -DSGTTY -DX_NOT_POSIX" \
  343.            LIBS="-lNeXT_s -lsys_s -lm" \
  344.            X11LIBS="-L/usr/lib/X11 -lX11" \
  345.            X11INCLUDES="$(X11INCLUDES)" X11FLAGS="$(X11FLAGS)" \
  346.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  347.            X11INSTALL="$(X11INSTALL)" \
  348.            TERMFLAGS="-Iterm -DX11 -ObjC" OBJS=" $(OBJS) $(NEXTOBJS)"
  349.  
  350. CRAY_FLAGS = \
  351.        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  352.        LIBS="-lm" X11FLAGS=" " \
  353.        X11INCLUDES=" " \
  354.        X11LIBS=" " \
  355.        PLOTXFLAG=" " GNUPLOT_X11=" " \
  356.        X11INSTALL=x11_noinstall \
  357.        TERMFLAGS="-Iterm"
  358.  
  359. CRAY_X11_FLAGS = \
  360.        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  361.        LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  362.        X11INCLUDES="$(X11INCLUDES)" \
  363.        X11LIBS="$(X11LIBS)" \
  364.        PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  365.        X11INSTALL=$(X11INSTALL) \
  366.        TERMFLAGS="-Iterm -DX11"
  367.  
  368. PTX_X11_FLAGS = \
  369.        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DCRIPPLED_SELECT" \
  370.        LIBS="-lm -lplot" X11FLAGS="$(X11FLAGS)" \
  371.        X11INCLUDES="$(X11INCLUDES)" \
  372.        X11LIBS="-lX11 -lseq -lsocket -linet -lnsl" \
  373.        PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  374.        X11INSTALL=$(X11INSTALL) \
  375.        TERMFLAGS="$(TERMFLAGS)"
  376.  
  377. SEQUENT_X11_FLAGS = \
  378.        CFLAGS="$(COPTS) $(OPTIONS) -DSGTTY -DCRIPPLED_SELECT" \
  379.        LIBS="-lm -lplot" X11FLAGS="$(X11FLAGS) -DX_WCHAR" \
  380.        X11INCLUDES="$(X11INCLUDES)" \
  381.        X11LIBS="-lX11 -lseq " \
  382.        PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  383.        X11INSTALL=$(X11INSTALL) \
  384.        TERMFLAGS="$(TERMFLAGS)"
  385.  
  386. CONVEX_X11_FLAGS = \
  387.            CFLAGS="$(COPTS) $(OPTIONS) -DHUGE=8.9e307" \
  388.            LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  389.            X11LIBS="$(X11LIBS)" \
  390.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  391.            X11INSTALL="$(X11INSTALL)" \
  392.            TERMFLAGS="$(TERMFLAGS)"
  393.  
  394. KSR_FLAGS = \
  395.            CFLAGS="$(COPTS) $(OPTIONS) -I/usr/sys/include -I/usr/sys/BINARY -DANSI -DNOVFORK -DNOGAMMA -D_XOPEN_SOURCE -DKSR" \
  396.            LIBS="$(LIBS)" \
  397.            X11FLAGS="$(X11FLAGS) -DMOTIF -D_NO_PROTO -D_OSF_SOURCE" \
  398.            X11INCLUDES="$(X11INCLUDES) -I/usr/include/Xm" \
  399.            X11LIBS="$(X11LIBS)" \
  400.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  401.            X11INSTALL="$(X11INSTALL)" \
  402.            TERMFLAGS="$(TERMFLAGS) "
  403.  
  404. LINUX_FLAGS = \
  405.            CFLAGS="$(COPTS) $(OPTIONS)" -m486 \
  406.            LIBS="-L/usr/X386/lib -lX11 $(LIBS)" \
  407.            X11FLAGS="$(X11FLAGS)" X11INCLUDES="-I/usr/X386/include $(X11INCLUDES)" \
  408.            X11LIBS="$(X11LIBS)" \
  409.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  410.            X11INSTALL="$(X11INSTALL)" \
  411.            TERMFLAGS="$(TERMFLAGS)"
  412.  
  413. ####################################################################
  414. # List of source files
  415. # Used for making shar files, lint, and some dependencies.
  416. DIRS = term demo docs docs/latextut
  417.  
  418. CSOURCE1 = bf_test.c binary.c command.c setshow.c
  419. CSOURCE2 = help.c gnubin.c graphics.c graph3d.c internal.c
  420. CSOURCE3 = misc.c eval.c parse.c plot.c readline.c scanner.c standard.c
  421. CSOURCE4 = bitmap.c term.c util.c version.c
  422. CSOURCE5 = term/ai.trm term/amiga.trm term/aed.trm term/atari.trm \
  423.     term/bigfig.trm term/cgi.trm term/corel.trm \
  424.     term/djsvga.trm term/dumb.trm \
  425.     term/dxf.trm term/dxy.trm term/debug.trm \
  426.     term/emxvga.trm term/eepic.trm term/epson.trm term/excl.trm \
  427.     term/fig.trm term/grass.trm term/hp26.trm term/hp2648.trm term/hpgl.trm \
  428.     term/hp500c.trm term/hpljii.trm term/metafont.trm \
  429.     term/apollo.trm term/gpr.trm term/hppj.trm term/compact.c
  430. CSOURCE6 = term/impcodes.h term/imagen.trm term/next.trm term/object.h \
  431.     term/iris4d.trm term/kyo.trm term/latex.trm term/mif.trm \
  432.     term/pbm.trm term/pslatex.trm term/gpic.trm
  433. CSOURCE7 = term/post.trm term/pstricks.trm term/qms.trm term/regis.trm \
  434.     term/rgip.trm term/sun.trm \
  435.     term/t410x.trm term/tek.trm term/texdraw.trm term/tgif.h \
  436.     term/tgif.trm term/tpic.trm \
  437.     term/unixpc.trm term/unixplot.trm \
  438.     term/v384.trm term/vws.trm term/x11.trm term/xlib.trm
  439. CSOURCE8 = contour.c specfun.c gplt_x11.c
  440. NEXTSRC  = epsviewe.m epsviewe.h
  441. # not C code, but still needed
  442.  
  443. DEMOS = demo/1.dat demo/2.dat demo/3.dat demo/contours.dem \
  444.     demo/controls.dem demo/electron.dem demo/glass.dat demo/param.dem \
  445.     demo/polar.dem demo/simple.dem demo/surface1.dem \
  446.     demo/surface2.dem demo/using.dat demo/using.dem demo/world.cor \
  447.     demo/world.dat demo/world.dem \
  448.     demo/err.dat demo/poldat.dem demo/polar.dat demo/errorbar.dem \
  449.     demo/antenna.dat demo/all.dem demo/animate.dem demo/bivariat.dem \
  450.     demo/prob.dem demo/stat.inc demo/prob2.dem demo/random.dem \
  451.     demo/discrete.dem demo/hidden.dem demo/airfoil.dem demo/gnuplot.rot\
  452.     demo/binary.dem demo/spline.dem demo/steps.dem demo/steps.dat \
  453.     demo/multimsh.dem demo/whale.dat demo/hemisphr.dat \
  454.     demo/scatter.dem demo/scatter2.dat demo/singulr.dem demo/klein.dat
  455.  
  456. ETC = Copyright 0README README.gnu README.ami makefile.unx makefile.vms \
  457.     linkopt.amg makefile.amg makefile.ami linkopt.vms buildvms.com \
  458.     lasergnu makefile.r makefile.nt makefile.g 0FAQ 0BUGS\
  459.     term/README History gnuplot.el intergra.x11 0INSTALL\
  460.     README.3p2 README.3p3 README.3p4 README.pro README.nex README.x11 \
  461.     README.3d README.mf README.win
  462.  
  463. #BETA files (not standard distribution files)
  464. BETA = BETA
  465. # PC-specific files
  466. PC = corgraph.asm corplot.c header.mac hrcgraph.asm lineproc.mac \
  467.     linkopt.msc makefile.msc makefile.tc makefile.st makefile.djg \
  468.     pcgraph.asm gnuplot.def makefile.286 gnuplot.prj makefile.emx \
  469.     makefile.ztc linkopt.ztc term/fg.trm term/pc.trm
  470. WINDOWS = makefile.win makefile.msw README.win win/wcommon.h \
  471.     win/wgnuplib.c win/wgnuplib.def win/wgnuplib.h win/wgnuplib.rc \
  472.     win/wgnuplot.def win/wgnuplot.hpj win/wgnuplot.mnu win/wgnuplot.rc \
  473.     win/wgraph.c win/winmain.c win/wmenu.c win/wpause.c \
  474.     win/wprinter.c win/wresourc.h win/wtext.c win/wtext.h \
  475.     win/geticon.c docs/doc2rtf.c term/win.trm
  476. OS2 = makefile.os2 os2/makefile os2/dialogs.c os2/dialogs.h os2/gclient.c \
  477.     os2/gnuicon.uue os2/gnupmdrv.c os2/gnupmdrv.def os2/gnupmdrv.h \
  478.     os2/gnupmdrv.itl os2/gnupmdrv.rc os2/print.c docs/doc2ipf.c \
  479.     README.os2 term/pm.trm
  480.  
  481. # Documentation and help files
  482. DOCS1 = docs/makefile docs/README docs/checkdoc.c docs/doc2gih.c \
  483.     docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
  484.     docs/gnuplot.1 docs/lasergnu.1 docs/toc_entr.sty docs/doc2info.pl \
  485.     docs/titlepag.ms docs/titlepag.tex docs/makefile.ami \
  486.     docs/doc2rtf.c
  487. DOCS2 = docs/gnuplot.doc docs/gpcard.tex
  488. DOCS3 = docs/latextut/makefile docs/latextut/eg1.plt \
  489.     docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
  490.     docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
  491.     docs/latextut/header.tex docs/latextut/tutorial.tex \
  492.     docs/latextut/linepoin.plt
  493.  
  494. #########################################################################
  495. # Default target (informational)
  496. info:
  497.     @echo "Please do a 'make <MACHINE>' where <MACHINE> is one of the following:"
  498.     @echo
  499.     @echo "apollo       for Apollo running SR10.3 with Apollo's X11"
  500.     @echo "dec_osf      for Dec3100/5000 running DEC OSF/1 v1.0"
  501.     @echo "dec          for Dec3100/5000 running Ultrix 3.1d with MIT's X11"
  502.     @echo "hp           for HP/9000 700 series running HP/UX 8.0 with MIT's X11R4"
  503.     @echo "sun          for Sun sparcstation running SunOS 4.1 with suntools (no X11) "
  504.     @echo "sun_x11      for Sun sparcstation running SunOS 4.1 with suntools and X11 "
  505.     @echo "sgi          for Silicon Graphics IRIS4D machines (no X11) "
  506.     @echo "sgix11       for Silicon Graphics IRIS4D machines (X11) "
  507.     @echo "next         for NeXT Cube and Slab running NeXTOS 2.0+ (no X11)"
  508.     @echo "next_x11     for NeXT Cube and Slab running NeXTOS 2.0+ with X11"
  509.     @echo "3b1          for ATT 3b1 machines (no X11) "
  510.     @echo "3b2          for ATT 3b2 machines (no X11) "
  511.     @echo "386ix        for 386 machines running 386/ix (no X11)"
  512.     @echo "386ix_x11    for 386 machines running 386/ix with T.Roell X386"
  513.     @echo "isc22_x11    for 386 machines running ISC 2.2 with T.Roell X386"
  514.     @echo "aix32        for IBM RS/6000 running AIX 3.2 with xlc 1.2"
  515.     @echo "aix32o       for IBM RS/6000 running AIX 3.2 with xlc 1.1"
  516.     @echo "x11          for a generic machine (like a sun or dec) with MIT's X11"
  517.     @echo "cray         for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 (no X11)"
  518.     @echo "cray_x11     for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 with X11"
  519.     @echo "ptx_x11      for Sequent Dynix/PTX with MIT X11"
  520.     @echo "sequent_x11  for Sequent Symmetry (DYNIX 3) with X11"
  521.     @echo "convex_x11   for Convex 9.0 with MIT X11"
  522.     @echo "ksr          for KSR1 running DEC OSF/1 v1.0 (use make -j 16)"
  523.     @echo "linux        for LINUX with XFree86-1.2"
  524.     @echo
  525.     @echo "Examples:"
  526.     @echo
  527.     @echo "         make x11"
  528.     @echo "         make apollo"
  529.     @echo "         make apollo       OPTIONS='-DNOCWDRC' "
  530.     @echo "         make apollo       DEST='/usr/um/misc/bin' "
  531.     @echo "         make dec"
  532.     @echo "         make hp"
  533.     @echo "         make next"
  534.     @echo "         make solaris_x11"
  535.     @echo "         make sun          HELPDEST='/usr/um/misc/lib/gnuplot.gih' "
  536.     @echo "         make sun          X11INCLUDES='-I/usr/local/include' "
  537.     @echo "         make sun_x11"
  538.     @echo "         make sgi"
  539.     @echo "         make 3b1"
  540.     @echo "         make 386ix"
  541.     @echo "         make 386ix_x11"
  542.     @echo "         make isc22_x11"
  543.     @echo "         make aix32        MANDEST='/usr/um/misc/man/man1' COPTS='-O' "
  544.     @echo "         make cray"
  545.     @echo "         make cray_x11"
  546.     @echo
  547.     @echo "If you just type 'make All' , it will build gnuplot for Unix X11"
  548.     @echo "and the following variables will be used as default:"
  549.     @echo
  550.     @echo " DEST                     " $(DEST)
  551.     @echo " MANDEST                  " $(MANDEST)
  552.     @echo " HELPDEST                 " $(HELPDEST)
  553.     @echo " EMAIL                    " $(EMAIL)
  554.     @echo " CC                       " $(CC)
  555.     @echo " COPTS                    " $(COPTS)
  556.     @echo " OPTIONS                  " $(OPTIONS)
  557.     @echo " CFLAGS                   " $(CFLAGS)
  558.     @echo " LIBS                     " $(LIBS)
  559.     @echo " X11FLAGS                 " $(X11FLAGS)
  560.     @echo " X11LIBS                  " $(X11LIBS)
  561.     @echo " X11INCLUDES              " $(X11INCLUDES)
  562.     @echo " TERMFLAGS                " $(TERMFLAGS)
  563.     @echo " LASERGNU                 " $(LASERGNU)
  564.     @echo
  565.     @echo "If you are not familiar with makefiles or just want to know what"
  566.     @echo " 'make <MACHINE>' would do without actually doing anything, then type"
  567.     @echo " 'make <MACHINE> -n' "
  568.     @echo
  569.  
  570. ###############################################################
  571. # Targets for each machine
  572.  
  573. x11:
  574.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(X11_FLAGS)      $(TARGET)
  575.  
  576. dec_osf:
  577.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(DEC_OSF_FLAGS)  $(TARGET)
  578.  
  579. dec:
  580.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(DEC_FLAGS)      $(TARGET)
  581.  
  582. apollo:
  583.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(APOLLO_FLAGS)   $(TARGET)
  584.  
  585. hp:
  586.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(HP_FLAGS)       $(TARGET)
  587.  
  588. next:
  589.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(NEXT_FLAGS)     $(TARGET)
  590.  
  591. next_x11:
  592.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(NEXT_X11_FLAGS) $(TARGET)
  593.  
  594. solaris_x11:
  595.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SOLARIS_X11_FLAGS)  $(TARGET)
  596.  
  597. sun:
  598.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SUN_FLAGS)      $(TARGET)
  599.  
  600. sun_x11:
  601.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SUN_X11_FLAGS)  $(TARGET)
  602.  
  603. sgi:
  604.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SGI_FLAGS)      $(TARGET)
  605.  
  606. sgix11:
  607.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SGIX11_FLAGS)   $(TARGET)
  608.  
  609. cgi:
  610.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CGI_FLAGS)      $(TARGET)
  611.  
  612. 3b1:
  613.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(3B1_FLAGS)      $(TARGET)
  614.  
  615. 3b2:
  616.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(3B2_FLAGS)      $(TARGET)
  617.  
  618. 386ix:
  619.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(386IX_FLAGS)    $(TARGET)
  620.  
  621. 386ix_x11:
  622.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(386IX_X11_FLAGS) $(TARGET)
  623.  
  624. isc22_x11:
  625.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(ISC22_X11_FLAGS) $(TARGET)
  626.  
  627. aix32:
  628.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(AIX_FLAGS)      $(TARGET)
  629.  
  630. aix32o:
  631.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(AIXO_FLAGS)     $(TARGET)
  632.  
  633. cray:
  634.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_FLAGS)     $(TARGET)
  635.  
  636. cray_x11:
  637.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_X11_FLAGS) $(TARGET)
  638.  
  639. ptx_x11:
  640.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(PTX_X11_FLAGS)  $(TARGET)
  641.  
  642. sequent_x11:
  643.     make $(MFLAGS) $(MY_FLAGS) $(SEQUENT_X11_FLAGS) $(TARGET)
  644.  
  645. convex_x11:
  646.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CONVEX_X11_FLAGS) $(TARGET)
  647.  
  648. ksr:
  649.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(KSR_FLAGS)  $(TARGET)
  650.  
  651. linux:
  652.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(LINUX_FLAGS)  $(TARGET)
  653.  
  654. #############################################################
  655. # Targets that really do something
  656.  
  657. all:
  658.     @echo "Please just type  'make'  in order to get some information on "
  659.     @echo "how to build gnuplot under Unix and the X Window System."
  660.  
  661. All: gnuplot $(GNUPLOT_X11) doc demo/binary1
  662.  
  663. gnuplot: $(OBJS) version.o
  664.     $(LD) -o gnuplot $(OBJS) version.o $(LIBS)
  665.  
  666. doc:
  667.     ( cd docs; $(MAKE) $(MFLAGS) gnuplot.gih )
  668.  
  669. gnuplot_x11: gplt_x11.c
  670.     $(CC) $(CFLAGS) $(X11FLAGS) $(X11INCLUDES) -o gnuplot_x11 \
  671.     gplt_x11.c $(X11LIBS)
  672.  
  673. demo/binary1 demo/binary2 demo/binary3: bf_test
  674.     ( cd demo; ../bf_test )
  675.  
  676. bf_test: bf_test.o binary.o
  677.     $(CC) $(CFLAGS) bf_test.o binary.o -lm -o bf_test
  678. ################################################################
  679. # Installation instructions
  680.  
  681. install:
  682.     @echo
  683.     @echo "Please do a 'make <MACHINE> TARGET=Install' where <MACHINE> is one of the following:"
  684.     @echo
  685.     @echo "apollo, dec, hp, sun, sun_x11, sgi, sgix11, cgi,"
  686.     @echo "next, next_x11, 3b1, 386ix, 386ix_x11, aix32, aix32o,"
  687.     @echo "x11, cray, cray_x11, ptx_x11, sequent_x11, convex_x11"
  688.     @echo
  689.     @echo "Examples:"
  690.     @echo
  691.     @echo "         make x11          TARGET=Install "
  692.     @echo "         make apollo       TARGET=Install "
  693.     @echo "         make dec          TARGET=Install "
  694.     @echo "         make hp           TARGET=Install "
  695.     @echo "         make sun          TARGET=Install HELPDEST='/usr/um/misc/lib/gnuplot.gih' "
  696.     @echo "         make aix32        TARGET=Install MANDEST='/usr/um/misc/man/man1' COPTS='-O' "
  697.     @echo
  698. ################################################################
  699. # Installation targets
  700.  
  701. Install: All man_install $(X11INSTALL) $(LASERGNU)
  702.     cp gnuplot $(DEST)
  703.     strip $(DEST)/gnuplot
  704.     ( cd docs; $(MAKE) $(MFLAGS) install-unix HELPDEST=$(HELPDEST) )
  705.  
  706. x11_install: gnuplot_x11
  707.     cp gnuplot_x11 $(DEST)
  708.     strip $(DEST)/gnuplot_x11
  709.  
  710. x11_noinstall:
  711.     @echo "X11 not requested, so gnuplot_x11 program not installed"
  712.  
  713. man_install: docs/gnuplot.1
  714.     cp docs/gnuplot.1 $(MANDEST)
  715.  
  716. lasergnu_install: lasergnu docs/lasergnu.1
  717.     cp lasergnu $(DEST)
  718.     chmod 755 $(DEST)/lasergnu
  719.     cp docs/lasergnu.1 $(MANDEST)
  720.  
  721. lasergnu_noinstall:
  722.     @echo
  723.     @echo "Lasergnu will not be installed by default."
  724.     @echo "If you think you need the lasergnu script to print"
  725.     @echo " files on the imagen or PostScript printers, then"
  726.     @echo " type"
  727.     @echo "      'make <MACHINE> TARGET=Install LASERGNU='lasergnu_install' "
  728.     @echo
  729.     @echo "Lasergnu is really not needed since within gnuplot you can"
  730.     @echo " can create files (in impress or PostScript language) and"
  731.     @echo " print them through your favorite print command (lpr, lp, prf, ipr)."
  732.     @echo
  733.  
  734. ################################################################
  735. # Dependencies
  736.  
  737. plot.o: plot.c
  738.     $(CC) $(CFLAGS) $(PLOTXFLAG) -c plot.c
  739.  
  740. term.o: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  741.     $(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
  742.  
  743. version.o:
  744.     $(CC) $(CFLAGS) -DCONTACT=\"$(EMAIL)\" -c version.c
  745.  
  746. epsviewe.o : epsviewe.h epsviewe.m
  747.     $(CC) -ObjC -c epsviewe.m
  748.  
  749. $(OBJS): plot.h
  750.  
  751. command.o: command.c
  752.     $(CC) $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)/gnuplot.gih\" $(COMFLAGS)
  753.  
  754. command.o help.o misc.o: help.h
  755.  
  756. command.o graphics.o graph3d.o misc.o plot.o setshow.o term.o: setshow.h
  757.  
  758. bitmap.o term.o: bitmap.h
  759.  
  760. setshow.o: setshow.c
  761.     $(CC) $(CFLAGS) -c setshow.c $(SSFLAGS)
  762.  
  763. ################################################################
  764. # Miscellaneous targets
  765.  
  766. SOURCES=plot.h help.h setshow.h bitmap.h term.h $(CSOURCE1) $(CSOURCE2) \
  767.     $(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)\
  768.     $(CSOURCE8) $(NEXTSRC) $(WINDOWS) $(OS2)
  769.  
  770. DOCS  = $(DOCS1) $(DOCS2) $(DOCS3)
  771.  
  772. lint:
  773.     lint -hx $(SOURCES)
  774.  
  775. clean:
  776.     rm -f *.o *.orig *.rej *~ *.bak term/*~ term/*.orig term/*.bak
  777.     ( cd docs; $(MAKE) $(MFLAGS) clean )
  778.     ( cd docs/latextut; $(MAKE) $(MFLAGS) clean )
  779.  
  780. spotless:
  781.     rm -f *.o *~ *.orig *.rej *.bak term/*~ term/*.orig term/*.bak \
  782.     TAGS gnuplot gnuplot_x11 \
  783.     bf_test demo/binary[1-3]
  784.     ( cd docs; $(MAKE) $(MFLAGS) clean )
  785.     ( cd docs/latextut; $(MAKE) $(MFLAGS) spotless )
  786.  
  787. ################################################################
  788. # Making shar files for mailing gnuplot
  789.  
  790. shar: gnuplot.sh00 gnuplot.sh01 gnuplot.sh02 gnuplot.sh03 gnuplot.sh04 \
  791.     gnuplot.sh05 gnuplot.sh06 gnuplot.sh07 gnuplot.sh08 \
  792.     gnuplot.sh09 gnuplot.sh10 gnuplot.sh11 gnuplot.sh12 \
  793.     gnuplot.sh13 gnuplot.sh14 gnuplot.sh15 gnuplot.sh16
  794.  
  795. gnuplot.sh00:
  796.     echo '#!/bin/sh' > gnuplot.sh00
  797.     echo '# This is a shell file to make directories' >> gnuplot.sh00
  798.     echo mkdir $(DIRS) >> gnuplot.sh00
  799.  
  800. gnuplot.sh01: $(ETC)
  801.     shar $(ETC) > gnuplot.sh01
  802.  
  803. gnuplot.sh02: $(DOCS1)
  804.     shar $(DOCS1) > gnuplot.sh02
  805.  
  806. gnuplot.sh03: $(DOCS2)
  807.     shar $(DOCS2) > gnuplot.sh03
  808.  
  809. gnuplot.sh04: $(DOCS3)
  810.     shar $(DOCS3) > gnuplot.sh04
  811.  
  812. gnuplot.sh05: $(CSOURCE1)
  813.     shar $(CSOURCE1) > gnuplot.sh05
  814.  
  815. gnuplot.sh06: $(CSOURCE2)
  816.     shar $(CSOURCE2) > gnuplot.sh06
  817.  
  818. gnuplot.sh07: $(CSOURCE3)
  819.     shar $(CSOURCE3) > gnuplot.sh07
  820.  
  821. gnuplot.sh08: $(CSOURCE4)
  822.     shar $(CSOURCE4) > gnuplot.sh08
  823.  
  824. gnuplot.sh09: $(CSOURCE5)
  825.     shar $(CSOURCE5) > gnuplot.sh09
  826.  
  827. gnuplot.sh10: $(CSOURCE6)
  828.     shar $(CSOURCE6) > gnuplot.sh10
  829.  
  830. gnuplot.sh11: $(CSOURCE7)
  831.     shar $(CSOURCE7) > gnuplot.sh11
  832.  
  833. gnuplot.sh12: $(PC)
  834.     shar $(PC) > gnuplot.sh12
  835.  
  836. gnuplot.sh13: $(CSOURCE8)
  837.     shar $(CSOURCE8) > gnuplot.sh13
  838.  
  839. gnuplot.sh14: $(DEMOS)
  840.     shar $(DEMOS) > gnuplot.sh14
  841.  
  842. gnuplot.sh15: $(WINDOWS)
  843.     shar $(WINDOWS) > gnuplot.sh15
  844.  
  845. gnuplot.sh16: $(BETA)
  846.     shar $(BETA) > gnuplot.sh16
  847.  
  848. tar: $(ETC) $(SOURCES) $(PC) $(DEMOS) $(BETA) $(DOCS)
  849.     $(TAR) cvf /tmp/gnuplot.tar $(ETC) $(SOURCES) $(PC)\
  850.          $(DEMOS) $(BETA) $(DOCS)
  851. #
  852. # the following uses Rick Saltz's makekit shar generation tools
  853. #
  854.  
  855. kit: $(ETC) $(SOURCES) $(PC) $(DEMOS) $(BETA) $(DOCS)
  856.     makekit -s135k -k30 $(ETC) $(SOURCES) $(PC)\
  857.          $(DEMOS) $(BETA) $(DOCS) MANIFEST
  858.  
  859. branch: rcs rcsdoc rcsdemo
  860.  
  861. rcs:
  862.     rcs -b$(RCSVER) $(ETC) $(SOURCES) $(PC)
  863.  
  864. rcsdoc:
  865.     rcs -b$(RCSVER) $(DOCS)
  866.  
  867. rcsdemo:
  868.     rcs -b$(RCSVER) $(DEMOS)
  869.  
  870. ciall: ci cidoc cidemo
  871.  
  872. ci:
  873.     ci -l$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(SOURCES) $(PC) $(ETC)
  874.  
  875. cidoc:
  876.     ci -l$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(DOCS)
  877.  
  878. cidemo:
  879.     ci -l$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(DEMOS)
  880.  
  881. ciforce:
  882.     ci -f$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(SOURCES) $(ETC)
  883.     ci -f$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(DOCS) $(DEMOS)
  884.     ci -f$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(PC)
  885.  
  886. coall: co codoc codemo
  887.  
  888. co:
  889.     co -l -r$(RCSVER) $(ETC) $(SOURCES) $(PC)
  890.  
  891. codoc:
  892.     co -l -r$(RCSVER) $(DOCS)
  893.  
  894. codemo:
  895.     co -l -r$(RCSVER) $(DEMOS)
  896.