
#
# This makefile is automatically generated by imake... do not modify
# or you may lose your changes when imake generates makefiles again.
# Ignore this message if you are not using imake.
#

#            TOP = ./..
            TOP = /usr
             AS = as
             CC = cc
            CPP = /lib/cpp
             LD = ld
           LINT = lint
        INSTALL = install
           TAGS = ctags
             RM = rm -f
             MV = mv
             LN = ln -s
         RANLIB = ranlib
             AR = ar clq
             LS = ls
       LINTOPTS = -axz
    LINTLIBFLAG = -C
           MAKE = make
    STD_DEFINES =
    CDEBUGFLAGS = -O
        DESTDIR =

        PATHSEP = /
         DEPEND = $(DEPENDSRC)/makedepend
          IMAKE = $(IMAKESRC)/imake
            RGB = $(RGBSRC)/rgb
         CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
      LINTFLAGS = $(LINTOPTS) $(INCLUDES) $(STD_DEFINES) $(DEFINES) -DLINT
        LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
   INSTUIDFLAGS = -m 4755
   INSTLIBFLAGS = -m 0664
   INSTINCFLAGS = -m 0444
   INSTMANFLAGS = -m 0444
   INSTAPPFLAGS = -m 0444

      USRLIBDIR = $(DESTDIR)/usr/lib
         BINDIR = $(DESTDIR)/usr/new/X11
         LIBDIR = $(USRLIBDIR)/X11
     LINTLIBDIR = $(USRLIBDIR)/lint
         INCDIR = $(DESTDIR)/usr/include/X11
        FONTDIR = $(LIBDIR)/fonts
         UWMDIR = $(LIBDIR)/uwm
         MANDIR = $(DESTDIR)/usr/man/mann
    XAPPLOADDIR = $(LIBDIR)/app-defaults
         ADMDIR = $(DESTDIR)/usr/adm

      CLIENTSRC = $(TOP)/clients
        DEMOSRC = $(TOP)/demos
         LIBSRC = $(TOP)/lib
        FONTSRC = $(TOP)/fonts
     INCLUDESRC = $(TOP)/X11
      SERVERSRC = $(TOP)/server
        UTILSRC = $(TOP)/util
     EXAMPLESRC = $(TOP)/examples
     CONTRIBSRC = $(TOP)/contrib
         DOCSRC = $(TOP)/doc
      DEPENDSRC = $(UTILSRC)/makedepend
       IMAKESRC = $(UTILSRC)/imake
       IRULESRC = $(UTILSRC)/imake.includes
         RGBSRC = $(UTILSRC)/rgb
        XLIBSRC = $(LIBSRC)/X
     TOOLKITSRC = $(LIBSRC)/Xt
     AWIDGETSRC = $(LIBSRC)/Xaw
     OLDXLIBSRC = $(LIBSRC)/oldX
   EXTENSIONSRC = $(TOP)/extensions
        XMANSRC = $(DOCSRC)/Xlib/Xman
   EXTENSIONLIB = $(EXTENSIONSRC)/lib/libXext.a
#           XLIB = $(XLIBSRC)/libX11.a
           XLIB = /usr/lib/libX11.a
        OLDXLIB = $(OLDXLIBSRC)/liboldX.a
       XTOOLLIB = $(TOOLKITSRC)/libXt.a
         XAWLIB = $(AWIDGETSRC)/libXaw.a
       LINTXLIB = $(XLIBSRC)/llib-lX11.ln
      LINTXTOOL = $(TOOLKITSRC)/llib-lXt.ln
        LINTXAW = $(AWIDGETSRC)/llib-lXaw.ln
       INCLUDES = -I$(TOP)
      MACROFILE = Vax.macros
      IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl \
			-I$(NEWTOP)$(IRULESRC) \
			-s Makefile
         RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
			tags TAGS make.log

        DEFINES = -DVFORK -DBCOPY -DGAMMA -DTEK -DPOSTSCRIPT -DXWINDOW \
		  -DUNIXPLOT -DHELP_INFO_FILE=\"$(LIBDIR)/gnuplot.info\"
LOCAL_LIBRARIES = $(XLIB)
# -lplot if you have -DUNIXPLOT
  SYS_LIBRARIES = -lm -lplot
           OBJS = command.o eval.o graphics.o internal.o misc.o parse.o \
		  plot.o scanner.o standard.o term.o util.o x11term.o \
		  unix-fns.o help.o obstack.o version.o xdefaults.o
           SRCS = command.c eval.c graphics.c internal.c misc.c parse.c \
		  plot.c scanner.c standard.c term.c util.c x11term.c \
		  unix-fns.c help.c obstack.c version.c xdefaults.c

        PROGRAM = gnuplot

all:: gnuplot

gnuplot: $(OBJS) $(LOCAL_LIBRARIES)
	$(RM) $@
	$(CC) -o $@ $(OBJS) $(LOCAL_LIBRARIES) $(LDFLAGS)

relink::
	$(RM) $(PROGRAM)
	$(MAKE) $(MFLAGS) $(PROGRAM)

install:: gnuplot
	$(INSTALL) -c $(INSTALLFLAGS) gnuplot $(BINDIR)

install:: gnuplot.man
	$(INSTALL) -c $(INSTMANFLAGS) gnuplot.man $(MANDIR)/gnuplot.n

depend:: $(DEPEND)

depend::
	$(DEPEND) -s "# DO NOT DELETE" $(CFLAGS) $(SRCS)

$(DEPEND):
	@echo "making $(DEPENDSRC)"; \
	cd $(DEPENDSRC); $(MAKE)

clean::
	$(RM) $(PROGRAM)

test:  test.o  $(XLIB)
	$(RM) $@
	$(CC) -o $@  test.o  $(XLIB) $(LDFLAGS)

relink::
	$(RM) test
	$(MAKE) $(MFLAGS) test

clean::
	$(RM) test

install:: gnuplot.info
	$(INSTALL) -c $(INSTALLFLAGS) gnuplot.info  $(LIBDIR)/gnuplot.info

clean::
	$(RM_CMD) \#*

Makefile:: $(IMAKE)

Makefile:: Imakefile \
	$(IRULESRC)/Imake.tmpl \
	$(IRULESRC)/Imake.rules \
	$(IRULESRC)/$(MACROFILE)
		-$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
		$(IMAKE_CMD) -DTOPDIR=$(TOP)

$(IMAKE):
	@echo "making $(IMAKESRC)"; \
	cd $(IMAKESRC); $(MAKE)

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

install::
	@echo "install done"

Makefiles::

# DO NOT DELETE

command.o: /usr/include/stdio.h /usr/include/math.h plot.h
eval.o: /usr/include/stdio.h plot.h
graphics.o: /usr/include/stdio.h /usr/include/math.h plot.h
internal.o: /usr/include/math.h /usr/include/stdio.h plot.h
misc.o: /usr/include/stdio.h plot.h
parse.o: /usr/include/stdio.h /usr/include/setjmp.h /usr/include/signal.h
parse.o: /usr/include/errno.h plot.h
plot.o: /usr/include/stdio.h /usr/include/setjmp.h /usr/include/signal.h
plot.o: plot.h
scanner.o: /usr/include/stdio.h /usr/include/ctype.h plot.h
standard.o: /usr/include/math.h /usr/include/stdio.h plot.h
term.o: /usr/include/stdio.h plot.h
util.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/stdio.h
util.o: /usr/include/errno.h plot.h
x11term.o: /usr/include/stdio.h /usr/include/X11/Xlib.h
x11term.o: /usr/include/X11/Xutil.h /usr/include/fcntl.h
x11term.o: /usr/include/sys/file.h /usr/include/signal.h obstack.h plot.h
x11term.o: xdefs.h
unix-fns.o: /usr/include/math.h /usr/include/errno.h
help.o: /usr/include/stdio.h /usr/include/ctype.h plot.h obstack.h
obstack.o: obstack.h
xdefaults.o: /usr/include/stdio.h /usr/include/X11/Xlib.h
xdefaults.o: /usr/include/X11/Xutil.h xdefs.h
