# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.37 88/10/08 20:08:30 jim Exp $

###########################################################################
# X Window System Makefile generated from template file Imake.tmpl
# $XConsortium: Imake.tmpl,v 1.91 88/10/23 22:37:10 jim Exp $
#
# Do not change the body of the imake template file.  Server-specific
# parameters may be set in the appropriate .macros file; site-specific
# parameters (but shared by all servers) may be set in site.def.  If you
# make any changes, you'll need to rebuild the makefiles using
# "make World" (at best) or "make Makefile; make Makefiles" (at least) in
# the top level directory.
#
# If your C preprocessor doesn't define any unique symbols, you'll need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make Makefile", "make Makefiles", or "make World").
#
# If you absolutely can't get imake to work, you'll need to set the
# variables at the top of each Makefile as well as the dependencies at the
# bottom (makedepend will do this automatically).
#

###########################################################################
# platform-specific configuration parameters - edit Mips.macros to change

# platform:  $XConsortium: Vax.macros,v 1.49 88/10/23 11:01:02 jim Exp $

BOOTSTRAPCFLAGS =
             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
RANLIBINSTFLAGS = -t
             AR = ar clq
             LS = ls
       LINTOPTS = -axz
    LINTLIBFLAG = -C
           MAKE = make
STD_CPP_DEFINES =
    STD_DEFINES =
    	DEFINES =

###########################################################################
# site-specific configuration parameters - edit site.def to change

# site:  $XConsortium: site.def,v 1.16 88/10/12 10:30:24 jim Exp $

SYSLAST_LIBRARIES = # -ldnet

###########################################################################
# definitions common to all Makefiles - do not edit

          SHELL = 	/bin/sh

        DESTDIR =
      USRLIBDIR =     $(DESTDIR)/usr/lib
         BINDIR = 	    $(DESTDIR)/usr/bin/X11
         INCDIR = 	    $(DESTDIR)/usr/include/X11
         ADMDIR = $(DESTDIR)/usr/adm
         LIBDIR = $(USRLIBDIR)/X11
     LINTLIBDIR = $(USRLIBDIR)/lint
        FONTDIR = $(LIBDIR)/fonts
       XINITDIR = $(LIBDIR)/xinit
         XDMDIR = $(LIBDIR)/xdm
         UWMDIR = $(LIBDIR)/uwm
         AWMDIR = $(LIBDIR)/awm
         TWMDIR = $(LIBDIR)/twm
        MANPATH = $(DESTDIR)/usr/local/man
  MANSOURCEPATH = $(MANPATH)/man
         MANDIR = $(MANSOURCEPATH)1
      LIBMANDIR = $(MANSOURCEPATH)3
    XAPPLOADDIR = $(LIBDIR)/app-defaults

   INSTBINFLAGS = -m 0755
   INSTUIDFLAGS = -m 4755
   INSTLIBFLAGS = -m 0664
   INSTINCFLAGS = -m 0444
   INSTMANFLAGS = -m 0444
   INSTAPPFLAGS = -m 0444
  INSTKMEMFLAGS =       -m 0755
        FCFLAGS = -t
    CDEBUGFLAGS = -O

        PATHSEP = /
         DEPEND = $(DEPENDSRC)/makedepend
          IMAKE = $(IMAKESRC)/imake
            RGB = $(RGBSRC)/rgb
             FC = $(BDFTOSNFSRC)/bdftosnf
      MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
      MKDIRHIER = $(SCRIPTSSRC)/mkdirhier.sh

         CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
      LINTFLAGS = $(LINTOPTS) $(INCLUDES) $(STD_DEFINES) $(DEFINES) -DLINT
        LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
            TOP = ../..
      CLIENTSRC = $(TOP)/clients
        DEMOSRC = $(TOP)/demos
         LIBSRC = $(TOP)/lib
        FONTSRC = $(TOP)/fonts
     INCLUDESRC = $(TOP)/X11 -I$(TOP)
      SERVERSRC = $(TOP)/server
        UTILSRC = $(TOP)/util
     SCRIPTSSRC = $(UTILSRC)/scripts
     EXAMPLESRC = $(TOP)/examples
     CONTRIBSRC = $(TOP)/contrib
         DOCSRC = $(TOP)/doc
         RGBSRC = $(TOP)/rgb
      DEPENDSRC = $(UTILSRC)/makedepend
       IMAKESRC = $(UTILSRC)/imake
       IRULESRC = $(UTILSRC)/imake.includes
        XLIBSRC = $(LIBSRC)/X
         XMUSRC = $(LIBSRC)/Xmu
     TOOLKITSRC = $(LIBSRC)/Xt
     AWIDGETSRC = $(LIBSRC)/Xaw
     OLDXLIBSRC = $(LIBSRC)/oldX
    BDFTOSNFSRC = $(FONTSRC)/bdftosnf
   MKFONTDIRSRC = $(FONTSRC)/mkfontdir
   EXTENSIONSRC = $(TOP)/extensions
   EXTENSIONLIB = $(EXTENSIONSRC)/lib/libXext.a
           XLIB = $(XLIBSRC)/libX11.a
         XMULIB = $(XMUSRC)/libXmu.a
        OLDXLIB = $(OLDXLIBSRC)/liboldX.a
       XTOOLLIB = $(TOOLKITSRC)/libXt.a
         XAWLIB = $(AWIDGETSRC)/libXaw.a
       LINTXLIB = $(XLIBSRC)/llib-lX11.ln
        LINTXMU = $(XMUSRC)/llib-lXmu.ln
      LINTXTOOL = $(TOOLKITSRC)/llib-lXt.ln
        LINTXAW = $(AWIDGETSRC)/llib-lXaw.ln
       INCLUDES = -I$(TOP)
      MACROFILE = Mips.macros
   ICONFIGFILES = $(IRULESRC)/Imake.tmpl \
			$(IRULESRC)/$(MACROFILE) $(IRULESRC)/site.def
  IMAKE_DEFINES =
      IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl -I$(NEWTOP)$(IRULESRC) \
			-s Makefile $(IMAKE_DEFINES)
         RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
			.emacs_* tags TAGS make.log MakeOut

###########################################################################
# rules:  $XConsortium: Imake.rules,v 1.71 88/10/23 22:46:34 jim Exp $

###########################################################################
# start of Imakefile

       PROGRAMS = x11perf x11perf_labels
        HEADERS = x11perf.h bitmaps.h
           SRCS = x11perf.c bitmaps.c do_tests.c \
		  do_simple.c do_rects.c do_valgc.c \
		  do_lines.c do_segs.c \
		  do_dots.c do_windows.c do_movewin.c do_text.c \
		  do_copyarea.c do_arcs.c \
		  do_triangles.c do_complex.c do_traps.c\
		  do_randlines.c do_primlines.c do_cmap.c do_clear.c \
		  do_align.c do_rect.c do_hvdlines.c do_orient.c \
		  do_polygon.c do_dbuf.c rand.c do_Triangles.c

           OBJS = x11perf.o bitmaps.o do_tests.o \
		  do_simple.o do_rects.o do_valgc.o \
		  do_lines.o do_segs.o \
		  do_dots.o do_windows.o do_movewin.o do_text.o \
		  do_copyarea.o do_arcs.o \
		  do_triangles.o do_complex.o do_traps.o\
		  do_randlines.o do_primlines.o do_cmap.o do_clear.o \
		  do_align.o do_rect.o do_hvdlines.o do_orient.o\
		  do_polygon.o do_dbuf.o rand.o do_Triangles.o

SYS_LIBRARIES	= -lX11 -lm

PROGRAM = x11perf

all:: x11perf

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

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

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

install.man:: x11perf.man
	$(INSTALL) -c $(INSTMANFLAGS) x11perf.man $(MANDIR)/x11perf.1

depend:: $(DEPEND)

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

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

clean::
	$(RM) $(PROGRAM)

all:: x11perf_labels

x11perf_labels: do_tests.c
	./x11perf -labels > x11perf_labels

lint::
	$(LINT) -u $(SRCS)

clean::
	$(RM) $(PROGRAMS)

tar:	$(DEPEND)
	-rm -f x11perf.tar x11perf.tar.Z
	cp Makefile Makefile.bak
	$(DEPEND) -s "# DO NOT DELETE" -- -- $(SRCS)
#	awk '/^# DO NOT DELETE/ {print; exit}; {print}' Makefile.bak >Makefile
	tar chf x11perf.tar Imakefile Makefile $(HEADERS) $(SRCS) \
		x11perf_labels x11perf.man *.sh RCS \
		link.com link.options make.com;
	mv Makefile.bak Makefile
	compress x11perf.tar

depend:: $(DEPEND)

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

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

###########################################################################
# Imake.tmpl common rules for all Makefiles - do not edit

emptyrule::

clean::
	$(RM_CMD) \#*

Makefile:: $(IMAKE)

Makefile:: Imakefile \
	$(IRULESRC)/Imake.tmpl \
	$(IRULESRC)/Imake.rules \
	$(IRULESRC)/site.def \
	$(IRULESRC)/$(MACROFILE)
	-@if [ -f Makefile ]; then \
		echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
		$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE_CMD) -DTOPDIR=$(TOP)

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

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

###########################################################################
# empty rules for directories that do not have SUBDIRS - do not edit

install::
	@echo "install done"

install.man::
	@echo "install.man done"

Makefiles::

###########################################################################
# dependencies generated by makedepend

# DO NOT DELETE

x11perf.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/X11/Xatom.h
x11perf.o: /usr/include/X11/Xos.h /usr/include/sys/types.h
x11perf.o: /usr/include/strings.h /usr/include/sys/file.h
x11perf.o: /usr/include/sys/time.h x11perf.h /usr/include/X11/Xlib.h
x11perf.o: /usr/include/X11/X.h
bitmaps.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
bitmaps.o: /usr/include/X11/X.h bitmaps.h
do_tests.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_tests.o: /usr/include/X11/X.h
do_simple.o: /usr/include/X11/Xatom.h x11perf.h /usr/include/X11/Xlib.h
do_simple.o: /usr/include/sys/types.h /usr/include/X11/X.h
do_rects.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_rects.o: /usr/include/X11/X.h bitmaps.h
do_valgc.o: /usr/include/X11/Xatom.h x11perf.h /usr/include/X11/Xlib.h
do_valgc.o: /usr/include/sys/types.h /usr/include/X11/X.h
do_lines.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_lines.o: /usr/include/X11/X.h
do_segs.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_segs.o: /usr/include/X11/X.h
do_dots.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_dots.o: /usr/include/X11/X.h
do_windows.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_windows.o: /usr/include/X11/X.h
do_movewin.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_movewin.o: /usr/include/X11/X.h
do_text.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_text.o: /usr/include/X11/X.h
do_copyarea.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_copyarea.o: /usr/include/X11/X.h
do_arcs.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_arcs.o: /usr/include/X11/X.h
do_triangles.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_triangles.o: /usr/include/X11/X.h bitmaps.h
do_complex.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_complex.o: /usr/include/X11/X.h
do_traps.o: x11perf.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
do_traps.o: /usr/include/X11/X.h bitmaps.h
