[BACK]Return to makefile.unx CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Annotation of OpenXM_contrib/gnuplot/makefile.unx, Revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>