home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume30 / gnuplot3 / patch02b < prev    next >
Encoding:
Text File  |  1992-06-18  |  54.7 KB  |  1,568 lines

  1. Newsgroups: comp.sources.misc
  2. From: woo@ra-next.arc.nasa.gov (Alex Woo)
  3. Subject:  v30i055:  gnuplot3 - interactive function plotting utility, Patch02b/7
  4. Message-ID: <1992Jun14.213933.8341@sparky.imd.sterling.com>
  5. X-Md4-Signature: 9e3a520d1d2151f53f8c96da6414299f
  6. Date: Sun, 14 Jun 1992 21:39:33 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: woo@ra-next.arc.nasa.gov (Alex Woo)
  10. Posting-number: Volume 30, Issue 55
  11. Archive-name: gnuplot3/patch02b
  12. Environment: UNIX, MS-DOS, VMS
  13. Patch-To: gnuplot3: Volume 24, Issue 23-48
  14.  
  15. #! /bin/sh
  16. # This is a shell archive.  Remove anything before this line, then feed it
  17. # into a shell via "sh file" or similar.  To overwrite existing files,
  18. # type "sh file -c".
  19. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  20. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  21. # Contents:  patch.4 term/pbm.trm
  22. # Wrapped by woo@ra-iris. on Thu May 28 22:44:39 1992
  23. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  24. echo If this archive is complete, you will see the following message:
  25. echo '          "shar: End of archive 2 (of 7)."'
  26. if test -f 'patch.4' -a "${1}" != "-c" ; then 
  27.   echo shar: Will not clobber existing file \"'patch.4'\"
  28. else
  29.   echo shar: Extracting \"'patch.4'\" \(45409 characters\)
  30.   sed "s/^X//" >'patch.4' <<'END_OF_FILE'
  31. Xdiff -rc gnuplot/graphics.c gnuplot3.2/graphics.c
  32. X*** gnuplot/graphics.c    Mon Sep  9 13:13:19 1991
  33. X--- gnuplot3.2/graphics.c    Wed Mar 25 07:59:41 1992
  34. X***************
  35. X*** 1,6 ****
  36. X  /* GNUPLOT - graphics.c */
  37. X  /*
  38. X!  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  39. X   *
  40. X   * Permission to use, copy, and distribute this software and its
  41. X   * documentation for any purpose with or without fee is hereby granted, 
  42. X--- 1,10 ----
  43. X+ #ifndef lint
  44. X+ static char *RCSid = "$Id: graphics.c,v 3.26 92/03/24 22:34:25 woo Exp Locker: woo $";
  45. X+ #endif
  46. X+ 
  47. X  /* GNUPLOT - graphics.c */
  48. X  /*
  49. X!  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  50. X   *
  51. X   * Permission to use, copy, and distribute this software and its
  52. X   * documentation for any purpose with or without fee is hereby granted, 
  53. X***************
  54. X*** 27,37 ****
  55. X   *       Gershon Elber and many others.
  56. X   * 
  57. X   * Send your comments or suggestions to 
  58. X!  *  pixar!info-gnuplot@sun.com.
  59. X   * This is a mailing list; to join it send a note to 
  60. X!  *  pixar!info-gnuplot-request@sun.com.  
  61. X   * Send bug reports to
  62. X!  *  pixar!bug-gnuplot@sun.com.
  63. X   */
  64. X  
  65. X  #include <stdio.h>
  66. X--- 31,41 ----
  67. X   *       Gershon Elber and many others.
  68. X   * 
  69. X   * Send your comments or suggestions to 
  70. X!  *  info-gnuplot@ames.arc.nasa.gov.
  71. X   * This is a mailing list; to join it send a note to 
  72. X!  *  info-gnuplot-request@ames.arc.nasa.gov.  
  73. X   * Send bug reports to
  74. X!  *  bug-gnuplot@ames.arc.nasa.gov.
  75. X   */
  76. X  
  77. X  #include <stdio.h>
  78. X***************
  79. X*** 1262,1268 ****
  80. X              }
  81. X              else if((end - start) >= 5)
  82. X              {
  83. X!             lstart = 4; /* 3 per decade */
  84. X              linc = 3;
  85. X              }
  86. X              else
  87. X--- 1266,1272 ----
  88. X              }
  89. X              else if((end - start) >= 5)
  90. X              {
  91. X!             lstart = 2; /* 4 per decade */
  92. X              linc = 3;
  93. X              }
  94. X              else
  95. X***************
  96. X*** 1270,1276 ****
  97. X              lstart = 2; /* 9 per decade */
  98. X              linc = 1;
  99. X              }
  100. X!             for (ltic = 2; ltic <= 9; ltic++) {
  101. X                  lticplace = ticplace+log10((double)ltic);
  102. X                  if ( inrange(lticplace,ticmin,ticmax) )
  103. X                      ytick(lticplace, "\0", incr, 0.5);
  104. X--- 1274,1280 ----
  105. X              lstart = 2; /* 9 per decade */
  106. X              linc = 1;
  107. X              }
  108. X!             for (ltic = lstart; ltic <= 9; ltic += linc) {
  109. X                  lticplace = ticplace+log10((double)ltic);
  110. X                  if ( inrange(lticplace,ticmin,ticmax) )
  111. X                      ytick(lticplace, "\0", incr, 0.5);
  112. X***************
  113. X*** 1313,1319 ****
  114. X              }
  115. X              else if((end - start) >= 5)
  116. X              {
  117. X!             lstart = 4; /* 3 per decade */
  118. X              linc = 3;
  119. X              }
  120. X              else
  121. X--- 1317,1323 ----
  122. X              }
  123. X              else if((end - start) >= 5)
  124. X              {
  125. X!             lstart = 2; /* 4 per decade */
  126. X              linc = 3;
  127. X              }
  128. X              else
  129. Xdiff -rc gnuplot/help.c gnuplot3.2/help.c
  130. X*** gnuplot/help.c    Sun Jan  5 21:33:17 1992
  131. X--- gnuplot3.2/help.c    Wed Mar 25 07:59:42 1992
  132. X***************
  133. X*** 1,6 ****
  134. X  /* GNUPLOT - help.c */
  135. X  /*
  136. X!  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  137. X   *
  138. X   * Permission to use, copy, and distribute this software and its
  139. X   * documentation for any purpose with or without fee is hereby granted, 
  140. X--- 1,10 ----
  141. X+ #ifndef lint
  142. X+ static char *RCSid = "$Id: help.c,v 3.26 92/03/24 22:34:24 woo Exp Locker: woo $";
  143. X+ #endif
  144. X+ 
  145. X  /* GNUPLOT - help.c */
  146. X  /*
  147. X!  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  148. X   *
  149. X   * Permission to use, copy, and distribute this software and its
  150. X   * documentation for any purpose with or without fee is hereby granted, 
  151. X***************
  152. X*** 27,37 ****
  153. X   *       Gershon Elber and many others.
  154. X   * 
  155. X   * Send your comments or suggestions to 
  156. X!  *  pixar!info-gnuplot@sun.com.
  157. X   * This is a mailing list; to join it send a note to 
  158. X!  *  pixar!info-gnuplot-request@sun.com.  
  159. X   * Send bug reports to
  160. X!  *  pixar!bug-gnuplot@sun.com.
  161. X   */
  162. X  
  163. X  #include <stdio.h>
  164. X--- 31,41 ----
  165. X   *       Gershon Elber and many others.
  166. X   * 
  167. X   * Send your comments or suggestions to 
  168. X!  *  info-gnuplot@ames.arc.nasa.gov.
  169. X   * This is a mailing list; to join it send a note to 
  170. X!  *  info-gnuplot-request@ames.arc.nasa.gov.  
  171. X   * Send bug reports to
  172. X!  *  bug-gnuplot@ames.arc.nasa.gov.
  173. X   */
  174. X  
  175. X  #include <stdio.h>
  176. Xdiff -rc gnuplot/help.h gnuplot3.2/help.h
  177. X*** gnuplot/help.h    Thu Jul 18 11:58:45 1991
  178. X--- gnuplot3.2/help.h    Wed Mar 25 07:59:43 1992
  179. X***************
  180. X*** 1,6 ****
  181. X  /* GNUPLOT - help.h */
  182. X  /*
  183. X!  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  184. X   *
  185. X   * Permission to use, copy, and distribute this software and its
  186. X   * documentation for any purpose with or without fee is hereby granted, 
  187. X--- 1,10 ----
  188. X+ /*
  189. X+  * $Id: help.h,v 3.26 92/03/24 22:34:14 woo Exp Locker: woo $
  190. X+  */
  191. X+ 
  192. X  /* GNUPLOT - help.h */
  193. X  /*
  194. X!  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  195. X   *
  196. X   * Permission to use, copy, and distribute this software and its
  197. X   * documentation for any purpose with or without fee is hereby granted, 
  198. X***************
  199. X*** 27,37 ****
  200. X   *       Gershon Elber and many others.
  201. X   * 
  202. X   * Send your comments or suggestions to 
  203. X!  *  pixar!info-gnuplot@sun.com.
  204. X   * This is a mailing list; to join it send a note to 
  205. X!  *  pixar!info-gnuplot-request@sun.com.  
  206. X   * Send bug reports to
  207. X!  *  pixar!bug-gnuplot@sun.com.
  208. X   */
  209. X  
  210. X  /* Exit status returned by help() */
  211. X--- 31,41 ----
  212. X   *       Gershon Elber and many others.
  213. X   * 
  214. X   * Send your comments or suggestions to 
  215. X!  *  info-gnuplot@ames.arc.nasa.gov.
  216. X   * This is a mailing list; to join it send a note to 
  217. X!  *  info-gnuplot-request@ames.arc.nasa.gov.  
  218. X   * Send bug reports to
  219. X!  *  bug-gnuplot@ames.arc.nasa.gov.
  220. X   */
  221. X  
  222. X  /* Exit status returned by help() */
  223. Xdiff -rc gnuplot/internal.c gnuplot3.2/internal.c
  224. X*** gnuplot/internal.c    Sun Jan  5 21:33:18 1992
  225. X--- gnuplot3.2/internal.c    Wed Mar 25 07:59:44 1992
  226. X***************
  227. X*** 1,6 ****
  228. X  /* GNUPLOT - internal.c */
  229. X  /*
  230. X!  * Copyright (C) 1986, 1987, 1990, 1991   Thomas Williams, Colin Kelley
  231. X   *
  232. X   * Permission to use, copy, and distribute this software and its
  233. X   * documentation for any purpose with or without fee is hereby granted, 
  234. X--- 1,10 ----
  235. X+ #ifndef lint
  236. X+ static char *RCSid = "$Id: internal.c,v 3.26 92/03/24 22:34:29 woo Exp Locker: woo $";
  237. X+ #endif
  238. X+ 
  239. X  /* GNUPLOT - internal.c */
  240. X  /*
  241. X!  * Copyright (C) 1986, 1987, 1990, 1991, 1992   Thomas Williams, Colin Kelley
  242. X   *
  243. X   * Permission to use, copy, and distribute this software and its
  244. X   * documentation for any purpose with or without fee is hereby granted, 
  245. X***************
  246. X*** 27,37 ****
  247. X   *       Gershon Elber and many others.
  248. X   * 
  249. X   * Send your comments or suggestions to 
  250. X!  *  pixar!info-gnuplot@sun.com.
  251. X   * This is a mailing list; to join it send a note to 
  252. X!  *  pixar!info-gnuplot-request@sun.com.  
  253. X   * Send bug reports to
  254. X!  *  pixar!bug-gnuplot@sun.com.
  255. X   */
  256. X  
  257. X  #include <math.h>
  258. X--- 31,41 ----
  259. X   *       Gershon Elber and many others.
  260. X   * 
  261. X   * Send your comments or suggestions to 
  262. X!  *  info-gnuplot@ames.arc.nasa.gov.
  263. X   * This is a mailing list; to join it send a note to 
  264. X!  *  info-gnuplot-request@ames.arc.nasa.gov.  
  265. X   * Send bug reports to
  266. X!  *  bug-gnuplot@ames.arc.nasa.gov.
  267. X   */
  268. X  
  269. X  #include <math.h>
  270. Xdiff -rc gnuplot/lasergnu gnuplot3.2/lasergnu
  271. X*** gnuplot/lasergnu    Tue Sep 10 07:39:25 1991
  272. X--- gnuplot3.2/lasergnu    Wed Mar 25 07:59:45 1992
  273. X***************
  274. X*** 1,5 ****
  275. X--- 1,8 ----
  276. X  #!/bin/csh -f
  277. X  #
  278. X+ # $Id: lasergnu,v 3.26 92/03/24 22:37:01 woo Exp Locker: woo $
  279. X+ #
  280. X+ #
  281. X  # Print gnuplot output on an Imagen or Postscript laser printer.
  282. X  
  283. X  set print_banner = on    # Print a banner page unless told otherwise.
  284. Xdiff -rc gnuplot/makefile.amg gnuplot3.2/makefile.amg
  285. X*** gnuplot/makefile.amg    Thu Sep 12 12:04:16 1991
  286. X--- gnuplot3.2/makefile.amg    Wed Mar 25 07:59:46 1992
  287. X***************
  288. X*** 1,4 ****
  289. X--- 1,8 ----
  290. X  # Makefile for SAS/C 5.10 on the Amiga
  291. X+ #
  292. X+ # $Id: makefile.amg,v 3.26 92/03/24 22:36:53 woo Exp Locker: woo $
  293. X+ #
  294. X+ #
  295. X  
  296. X  CC = lc
  297. X  
  298. X***************
  299. X*** 22,28 ****
  300. X      term/eepic.trm term/epson.trm term/fig.trm term/hp26.trm \
  301. X      term/hp2648.trm term/hpgl.trm term/hpljii.trm term/vws.trm
  302. X  CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  303. X!     term/iris4d.trm term/kyo.trm term/latex.trm term/pc.trm \
  304. X      term/amiga.trm
  305. X  CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  306. X      term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  307. X--- 26,32 ----
  308. X      term/eepic.trm term/epson.trm term/fig.trm term/hp26.trm \
  309. X      term/hp2648.trm term/hpgl.trm term/hpljii.trm term/vws.trm
  310. X  CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  311. X!     term/iris4d.trm term/kyo.trm term/latex.trm term/pbm.trm term/pc.trm \
  312. X      term/amiga.trm
  313. X  CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  314. X      term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  315. Xdiff -rc gnuplot/makefile.ami gnuplot3.2/makefile.ami
  316. X*** gnuplot/makefile.ami    Fri Sep 20 11:31:32 1991
  317. X--- gnuplot3.2/makefile.ami    Wed Mar 25 07:59:47 1992
  318. X***************
  319. X*** 1,4 ****
  320. X--- 1,7 ----
  321. X  #
  322. X+ # $Id: makefile.ami,v 3.26 92/03/24 22:36:54 woo Exp Locker: woo $
  323. X+ #
  324. X+ #
  325. X  #   Makefile for the Amiga             Pat R. Empleo
  326. X  #                                      Sept 1991
  327. X  #      Manx Aztec C 5.2 beta version
  328. X***************
  329. X*** 12,18 ****
  330. X  # where to install help file gnuplot.gih
  331. X  HELPDEST=GNUPLOT:docs/gnuplot.gih
  332. X  # Where to send email about bugs and comments (locally)
  333. X! EMAIL="pixar\!bug-gnuplot@sun.com"
  334. X  
  335. X  #
  336. X  # Manx Aztec C v5.2 compiler options
  337. X--- 15,21 ----
  338. X  # where to install help file gnuplot.gih
  339. X  HELPDEST=GNUPLOT:docs/gnuplot.gih
  340. X  # Where to send email about bugs and comments (locally)
  341. X! EMAIL="bug-gnuplot@ames.arc.nasa.gov"
  342. X  
  343. X  #
  344. X  # Manx Aztec C v5.2 compiler options
  345. X***************
  346. X*** 52,58 ****
  347. X      term/hp26.trm term/hp2648.trm term/hpgl.trm term/hpljii.trm \
  348. X      term/apollo.trm term/gpr.trm
  349. X  CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  350. X!     term/iris4d.trm term/kyo.trm term/latex.trm term/pc.trm 
  351. X  CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  352. X      term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  353. X      term/v384.trm term/x11.trm term/bigfig.trm term/vws.trm gnuplot_x11.c
  354. X--- 55,61 ----
  355. X      term/hp26.trm term/hp2648.trm term/hpgl.trm term/hpljii.trm \
  356. X      term/apollo.trm term/gpr.trm
  357. X  CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  358. X!     term/iris4d.trm term/kyo.trm term/latex.trm term/pbm.trm term/pc.trm 
  359. X  CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  360. X      term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  361. X      term/v384.trm term/x11.trm term/bigfig.trm term/vws.trm gnuplot_x11.c
  362. Xdiff -rc gnuplot/makefile.msc gnuplot3.2/makefile.msc
  363. X*** gnuplot/makefile.msc    Tue Sep 17 08:20:52 1991
  364. X--- gnuplot3.2/makefile.msc    Wed Mar 25 07:59:48 1992
  365. X***************
  366. X*** 1,3 ****
  367. X--- 1,6 ----
  368. X+ #
  369. X+ # $Id: makefile.msc,v 3.26 92/03/24 22:36:31 woo Exp Locker: woo $
  370. X+ #
  371. X  # Make file for use with Microsoft C  Version 5.10
  372. X  # and Microsoft Program Maintenance Utility  Version 4.07
  373. X  # 
  374. X***************
  375. X*** 27,33 ****
  376. X      term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  377. X      term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  378. X  CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  379. X!     term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm 
  380. X  CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  381. X      term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  382. X      term\v384.trm term\x11.trm
  383. X--- 30,36 ----
  384. X      term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  385. X      term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  386. X  CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  387. X!     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pc.trm 
  388. X  CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  389. X      term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  390. X      term\v384.trm term\x11.trm
  391. Xdiff -rc gnuplot/makefile.tc gnuplot3.2/makefile.tc
  392. X*** gnuplot/makefile.tc    Sat Aug 17 13:51:36 1991
  393. X--- gnuplot3.2/makefile.tc    Wed Mar 25 07:59:48 1992
  394. X***************
  395. X*** 1,3 ****
  396. X--- 1,7 ----
  397. X+ #
  398. X+ # $Id: makefile.tc,v 3.26 92/03/24 22:36:32 woo Exp Locker: woo $
  399. X+ #
  400. X+ #
  401. X  # make file for Borland C++ 2.0/Turbo C++ 1.0/Turbo C 2.0
  402. X  # uses Borland proprietry overlay manager
  403. X  # Modified from the TurboC makefile by Maurice Castro
  404. X***************
  405. X*** 51,57 ****
  406. X      term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  407. X      term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  408. X  CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  409. X!     term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm 
  410. X  CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  411. X      term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  412. X      term\v384.trm term\x11.trm
  413. X--- 55,61 ----
  414. X      term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  415. X      term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  416. X  CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  417. X!     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pc.trm 
  418. X  CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  419. X      term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  420. X      term\v384.trm term\x11.trm
  421. Xdiff -rc gnuplot/makefile.unx gnuplot3.2/makefile.unx
  422. X*** gnuplot/makefile.unx    Sun Jan  5 21:33:19 1992
  423. X--- gnuplot3.2/makefile.unx    Tue May  5 21:48:58 1992
  424. X***************
  425. X*** 1,6 ****
  426. X  ############################################################
  427. X  #
  428. X! # GNUPLOT 3.0 Makefile (Unix X11 Motif/Athena support) for
  429. X  #  Apollo/Sun/Dec5000/IBMrs6000/HP9000/SGI/3B1/386IX/Cray
  430. X  #
  431. X  # Original version by:
  432. X--- 1,9 ----
  433. X+ #
  434. X+ # $Id: makefile.unx,v 3.26 92/03/24 22:36:48 woo Exp Locker: woo $
  435. X+ #
  436. X  ############################################################
  437. X  #
  438. X! # GNUPLOT 3.2 Makefile (Unix X11 support) for
  439. X  #  Apollo/Sun/Dec5000/IBMrs6000/HP9000/SGI/3B1/386IX/Cray
  440. X  #
  441. X  # Original version by:
  442. X***************
  443. X*** 19,30 ****
  444. X  # directory where to install executables on 'make install'
  445. X  DEST=/usr/local/bin
  446. X  # directory for installing man page on 'make man_install'.
  447. X! MANDEST=/usr/man/manl
  448. X  # where to install help file gnuplot.gih
  449. X  HELPDEST=/usr/local/lib/gnuplot.gih
  450. X  #HELPDEST=docs/gnuplot.gih
  451. X  # Where to send email about bugs and comments (locally)
  452. X! EMAIL=bug-gnuplot%pixar.uucp@sun.com
  453. X  
  454. X  ############################################################
  455. X  #>>> Choose your C compiler and basic compiler flags.
  456. X--- 22,33 ----
  457. X  # directory where to install executables on 'make install'
  458. X  DEST=/usr/local/bin
  459. X  # directory for installing man page on 'make man_install'.
  460. X! MANDEST=/usr/local/man/manl
  461. X  # where to install help file gnuplot.gih
  462. X  HELPDEST=/usr/local/lib/gnuplot.gih
  463. X  #HELPDEST=docs/gnuplot.gih
  464. X  # Where to send email about bugs and comments (locally)
  465. X! EMAIL=bug-gnuplot@ames.arc.nasa.gov
  466. X  
  467. X  ############################################################
  468. X  #>>> Choose your C compiler and basic compiler flags.
  469. X***************
  470. X*** 31,36 ****
  471. X--- 34,43 ----
  472. X  CC     = cc # the C compiler
  473. X  COPTS  = -O # -O if you trust your compiler's optimizer
  474. X  LD     =$(CC) $(CFLAGS)        # default loading command
  475. X+ NPROC  = 2
  476. X+ RCSOLD = 3.25
  477. X+ RCSVER = 3.26
  478. X+ RCSCOM = "gnuplot3.2  release6"
  479. X  
  480. X  ############################################################
  481. X  #>>> Choose some optional features. 
  482. X***************
  483. X*** 40,46 ****
  484. X  #   Otherwise, your normal terminal editing is all you get.
  485. X  #   Some machines will not support this, and they will turn this
  486. X  #   option off (for example, apollos running SR10.2 or SR10.3 and
  487. X! #   loaded with BSD4.3 instead of SYS5). 
  488. X  # NOCWDRC:
  489. X  #   If NOCWDRC is defined, then any .gnuplot in the current directory
  490. X  #   is not read on startup. This is a security consideration
  491. X--- 47,56 ----
  492. X  #   Otherwise, your normal terminal editing is all you get.
  493. X  #   Some machines will not support this, and they will turn this
  494. X  #   option off (for example, apollos running SR10.2 or SR10.3 and
  495. X! #   loaded with BSD4.3 instead of SYS5). Note: problems with 
  496. X! #   gnuplot prompts have been noted when this feature is selected
  497. X! #   on IBM RS/6000 AIX, and compile errors are encountered on
  498. X! #   Sequent Dynix 3 and Convex OS 9.0.
  499. X  # NOCWDRC:
  500. X  #   If NOCWDRC is defined, then any .gnuplot in the current directory
  501. X  #   is not read on startup. This is a security consideration
  502. X***************
  503. X*** 54,97 ****
  504. X  # tailoring to your site.
  505. X  # Use lasergnu_install to install lasergnu.
  506. X  # Use lasergnu_noinstall to not install lasergnu (default).
  507. X! LASERGNU = lasergnu_noinstall
  508. X  
  509. X  ############################################################
  510. X  # X11 support
  511. X  #
  512. X  
  513. X! #>>> List your X11 libraries#
  514. X! # standard MIT X11 R4:                      -lXaw -lXmu -lXt -lXext -lX11
  515. X! # Apollo DomainOS 10.3 (R3/Athena):         -L/usr/lib/X11 -lXaw -lXmu -lXt -lX11
  516. X! # Apollo DomainOS 10.3 (R3/Motif):          -L/usr/lib/X11 -lXm -lXtm -lX11
  517. X! # IBM RS/6000 AIX 3.1 (R3/Athena):          -L/usr/lpp/X11/Xamples/lib/Xmu \
  518. X! #                                           -L/usr/lpp/X11/Xamples/lib/Xaw \
  519. X! #                                           -lXaw -lXmu -lXt -lXext -lX11
  520. X! # IBM RS/6000 AIX 3.1 (R3/Motif):           -lXm -lXt -lX11
  521. X! # HP 9000/375 HP-UX 6.5 and 7.0 (R3/Motif): -lXm -lXt -lX11
  522. X! # Interactive 386/ix with T.Roell X386 and network support:
  523. X! #                                           -lXaw -lXm -lXt -lXext -lX11 -linet -lpt
  524. X! X11LIBS = -lXaw -lXmu -lXt -lXext -lX11
  525. X  
  526. X! #>>> List your X11 include directories
  527. X! # standard MIT X11 R4: -I/usr/include/X11   -I/usr/include/X11/Xaw 
  528. X! # Apollo DomainOS 10.3 (R3/Athena):         -I/usr/include/X11
  529. X! # Apollo DomainOS 10.3 (R3/Motif):          -I/usr/include/Xm
  530. X! # IBM RS/6000 AIX 3.1 (R3/Athena):          -I/usr/include/X11 \
  531. X! #                                           -I/usr/lpp/X11/Xamples/lib/Xaw \
  532. X! #                                           -I/usr/lpp/X11/Xamples/lib/Xaw/X11
  533. X! # IBM RS/6000 AIX 3.1 (R3/Motif):           -I/usr/include/Xm
  534. X! # HP 9000/375 HP-UX 6.5 and 7.0 (R3/Motif): -I/usr/include/Xm
  535. X! # HP 9000/700 HP-UX 8.0 (R4):               -I/usr/include/X11R4 \
  536. X! #                                           -I/usr/include/X11R4/X11/Xaw
  537. X! X11INCLUDES = -I/usr/include/X11 -I/usr/include/X11/Xaw
  538. X  
  539. X  #>>> You shouldn't have to change these, since they are controlled by
  540. X  #>>> Machine dependent definitions below.
  541. X  #       Compile option for plot.c and TERMFLAGS, to include X11 support
  542. X  PLOTXFLAG = -DX11
  543. X- #          this can add to CFLAGS for X11 compilations. Probably needs no change.
  544. X- X11FLAGS = 
  545. X  #       make gnuplot_x11 by default
  546. X  GNUPLOT_X11 = gnuplot_x11
  547. X  #       install gnuplot_x11 by default
  548. X--- 64,90 ----
  549. X  # tailoring to your site.
  550. X  # Use lasergnu_install to install lasergnu.
  551. X  # Use lasergnu_noinstall to not install lasergnu (default).
  552. X! LASERGNU = lasergnu_install
  553. X  
  554. X  ############################################################
  555. X  # X11 support
  556. X  #
  557. X  
  558. X! #>>> List your X11 libraries
  559. X! X11LIBS = -lX11
  560. X  
  561. X! #>>> List where the X11 include directory is found (if other than /usr/include)
  562. X! X11INCLUDES =
  563. X  
  564. X+ #>>> List additional CFLAGS for X11 compilation
  565. X+ # -DOLD_SELECT if you have an old 4.2 BSD OS (e.g. Sun OS 3.5) and
  566. X+ #   encounter compile error for missing include file <sys/select.h>
  567. X+ X11FLAGS = 
  568. X+ 
  569. X  #>>> You shouldn't have to change these, since they are controlled by
  570. X  #>>> Machine dependent definitions below.
  571. X  #       Compile option for plot.c and TERMFLAGS, to include X11 support
  572. X  PLOTXFLAG = -DX11
  573. X  #       make gnuplot_x11 by default
  574. X  GNUPLOT_X11 = gnuplot_x11
  575. X  #       install gnuplot_x11 by default
  576. X***************
  577. X*** 124,129 ****
  578. X--- 117,125 ----
  579. X  #    this is needed by HP-UX and Cray Unicos systems.
  580. X  #  -DULTRIX_KLUDGE if you run X windows on Ultrix and experience the
  581. X  #    "every other plot" problem.
  582. X+ #  -DCRIPPLED_SELECT if "select errors" are encountered with X. This
  583. X+ #    option is needed on SVR3 platforms with incomplete support for
  584. X+ #    the BSD select() system call
  585. X  #  -Dunix is required to explicitly define "unix" for SCO and IBM
  586. X  #          RS/6000 running AIX 3.1 
  587. X  #  -fswitch if you are compiling on a Sun3 (or even -f68881)
  588. X***************
  589. X*** 130,136 ****
  590. X  #    (but -fswitch is buggy on some systems, so watch out)
  591. X  
  592. X  # Defaults in case the user types 'make All' directly
  593. X! # Should match X11R4_FLAGS's CFLAGS definition
  594. X  CFLAGS = $(COPTS) $(OPTIONS)
  595. X  
  596. X  ############################################################
  597. X--- 126,132 ----
  598. X  #    (but -fswitch is buggy on some systems, so watch out)
  599. X  
  600. X  # Defaults in case the user types 'make All' directly
  601. X! # Should match X11_FLAGS's CFLAGS definition
  602. X  CFLAGS = $(COPTS) $(OPTIONS)
  603. X  
  604. X  ############################################################
  605. X***************
  606. X*** 150,156 ****
  607. X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
  608. X  # -DUNIXPLOT    unixplot
  609. X  # -DX11         X11 Window System (This is $(PLOTXFLAG))
  610. X! TERMFLAGS = -Iterm -DUNIXPLOT $(PLOTXFLAG)
  611. X  
  612. X  ############################################################
  613. X  # Library explanations. 
  614. X--- 146,152 ----
  615. X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
  616. X  # -DUNIXPLOT    unixplot
  617. X  # -DX11         X11 Window System (This is $(PLOTXFLAG))
  618. X! TERMFLAGS = -Iterm -DUNIXPLOT $(PLOTXFLAG) 
  619. X  
  620. X  ############################################################
  621. X  # Library explanations. 
  622. X***************
  623. X*** 163,172 ****
  624. X  #  -lccgi if -DCGI in TERMFLAGS
  625. X  LIBS = -lm -lplot
  626. X  
  627. X  ############################################################
  628. X  # Machine-dependent settings.
  629. X  #
  630. X! X11R4_FLAGS = \
  631. X             CFLAGS="$(COPTS) $(OPTIONS)" \
  632. X             LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  633. X             X11LIBS="$(X11LIBS)" \
  634. X--- 159,175 ----
  635. X  #  -lccgi if -DCGI in TERMFLAGS
  636. X  LIBS = -lm -lplot
  637. X  
  638. X+ ####################################################################
  639. X+ # List of object files except version.o
  640. X+ OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  641. X+        internal.o misc.o parse.o plot.o readline.o scanner.o \
  642. X+        setshow.o standard.o term.o util.o  
  643. X+ 
  644. X+ NEXTOBJS = EPSView.o EpsViewer.o
  645. X  ############################################################
  646. X  # Machine-dependent settings.
  647. X  #
  648. X! X11_FLAGS = \
  649. X             CFLAGS="$(COPTS) $(OPTIONS)" \
  650. X             LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  651. X             X11LIBS="$(X11LIBS)" \
  652. X***************
  653. X*** 174,188 ****
  654. X             X11INSTALL="$(X11INSTALL)" \
  655. X             TERMFLAGS="$(TERMFLAGS)"
  656. X  
  657. X- X11R4_M_FLAGS = \
  658. X-            CFLAGS="$(COPTS) $(OPTIONS)" \
  659. X-            LIBS="$(LIBS)" X11FLAGS="-DMOTIF -D_NO_PROTO" \
  660. X-            X11INCLUDES="-I/usr/include/Xm" \
  661. X-            X11LIBS="-lXm -lXt -lX11" \
  662. X-            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  663. X-            X11INSTALL="$(X11INSTALL)" \
  664. X-            TERMFLAGS="$(TERMFLAGS)"
  665. X- 
  666. X  DEC_FLAGS = \
  667. X             CFLAGS="$(COPTS) $(OPTIONS) " \
  668. X             LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  669. X--- 177,182 ----
  670. X***************
  671. X*** 191,239 ****
  672. X             X11INSTALL="$(X11INSTALL)" \
  673. X             TERMFLAGS="$(TERMFLAGS) -DULTRIX_KLUDGE"
  674. X  
  675. X- DEC_M_FLAGS = \
  676. X-            CFLAGS="$(COPTS) $(OPTIONS)" \
  677. X-            LIBS="$(LIBS)" X11FLAGS="-DMOTIF -D_NO_PROTO" \
  678. X-            X11INCLUDES="-I/usr/include/Xm" \
  679. X-            X11LIBS="-lXm -lXt -lX11" \
  680. X-            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  681. X-            X11INSTALL="$(X11INSTALL)" \
  682. X-            TERMFLAGS="$(TERMFLAGS)  -DULTRIX_KLUDGE"
  683. X- 
  684. X  APOLLO_FLAGS = \
  685. X             CFLAGS="$(COPTS) $(OPTIONS)  -DGAMMA=lgamma" \
  686. X             LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" \
  687. X             X11INCLUDES="$(X11INCLUDES)" \
  688. X!            X11LIBS="-L/usr/lib/X11 -lXaw -lXmu -lXt -lX11" \
  689. X             PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  690. X             X11INSTALL="$(X11INSTALL)" \
  691. X             TERMFLAGS="$(TERMFLAGS) -DAPOLLO -DGPR"
  692. X  
  693. X- APOLLO_M_FLAGS = \
  694. X-            CFLAGS="$(COPTS) $(OPTIONS)  -DGAMMA=lgamma" \
  695. X-            LIBS="$(LIBS)" X11FLAGS="-DMOTIF" X11INCLUDES="-I/usr/include/Xm" \
  696. X-            X11LIBS="-L/usr/lib/X11 -lXm -lXt -lX11" \
  697. X-            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  698. X-            TERMFLAGS="$(TERMFLAGS) -DAPOLLO -DGPR"
  699. X- 
  700. X  HP_FLAGS = \
  701. X!            CFLAGS="$(COPTS) $(OPTIONS) -DMEMSET -DMEMCPY  -DGETCWD" \
  702. X             LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  703. X!            X11INCLUDES="-I/usr/include/X11R4 -I/usr/include/X11R4/X11/Xaw" \
  704. X!            X11LIBS="-L/usr/lib/X11R4 -lXaw -lXmu -lXt -lXext -lX11" \
  705. X             PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  706. X             X11INSTALL="$(X11INSTALL)" \
  707. X             TERMFLAGS="-Iterm -DX11"
  708. X  
  709. X- HP_M_FLAGS = \
  710. X-            CFLAGS="$(COPTS) $(OPTIONS) -DMEMSET -DMEMCPY -DGETCWD" \
  711. X-            LIBS="-lm" X11FLAGS="-DMOTIF -D_NO_PROTO" \
  712. X-            X11INCLUDES="-I/usr/include/Motif1.1 -I/usr/include/Motif1.1/Xm -I/usr/include/X11R4" \
  713. X-            X11LIBS="-L/usr/lib/Motif1.1 -L/usr/lib/X11R4 -lXm -lXt -lX11" \
  714. X-            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  715. X-            X11INSTALL="$(X11INSTALL)" \
  716. X-            TERMFLAGS=" -Iterm -DX11"
  717. X- 
  718. X  SUN_FLAGS = \
  719. X             CFLAGS="$(COPTS) $(OPTIONS)" \
  720. X             LIBS="-lsuntool -lsunwindow -lpixrect $(LIBS)" \
  721. X--- 185,208 ----
  722. X             X11INSTALL="$(X11INSTALL)" \
  723. X             TERMFLAGS="$(TERMFLAGS) -DULTRIX_KLUDGE"
  724. X  
  725. X  APOLLO_FLAGS = \
  726. X             CFLAGS="$(COPTS) $(OPTIONS)  -DGAMMA=lgamma" \
  727. X             LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" \
  728. X             X11INCLUDES="$(X11INCLUDES)" \
  729. X!            X11LIBS="-L/usr/lib/X11 -lX11" \
  730. X             PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  731. X             X11INSTALL="$(X11INSTALL)" \
  732. X             TERMFLAGS="$(TERMFLAGS) -DAPOLLO -DGPR"
  733. X  
  734. X  HP_FLAGS = \
  735. X!            CFLAGS="+O1 $(OPTIONS) -DMEMSET -DMEMCPY  -DGETCWD" \
  736. X             LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  737. X!            X11INCLUDES="-I/usr/include/X11R4" \
  738. X!            X11LIBS="-L/usr/lib/X11R4 -lX11" \
  739. X             PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  740. X             X11INSTALL="$(X11INSTALL)" \
  741. X             TERMFLAGS="-Iterm -DX11"
  742. X  
  743. X  SUN_FLAGS = \
  744. X             CFLAGS="$(COPTS) $(OPTIONS)" \
  745. X             LIBS="-lsuntool -lsunwindow -lpixrect $(LIBS)" \
  746. X***************
  747. X*** 252,258 ****
  748. X             TERMFLAGS="$(TERMFLAGS) -DSUN"
  749. X  
  750. X  SGI_FLAGS = \
  751. X!            CFLAGS="$(COPTS) $(OPTIONS)" \
  752. X             LIBS="-lgl_s -lm" X11FLAGS=" " X11INCLUDES=" " \
  753. X             X11LIBS=" " \
  754. X             PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  755. X--- 221,227 ----
  756. X             TERMFLAGS="$(TERMFLAGS) -DSUN"
  757. X  
  758. X  SGI_FLAGS = \
  759. X!            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  760. X             LIBS="-lgl_s -lm" X11FLAGS=" " X11INCLUDES=" " \
  761. X             X11LIBS=" " \
  762. X             PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  763. X***************
  764. X*** 259,268 ****
  765. X             TERMFLAGS="-Iterm -DIRIS4D"
  766. X  
  767. X  SGIX11_FLAGS = \
  768. X!            CFLAGS="$(COPTS) $(OPTIONS)" \
  769. X             LIBS="-lgl_s -lm -lc_s" X11FLAGS="$(X11FLAGS)" \
  770. X!            X11INCLUDES="-I/usr/include/X11 -I/usr/include/X11/Xaw" \
  771. X!            X11LIBS="-L/usr/lib/X11 -lXaw -lXmu -lXt -lXext -lX11" \
  772. X              PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  773. X              X11INSTALL="$(X11INSTALL)" \
  774. X             TERMFLAGS="-Iterm -DX11 -DIRIS4D"
  775. X--- 228,237 ----
  776. X             TERMFLAGS="-Iterm -DIRIS4D"
  777. X  
  778. X  SGIX11_FLAGS = \
  779. X!            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  780. X             LIBS="-lgl_s -lm -lc_s" X11FLAGS="$(X11FLAGS)" \
  781. X!            X11INCLUDES="$(X11INCLUDES)" \
  782. X!            X11LIBS="-L/usr/lib/X11 -lX11" \
  783. X              PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  784. X              X11INSTALL="$(X11INSTALL)" \
  785. X             TERMFLAGS="-Iterm -DX11 -DIRIS4D"
  786. X***************
  787. X*** 297,331 ****
  788. X  AIX_FLAGS = \
  789. X             CFLAGS="$(COPTS) $(OPTIONS) -Dunix -DNOVFORK" \
  790. X             LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" \
  791. X!            X11INCLUDES="-I/usr/include/X11 -I/usr/lpp/X11/Xamples/lib/Xaw -I/usr/lpp/X11/Xamples/lib/Xaw/X11" \
  792. X!            X11LIBS="-L/usr/lpp/X11/Xamples/lib/Xmu -L/usr/lpp/X11/Xamples/lib/Xaw -lXaw -lXmu -lXt -lXext -lX11" \
  793. X             PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  794. X             X11INSTALL="$(X11INSTALL)" \
  795. X             TERMFLAGS="$(TERMFLAGS)"
  796. X  
  797. X- AIX_M_FLAGS = \
  798. X-            CFLAGS="$(COPTS) $(OPTIONS) -Dunix -DNOVFORK" \
  799. X-            LIBS="$(LIBS)" X11FLAGS="-DMOTIF" X11INCLUDES="-I/usr/include/Xm" \
  800. X-            X11LIBS="-lXm -lXt -lX11" \
  801. X-            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  802. X-            X11INSTALL="$(X11INSTALL)" \
  803. X-            TERMFLAGS="$(TERMFLAGS)"
  804. X- 
  805. X  NEXT_FLAGS = \
  806. X             CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT" \
  807. X!            LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  808. X             X11INCLUDES=" " X11LIBS=" " PLOTXFLAG=" " \
  809. X             GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  810. X!            TERMFLAGS="-Iterm"
  811. X  
  812. X  NEXT_X11_FLAGS = \
  813. X             CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT" \
  814. X!            LIBS="-lm" \
  815. X!            X11LIBS="-L/usr/lib/X11 -lXaw -lXmu -lXt -lX11" \
  816. X             X11INCLUDES="$(X11INCLUDES)" X11FLAGS="$(X11FLAGS)" \
  817. X             PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  818. X             X11INSTALL="$(X11INSTALL)" \
  819. X!            TERMFLAGS="-Iterm -DX11"
  820. X  
  821. X  CRAY_FLAGS = \
  822. X         CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  823. X--- 266,293 ----
  824. X  AIX_FLAGS = \
  825. X             CFLAGS="$(COPTS) $(OPTIONS) -Dunix -DNOVFORK" \
  826. X             LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" \
  827. X!            X11INCLUDES="$(X11INCLUDES)" \
  828. X!            X11LIBS="$(X11LIBS)" \
  829. X             PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  830. X             X11INSTALL="$(X11INSTALL)" \
  831. X             TERMFLAGS="$(TERMFLAGS)"
  832. X  
  833. X  NEXT_FLAGS = \
  834. X             CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT" \
  835. X!            LIBS="-lNeXT_s -lsys_s -lm" \
  836. X!            X11FLAGS="$(X11FLAGS)" \
  837. X             X11INCLUDES=" " X11LIBS=" " PLOTXFLAG=" " \
  838. X             GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  839. X!            TERMFLAGS="-Iterm" OBJS=" $(OBJS) $(NEXTOBJS)"
  840. X  
  841. X  NEXT_X11_FLAGS = \
  842. X             CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT" \
  843. X!            LIBS="-lNeXT_s -lsys_s -lm" \
  844. X!            X11LIBS="-L/usr/lib/X11 -lX11" \
  845. X             X11INCLUDES="$(X11INCLUDES)" X11FLAGS="$(X11FLAGS)" \
  846. X             PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  847. X             X11INSTALL="$(X11INSTALL)" \
  848. X!            TERMFLAGS="-Iterm -DX11" OBJS=" $(OBJS) $(NEXTOBJS)"
  849. X  
  850. X  CRAY_FLAGS = \
  851. X         CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  852. X***************
  853. X*** 335,340 ****
  854. X--- 297,303 ----
  855. X         PLOTXFLAG=" " GNUPLOT_X11=" " \
  856. X         X11INSTALL=x11_noinstall \
  857. X         TERMFLAGS="-Iterm"
  858. X+ 
  859. X  CRAY_X11_FLAGS = \
  860. X         CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  861. X         LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  862. X***************
  863. X*** 343,354 ****
  864. X         PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  865. X         X11INSTALL=$(X11INSTALL) \
  866. X         TERMFLAGS="-Iterm -DX11"
  867. X  ####################################################################
  868. X- # List of object files except version.o
  869. X- OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  870. X-        internal.o misc.o parse.o plot.o readline.o scanner.o \
  871. X-        setshow.o standard.o term.o util.o  
  872. X- ####################################################################
  873. X  # List of source files
  874. X  # Used for makeing shar files, lint, and some dependencies.
  875. X  DIRS = term demo docs docs/latextut
  876. X--- 306,330 ----
  877. X         PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  878. X         X11INSTALL=$(X11INSTALL) \
  879. X         TERMFLAGS="-Iterm -DX11"
  880. X+ 
  881. X+ PTX_X11_FLAGS = \
  882. X+        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DCRIPPLED_SELECT" \
  883. X+        LIBS="-lm -lplot" X11FLAGS="$(X11FLAGS)" \
  884. X+        X11INCLUDES="$(X11INCLUDES)" \
  885. X+        X11LIBS="-lX11 -lseq -lsocket -linet -lnsl" \
  886. X+        PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  887. X+        X11INSTALL=$(X11INSTALL) \
  888. X+        TERMFLAGS="$(TERMFLAGS)"
  889. X+ 
  890. X+ CONVEX_X11_FLAGS = \
  891. X+            CFLAGS="$(COPTS) $(OPTIONS) -DHUGE=8.9e307" \
  892. X+            LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  893. X+            X11LIBS="$(X11LIBS)" \
  894. X+            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  895. X+            X11INSTALL="$(X11INSTALL)" \
  896. X+            TERMFLAGS="$(TERMFLAGS)"
  897. X+ 
  898. X  ####################################################################
  899. X  # List of source files
  900. X  # Used for makeing shar files, lint, and some dependencies.
  901. X  DIRS = term demo docs docs/latextut
  902. X***************
  903. X*** 360,372 ****
  904. X  CSOURCE5 = term/amiga.trm term/aed.trm term/cgi.trm term/dumb.trm term/dxf.trm \
  905. X      term/dxy.trm term/eepic.trm term/epson.trm term/fig.trm \
  906. X      term/hp26.trm term/hp2648.trm term/hpgl.trm term/hpljii.trm \
  907. X!     term/apollo.trm term/gpr.trm
  908. X  CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  909. X!     term/iris4d.trm term/kyo.trm term/latex.trm term/pc.trm 
  910. X  CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  911. X      term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  912. X      term/v384.trm term/x11.trm term/bigfig.trm term/vws.trm gnuplot_x11.c
  913. X  CSOURCE8 = contour.c
  914. X  # not C code, but still needed
  915. X  
  916. X  DEMOS = demo/1.dat demo/2.dat demo/3.dat demo/contours.demo demo/controls.demo \
  917. X--- 336,349 ----
  918. X  CSOURCE5 = term/amiga.trm term/aed.trm term/cgi.trm term/dumb.trm term/dxf.trm \
  919. X      term/dxy.trm term/eepic.trm term/epson.trm term/fig.trm \
  920. X      term/hp26.trm term/hp2648.trm term/hpgl.trm term/hpljii.trm \
  921. X!     term/apollo.trm term/gpr.trm term/ai.trm term/next.trm
  922. X  CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  923. X!     term/iris4d.trm term/kyo.trm term/latex.trm term/pbm.trm term/pc.trm 
  924. X  CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  925. X      term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  926. X      term/v384.trm term/x11.trm term/bigfig.trm term/vws.trm gnuplot_x11.c
  927. X  CSOURCE8 = contour.c
  928. X+ NEXTSRC  = EPSView.m EPSView.h EpsViewer.m EpsViewer.h
  929. X  # not C code, but still needed
  930. X  
  931. X  DEMOS = demo/1.dat demo/2.dat demo/3.dat demo/contours.demo demo/controls.demo \
  932. X***************
  933. X*** 374,388 ****
  934. X      demo/simple.demo demo/surface1.demo demo/surface2.demo demo/using.dat \
  935. X      demo/using.demo demo/world.cor demo/world.dat demo/world.demo \
  936. X      demo/err.dat demo/poldat.demo demo/polar.dat demo/errorbar.demo \
  937. X!     demo/antenna.dat demo/all.demo demo/bivariat.demo
  938. X  
  939. X  ETC = Copyright README README.gnutex README.amiga makefile.unx makefile.vms  \
  940. X      linkopt.amg makefile.amg makefile.ami linkopt.vms buildvms.com \
  941. X!     plot.h help.h setshow.h bitmap.h term.h lasergnu \
  942. X      term/README History gnuplot.el Intergraph.x11 README.Install
  943. X  
  944. X  #BETA files (not standard distribution files)
  945. X! BETA = BETA10
  946. X  # PC-specific files
  947. X  PC = corgraph.asm corplot.c header.mac hrcgraph.asm lineproc.mac \
  948. X      linkopt.msc linkopt.tc linkopt.tco makefile.msc makefile.tc \
  949. X--- 351,365 ----
  950. X      demo/simple.demo demo/surface1.demo demo/surface2.demo demo/using.dat \
  951. X      demo/using.demo demo/world.cor demo/world.dat demo/world.demo \
  952. X      demo/err.dat demo/poldat.demo demo/polar.dat demo/errorbar.demo \
  953. X!     demo/antenna.dat demo/all.demo demo/bivariat.demo demo/hidden.demo
  954. X  
  955. X  ETC = Copyright README README.gnutex README.amiga makefile.unx makefile.vms  \
  956. X      linkopt.amg makefile.amg makefile.ami linkopt.vms buildvms.com \
  957. X!     lasergnu  README.3d README.x11 README.NeXT \
  958. X      term/README History gnuplot.el Intergraph.x11 README.Install
  959. X  
  960. X  #BETA files (not standard distribution files)
  961. X! BETA = BETA6
  962. X  # PC-specific files
  963. X  PC = corgraph.asm corplot.c header.mac hrcgraph.asm lineproc.mac \
  964. X      linkopt.msc linkopt.tc linkopt.tco makefile.msc makefile.tc \
  965. X***************
  966. X*** 405,438 ****
  967. X  info:
  968. X      @echo "Please do a 'make <MACHINE>' where <MACHINE> is one of the following:"
  969. X      @echo 
  970. X!     @echo "apollo, apollo_motif       for Apollo running SR10.3 with Apollo's X11R3"
  971. X!     @echo "dec, dec_motif             for Dec3100/5000 running Ultrix 3.1d with MIT's X11R4"
  972. X!     @echo "hp, hp_motif               for HP/9000 700 series running HP/UX 8.0 with MIT's X11R4"
  973. X!     @echo "sun                        for Sun sparcstation running SunOS 4.1 with suntools (no X11R4) "
  974. X!     @echo "sun_x11                    for Sun sparcstation running SunOS 4.1 with suntools and X11R4 "
  975. X!     @echo "sgi                        for Silicon Graphics IRIS4D machines (no X11R4) "
  976. X!     @echo "sgix11                     for Silicon Graphics IRIS4D machines (X11R4) "
  977. X!     @echo "next                       for NeXT Cube and Slab running NeXTOS 2.0+ (no X11R4) "
  978. X!     @echo "3b1                        for ATT 3b1 machines (no X11R4) "
  979. X!     @echo "386ix                      for 386 machines running 386/ix (no X11)"
  980. X!     @echo "386ix_x11                  for 386 machines running 386/ix with T.Roell X386"
  981. X!     @echo "ibmrs6000, ibmrs6000_motif for IBM RS/6000 running Aix 3.1 with IBM's X11R3"
  982. X!     @echo "x11r4, x11r4_motif         for a generic machine (like a sun or dec) with MIT's X11R4"
  983. X!     @echo "cray            for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 (no X11R4)"
  984. X!     @echo "cray_x11        for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 with X11R4"
  985. X      @echo 
  986. X      @echo "Examples:"
  987. X      @echo
  988. X!     @echo "         make x11r4"
  989. X!     @echo "         make x11r4_motif"
  990. X      @echo "         make apollo"
  991. X      @echo "         make apollo       OPTIONS='-DNOCWDRC' "
  992. X!     @echo "         make apollo_motif DEST='/usr/um/misc/bin' "
  993. X      @echo "         make dec"
  994. X      @echo "         make hp"
  995. X      @echo "         make next"
  996. X      @echo "         make sun          HELPDEST='/usr/um/misc/lib/gnuplot.gih' "
  997. X!     @echo "         make sun          X11INCLUDES='-I/usr/local/include -I/usr/local/include/X11 -I/usr/local/include/X11/Xaw' "
  998. X      @echo "         make sun_x11"
  999. X      @echo "         make sgi"
  1000. X      @echo "         make 3b1"
  1001. X--- 382,417 ----
  1002. X  info:
  1003. X      @echo "Please do a 'make <MACHINE>' where <MACHINE> is one of the following:"
  1004. X      @echo 
  1005. X!     @echo "apollo       for Apollo running SR10.3 with Apollo's X11"
  1006. X!     @echo "dec          for Dec3100/5000 running Ultrix 3.1d with MIT's X11"
  1007. X!     @echo "hp           for HP/9000 700 series running HP/UX 8.0 with MIT's X11R4"
  1008. X!     @echo "sun          for Sun sparcstation running SunOS 4.1 with suntools (no X11) "
  1009. X!     @echo "sun_x11      for Sun sparcstation running SunOS 4.1 with suntools and X11 "
  1010. X!     @echo "sgi          for Silicon Graphics IRIS4D machines (no X11) "
  1011. X!     @echo "sgix11       for Silicon Graphics IRIS4D machines (X11) "
  1012. X!     @echo "next         for NeXT Cube and Slab running NeXTOS 2.0+ (no X11)"
  1013. X!     @echo "next_11      for NeXT Cube and Slab running NeXTOS 2.0+ with X11"
  1014. X!     @echo "3b1          for ATT 3b1 machines (no X11) "
  1015. X!     @echo "386ix        for 386 machines running 386/ix (no X11)"
  1016. X!     @echo "386ix_x11    for 386 machines running 386/ix with T.Roell X386"
  1017. X!     @echo "ibmrs6000    for IBM RS/6000 running Aix 3.1 with IBM's X11"
  1018. X!     @echo "x11          for a generic machine (like a sun or dec) with MIT's X11"
  1019. X!     @echo "cray         for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 (no X11)"
  1020. X!     @echo "cray_x11     for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 with X11"
  1021. X!     @echo "ptx_x11      for Sequent Dynix/PTX with MIT X11"
  1022. X!     @echo "convex_x11   for Convex 9.0 with MIT X11"
  1023. X      @echo 
  1024. X      @echo "Examples:"
  1025. X      @echo
  1026. X!     @echo "         make x11"
  1027. X      @echo "         make apollo"
  1028. X      @echo "         make apollo       OPTIONS='-DNOCWDRC' "
  1029. X!     @echo "         make apollo       DEST='/usr/um/misc/bin' "
  1030. X      @echo "         make dec"
  1031. X      @echo "         make hp"
  1032. X      @echo "         make next"
  1033. X      @echo "         make sun          HELPDEST='/usr/um/misc/lib/gnuplot.gih' "
  1034. X!     @echo "         make sun          X11INCLUDES='-I/usr/local/include' "
  1035. X      @echo "         make sun_x11"
  1036. X      @echo "         make sgi"
  1037. X      @echo "         make 3b1"
  1038. X***************
  1039. X*** 441,447 ****
  1040. X      @echo "         make cray"
  1041. X      @echo "         make cray_x11"
  1042. X      @echo 
  1043. X!     @echo "If you just type 'make All' , it will build gnuplot for Unix X11R4/Athena"
  1044. X      @echo "and the following variables will be used as default:"
  1045. X      @echo 
  1046. X      @echo " DEST                     " $(DEST)
  1047. X--- 420,426 ----
  1048. X      @echo "         make cray"
  1049. X      @echo "         make cray_x11"
  1050. X      @echo 
  1051. X!     @echo "If you just type 'make All' , it will build gnuplot for Unix X11"
  1052. X      @echo "and the following variables will be used as default:"
  1053. X      @echo 
  1054. X      @echo " DEST                     " $(DEST)
  1055. X***************
  1056. X*** 467,496 ****
  1057. X  ###############################################################
  1058. X  # Targets for each machine
  1059. X  
  1060. X! x11r4:
  1061. X!     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(X11R4_FLAGS)    $(TARGET)
  1062. X  
  1063. X- x11r4_motif:
  1064. X-     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(X11R4_M_FLAGS)  $(TARGET)
  1065. X- 
  1066. X  dec:
  1067. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(DEC_FLAGS)      $(TARGET)
  1068. X  
  1069. X- dec_motif:
  1070. X-     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(DEC_M_FLAGS)    $(TARGET)
  1071. X- 
  1072. X  apollo:
  1073. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(APOLLO_FLAGS)   $(TARGET)
  1074. X  
  1075. X- apollo_motif:
  1076. X-     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(APOLLO_M_FLAGS) $(TARGET)
  1077. X- 
  1078. X  hp:
  1079. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(HP_FLAGS)       $(TARGET)
  1080. X  
  1081. X- hp_motif:
  1082. X-     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(HP_M_FLAGS)       $(TARGET)
  1083. X- 
  1084. X  next:
  1085. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(NEXT_FLAGS)     $(TARGET)
  1086. X  
  1087. X--- 446,463 ----
  1088. X  ###############################################################
  1089. X  # Targets for each machine
  1090. X  
  1091. X! x11:
  1092. X!     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(X11_FLAGS)    $(TARGET)
  1093. X  
  1094. X  dec:
  1095. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(DEC_FLAGS)      $(TARGET)
  1096. X  
  1097. X  apollo:
  1098. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(APOLLO_FLAGS)   $(TARGET)
  1099. X  
  1100. X  hp:
  1101. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(HP_FLAGS)       $(TARGET)
  1102. X  
  1103. X  next:
  1104. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(NEXT_FLAGS)     $(TARGET)
  1105. X  
  1106. X***************
  1107. X*** 524,535 ****
  1108. X  ibmrs6000:
  1109. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(AIX_FLAGS)      $(TARGET)
  1110. X  
  1111. X- ibmrs6000_motif:
  1112. X-     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(AIX_M_FLAGS)    $(TARGET)
  1113. X  cray:
  1114. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_FLAGS)     $(TARGET)
  1115. X  cray_x11:
  1116. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_X11_FLAGS) $(TARGET)
  1117. X  
  1118. X  #############################################################
  1119. X  # Targets that really do something
  1120. X--- 491,504 ----
  1121. X  ibmrs6000:
  1122. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(AIX_FLAGS)      $(TARGET)
  1123. X  
  1124. X  cray:
  1125. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_FLAGS)     $(TARGET)
  1126. X  cray_x11:
  1127. X      $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_X11_FLAGS) $(TARGET)
  1128. X+ ptx_x11:
  1129. X+     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(PTX_X11_FLAGS) $(TARGET)
  1130. X+ convex_x11:
  1131. X+     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CONVEX_X11_FLAGS) $(TARGET)
  1132. X  
  1133. X  #############################################################
  1134. X  # Targets that really do something
  1135. X***************
  1136. X*** 556,569 ****
  1137. X      @echo 
  1138. X      @echo "Please do a 'make <MACHINE> TARGET=Install' where <MACHINE> is one of the following:"
  1139. X      @echo 
  1140. X!     @echo "apollo, apollo_motif, dec, dec_motif, hp, sun, sun_x11, sgi, sgix11"
  1141. X!     @echo "next, 3b1, 386ix, ibmrs6000, ibmrs6000_motif, x11r4, x11r4_motif"
  1142. X      @echo 
  1143. X      @echo "Examples:"
  1144. X      @echo
  1145. X!     @echo "         make x11r4        TARGET=Install "
  1146. X      @echo "         make apollo       TARGET=Install "
  1147. X-     @echo "         make apollo_motif TARGET=Install DEST='/usr/um/misc/bin' "
  1148. X      @echo "         make dec          TARGET=Install "
  1149. X      @echo "         make hp           TARGET=Install "
  1150. X      @echo "         make sun          TARGET=Install HELPDEST='/usr/um/misc/lib/gnuplot.gih' "
  1151. X--- 525,538 ----
  1152. X      @echo 
  1153. X      @echo "Please do a 'make <MACHINE> TARGET=Install' where <MACHINE> is one of the following:"
  1154. X      @echo 
  1155. X!     @echo "apollo, dec, hp, sun, sun_x11, sgi, sgix11, cgi,"
  1156. X!     @echo "next, next_x11, 3b1, 386ix, 386ix_x11, ibmrs6000,"
  1157. X!     @echo "x11, cray, cray_x11, ptx_x11, convex_x11"
  1158. X      @echo 
  1159. X      @echo "Examples:"
  1160. X      @echo
  1161. X!     @echo "         make x11          TARGET=Install "
  1162. X      @echo "         make apollo       TARGET=Install "
  1163. X      @echo "         make dec          TARGET=Install "
  1164. X      @echo "         make hp           TARGET=Install "
  1165. X      @echo "         make sun          TARGET=Install HELPDEST='/usr/um/misc/lib/gnuplot.gih' "
  1166. X***************
  1167. X*** 617,625 ****
  1168. X  version.o:
  1169. X      $(CC) $(CFLAGS) -DCONTACT=\"$(EMAIL)\" -c version.c
  1170. X  
  1171. X  $(OBJS): plot.h
  1172. X  
  1173. X! command.o:
  1174. X      $(CC) $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)\"
  1175. X  
  1176. X  command.o help.o misc.o: help.h
  1177. X--- 586,600 ----
  1178. X  version.o:
  1179. X      $(CC) $(CFLAGS) -DCONTACT=\"$(EMAIL)\" -c version.c
  1180. X  
  1181. X+ EpsViewer.o : EpsViewer.h EpsViewer.m EPSView.h
  1182. X+     $(CC) -c EpsViewer.m
  1183. X+ 
  1184. X+ EPSView.o : EPSView.h EPSView.m
  1185. X+         $(CC) -c EPSView.m  
  1186. X+ 
  1187. X  $(OBJS): plot.h
  1188. X  
  1189. X! command.o: command.c
  1190. X      $(CC) $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)\"
  1191. X  
  1192. X  command.o help.o misc.o: help.h
  1193. X***************
  1194. X*** 632,639 ****
  1195. X  # Miscellaneous targets
  1196. X  
  1197. X  SOURCES=plot.h help.h setshow.h bitmap.h term.h $(CSOURCE1) $(CSOURCE2) \
  1198. X!     $(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7) $(CSOURCE8)
  1199. X  
  1200. X  lint:
  1201. X      lint -hx $(SOURCES)
  1202. X  
  1203. X--- 607,617 ----
  1204. X  # Miscellaneous targets
  1205. X  
  1206. X  SOURCES=plot.h help.h setshow.h bitmap.h term.h $(CSOURCE1) $(CSOURCE2) \
  1207. X!     $(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)\
  1208. X!      $(CSOURCE8) $(NEXTSRC)
  1209. X  
  1210. X+ DOCS  = $(DOCS1) $(DOCS2) $(DOCS3)
  1211. X+ 
  1212. X  lint:
  1213. X      lint -hx $(SOURCES)
  1214. X  
  1215. X***************
  1216. X*** 704,707 ****
  1217. X--- 682,712 ----
  1218. X  
  1219. X  gnuplot.sh15: $(BETA)
  1220. X      shar $(BETA) > gnuplot.sh15
  1221. X+ 
  1222. X+ tar: $(ETC) $(SOURCES) $(PC) $(DEMOS) $(BETA) $(DOCS)
  1223. X+     $(TAR) cvf /tmp/gnuplot.tar $(ETC) $(SOURCES) $(PC)\
  1224. X+          $(DEMOS) $(BETA) $(DOCS)
  1225. X+ rcsdoc:
  1226. X+     rcs -o-$(RCSOLD) -l$(RCSVER) $(DOCS)
  1227. X+ 
  1228. X+ rcs:
  1229. X+     rcs -l$(RCSVER) -c$(RCSCOM) $(ETC) $(SOURCES) $(PC)
  1230. X+ 
  1231. X+ ci:
  1232. X+     ci -l$(RCSVER) -m$(RCSCOM) $(SOURCES) $(PC) $(ETC)
  1233. X+ 
  1234. X+ cidoc:
  1235. X+     ci -l$(RCSVER) -m$(RCSCOM) $(DOCS)
  1236. X+ 
  1237. X+ cidemo:
  1238. X+     ci -l$(RCSVER) -m$(RCSCOM) $(DEMOS)
  1239. X+ 
  1240. X+ co:
  1241. X+     co -l -r$(RCSVER) $(ETC) $(SOURCES) $(PC)
  1242. X+ 
  1243. X+ codoc:
  1244. X+     co -l -r$(RCSVER) $(DOCS)
  1245. X+ 
  1246. X+ codemo:
  1247. X+     co -l -r$(RCSVER) $(DEMOS)
  1248. X  
  1249. END_OF_FILE
  1250.   if test 45409 -ne `wc -c <'patch.4'`; then
  1251.     echo shar: \"'patch.4'\" unpacked with wrong size!
  1252.   fi
  1253.   # end of 'patch.4'
  1254. fi
  1255. if test -f 'term/pbm.trm' -a "${1}" != "-c" ; then 
  1256.   echo shar: Will not clobber existing file \"'term/pbm.trm'\"
  1257. else
  1258.   echo shar: Extracting \"'term/pbm.trm'\" \(6895 characters\)
  1259.   sed "s/^X//" >'term/pbm.trm' <<'END_OF_FILE'
  1260. X/*
  1261. X * $Id: pbm.trm,v 3.24 1992/02/29 16:23:41 woo Exp woo $
  1262. X *
  1263. X * $Log: pbm.trm,v $
  1264. X * Revision 3.24  1992/02/29  16:23:41  woo
  1265. X * gnuplot3.2, beta 4
  1266. X *
  1267. X * Revision 3.23  1992/02/21  20:18:16  woo
  1268. X * gnuplot3.2, beta 3
  1269. X *
  1270. X */
  1271. X
  1272. X/* GNUPLOT - pbm.trm */
  1273. X/*
  1274. X * Copyright (C) 1990, 1991, 1992   
  1275. X *
  1276. X * Permission to use, copy, and distribute this software and its
  1277. X * documentation for any purpose with or without fee is hereby granted, 
  1278. X * provided that the above copyright notice appear in all copies and 
  1279. X * that both that copyright notice and this permission notice appear 
  1280. X * in supporting documentation.
  1281. X *
  1282. X * Permission to modify the software is granted, but not the right to
  1283. X * distribute the modified code.  Modifications are to be distributed 
  1284. X * as patches to released version.
  1285. X *  
  1286. X * This software  is provided "as is" without express or implied warranty.
  1287. X * 
  1288. X * This file is included by ../term.c.
  1289. X *
  1290. X * This terminal driver supports:
  1291. X *  pbm, pgm, ppm
  1292. X *
  1293. X * AUTHORS
  1294. X *  Russell Lang
  1295. X *
  1296. X * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  1297. X * 
  1298. X */
  1299. X
  1300. X/* The following pbmplus drivers use the generic bit mapped graphics
  1301. X   routines from bitmap.c to build up a bit map in memory.  The driver
  1302. X   interchanges colomns and lines in order to access entire lines
  1303. X   easily and returns the lines to get bits in the right order :
  1304. X   (x,y) -> (y,XMAX-1-x). */
  1305. X/* This interchange is done by calling b_makebitmap() with reversed 
  1306. X   xmax and ymax, and then setting b_rastermode to TRUE.  b_setpixel()
  1307. X   will then perform the interchange before each pixel is plotted */
  1308. X/* See Jef Poskanzer's excellent PBMplus package for more details of
  1309. X   the Portable BitMap format and for programs to convert PBM files  
  1310. X   to other bitmap formats. */
  1311. X
  1312. X#ifdef PBM
  1313. X
  1314. X/* make XMAX and YMAX a multiple of 8 */
  1315. X#define PBM_XMAX (640)
  1316. X#define PBM_YMAX (480)
  1317. X#define PBM_VCHAR (FNT5X9_VCHAR)
  1318. X#define PBM_HCHAR (FNT5X9_VCHAR)
  1319. X#define PBM_VTIC FNT5X9_HBITS
  1320. X#define PBM_HTIC FNT5X9_HBITS
  1321. X
  1322. Xstatic int pbm_font=1;    /* small font */
  1323. X/* 7=black, 0=white */
  1324. Xstatic int pgm_gray[]={7,1,6,5,4,3,2,1,7};  /* grays  */
  1325. X/* bit3=!intensify, bit2=!red, bit1=!green, bit0=!blue */
  1326. Xstatic int ppm_color[]={15,8,3,5,6,4,2,1,11,13,14}; /* colors */
  1327. X
  1328. XPBMoptions()
  1329. X{
  1330. X    if (!END_OF_COMMAND) {
  1331. X        if (almost_equals(c_token,"s$mall"))
  1332. X            pbm_font=1;
  1333. X        else if (almost_equals(c_token,"m$edium"))
  1334. X            pbm_font=2;
  1335. X        else if (almost_equals(c_token,"l$arge"))
  1336. X            pbm_font=3;
  1337. X        else
  1338. X            int_error("expecting: small, medium, large",c_token);
  1339. X        c_token++;
  1340. X    }
  1341. X}
  1342. X
  1343. X
  1344. XPBMinit()
  1345. X{
  1346. X#ifdef vms
  1347. X   reopen_binary();
  1348. X#endif /* vms */
  1349. X#ifdef PC
  1350. X   reopen_binary();
  1351. X#endif /* PC */
  1352. X}
  1353. X
  1354. X
  1355. XPBMreset()
  1356. X{
  1357. X#ifdef vms
  1358. X   fflush_binary();
  1359. X#endif /* vms */
  1360. X}
  1361. X
  1362. X
  1363. XPBMsetfont()
  1364. X{
  1365. X    switch(pbm_font) {
  1366. X        case 1:
  1367. X            b_charsize(FNT5X9);
  1368. X            term_tbl[term].v_char = FNT5X9_VCHAR;
  1369. X            term_tbl[term].h_char = FNT5X9_HCHAR;
  1370. X            term_tbl[term].v_tic = FNT5X9_HBITS;
  1371. X            term_tbl[term].h_tic = FNT5X9_HBITS;
  1372. X            break;
  1373. X        case 2:
  1374. X            b_charsize(FNT9X17);
  1375. X            term_tbl[term].v_char = FNT9X17_VCHAR;
  1376. X            term_tbl[term].h_char = FNT9X17_HCHAR;
  1377. X            term_tbl[term].v_tic = FNT9X17_HBITS;
  1378. X            term_tbl[term].h_tic = FNT9X17_HBITS;
  1379. X            break;
  1380. X        case 3:
  1381. X            b_charsize(FNT13X25);
  1382. X            term_tbl[term].v_char = FNT13X25_VCHAR;
  1383. X            term_tbl[term].h_char = FNT13X25_HCHAR;
  1384. X            term_tbl[term].v_tic = FNT13X25_HBITS;
  1385. X            term_tbl[term].h_tic = FNT13X25_HBITS;
  1386. X            break;
  1387. X    }
  1388. X}
  1389. X
  1390. X
  1391. XPBMgraphics()
  1392. X{
  1393. X    PBMsetfont();
  1394. X    /* rotate plot -90 degrees by reversing XMAX and YMAX and by 
  1395. X    setting b_rastermode to TRUE */
  1396. X    b_makebitmap((unsigned int)(PBM_YMAX*ysize),
  1397. X                     (unsigned int)(PBM_XMAX*xsize),1);
  1398. X    b_rastermode = TRUE;
  1399. X}
  1400. X
  1401. X
  1402. XPBMtext()
  1403. X{
  1404. X  register int x,j,row;
  1405. X
  1406. X   fprintf(outfile,"P4\n");
  1407. X   fprintf(outfile,"%u %u\n", b_ysize, b_xsize);
  1408. X
  1409. X   /* dump bitmap in raster mode */
  1410. X   for (x = b_xsize-1; x >= 0; x--) {
  1411. X      row = (b_ysize/8)-1;
  1412. X      for (j = row; j >= 0; j--) {
  1413. X         (void) fputc( (char)(*((*b_p)[j]+x)), outfile );
  1414. X      }
  1415. X   }
  1416. X
  1417. X   b_freebitmap();
  1418. X}
  1419. X
  1420. X#define PBMlinetype b_setlinetype
  1421. X#define PBMmove b_move
  1422. X#define PBMvector b_vector
  1423. X#define PBMtext_angle b_text_angle
  1424. X#define PBMtext_angle b_text_angle
  1425. X#define PBMput_text b_put_text
  1426. X
  1427. X/* PGM functions */
  1428. XPGMgraphics()
  1429. X{
  1430. X    PBMsetfont();
  1431. X    /* rotate plot -90 degrees by reversing XMAX and YMAX and by 
  1432. X    setting b_rastermode to TRUE */
  1433. X    b_makebitmap((unsigned int)(PBM_YMAX*ysize),
  1434. X                     (unsigned int)(PBM_XMAX*xsize),3);
  1435. X    b_rastermode = TRUE;
  1436. X        b_setlinetype(0); /* solid lines */
  1437. X}
  1438. X
  1439. X
  1440. XPGMtext()
  1441. X{
  1442. X  register int x,j,row;
  1443. X  register int i,value;
  1444. X  int mask, plane1, plane2, plane3;
  1445. X
  1446. X   fprintf(outfile,"P5\n");
  1447. X   fprintf(outfile,"%u %u\n", b_ysize, b_xsize);
  1448. X   fprintf(outfile,"%u\n",7);
  1449. X
  1450. X   /* dump bitmap in raster mode */
  1451. X   for (x = b_xsize-1; x >= 0; x--) {
  1452. X      row = (b_ysize/8)-1;
  1453. X      for (j = row; j >= 0; j--) {
  1454. X         mask = 0x80;
  1455. X         plane1=(*((*b_p)[j]+x));
  1456. X         plane2=(*((*b_p)[j+b_psize]+x));
  1457. X         plane3=(*((*b_p)[j+b_psize+b_psize]+x));
  1458. X         for (i=0; i<8; i++) {
  1459. X            value=7;
  1460. X            if (plane1 & mask)  value-=1;
  1461. X            if (plane2 & mask)  value-=2;
  1462. X            if (plane3 & mask)  value-=4;
  1463. X            (void) fputc( (char)(value), outfile );
  1464. X            mask>>=1;
  1465. X         }
  1466. X      }
  1467. X   }
  1468. X
  1469. X   b_freebitmap();
  1470. X}
  1471. X
  1472. X
  1473. XPGMlinetype(linetype)
  1474. Xint linetype;
  1475. X{
  1476. X    if (linetype>=7)
  1477. X        linetype %= 7;
  1478. X    b_setvalue(pgm_gray[linetype+2]);
  1479. X}
  1480. X
  1481. X
  1482. X/* PPM functions */
  1483. XPPMgraphics()
  1484. X{
  1485. X    PBMsetfont();
  1486. X    /* rotate plot -90 degrees by reversing XMAX and YMAX and by 
  1487. X    setting b_rastermode to TRUE */
  1488. X    b_makebitmap((unsigned int)(PBM_YMAX*ysize),
  1489. X                     (unsigned int)(PBM_XMAX*xsize),4);
  1490. X    b_rastermode = TRUE;
  1491. X        b_setlinetype(0); /* solid lines */
  1492. X}
  1493. X
  1494. X
  1495. X
  1496. XPPMtext()
  1497. X{
  1498. X  register int x,j,row;
  1499. X  register int i;
  1500. X  int mask, plane1, plane2, plane3, plane4;
  1501. X  int red, green, blue;
  1502. X
  1503. X   fprintf(outfile,"P6\n");
  1504. X   fprintf(outfile,"%u %u\n", b_ysize, b_xsize);
  1505. X   fprintf(outfile,"%u\n",3);
  1506. X
  1507. X   /* dump bitmap in raster mode */
  1508. X   for (x = b_xsize-1; x >= 0; x--) {
  1509. X      row = (b_ysize/8)-1;
  1510. X      for (j = row; j >= 0; j--) {
  1511. X         mask = 0x80;
  1512. X         plane1=(*((*b_p)[j]+x));
  1513. X         plane2=(*((*b_p)[j+b_psize]+x));
  1514. X         plane3=(*((*b_p)[j+b_psize+b_psize]+x));
  1515. X         plane4=(*((*b_p)[j+b_psize+b_psize+b_psize]+x));
  1516. X         for (i=0; i<8; i++) {
  1517. X            red = (plane3 & mask) ? 1 : 3;
  1518. X            green = (plane2 & mask) ? 1 : 3;
  1519. X            blue = (plane1 & mask) ? 1 : 3;
  1520. X            if (plane4 & mask) {
  1521. X               red--; green--; blue--;
  1522. X            }
  1523. X            (void) fputc( (char)(red), outfile );
  1524. X            (void) fputc( (char)(green), outfile );
  1525. X            (void) fputc( (char)(blue), outfile );
  1526. X            mask>>=1;
  1527. X         }
  1528. X      }
  1529. X   }
  1530. X
  1531. X   b_freebitmap();
  1532. X}
  1533. X
  1534. X
  1535. XPPMlinetype(linetype)
  1536. Xint linetype;
  1537. X{
  1538. X    if (linetype>=9)
  1539. X        linetype %= 9;
  1540. X    b_setvalue(ppm_color[linetype+2]);
  1541. X}
  1542. X
  1543. X#endif /* PBM */
  1544. END_OF_FILE
  1545.   if test 6895 -ne `wc -c <'term/pbm.trm'`; then
  1546.     echo shar: \"'term/pbm.trm'\" unpacked with wrong size!
  1547.   fi
  1548.   # end of 'term/pbm.trm'
  1549. fi
  1550. echo shar: End of archive 2 \(of 7\).
  1551. cp /dev/null ark2isdone
  1552. MISSING=""
  1553. for I in 1 2 3 4 5 6 7 ; do
  1554.     if test ! -f ark${I}isdone ; then
  1555.     MISSING="${MISSING} ${I}"
  1556.     fi
  1557. done
  1558. if test "${MISSING}" = "" ; then
  1559.     echo You have unpacked all 7 archives.
  1560.     rm -f ark[1-9]isdone
  1561. else
  1562.     echo You still must unpack the following archives:
  1563.     echo "        " ${MISSING}
  1564. fi
  1565. exit 0
  1566.  
  1567. exit 0 # Just in case...
  1568.