# 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.89 88/10/23 13:19:22 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 Rt.macros to change

# platform:  $XConsortium: Rt.macros,v 1.46 88/10/23 11:00:52 jim Exp $

# platform:  $XConsortium: IBM.macros,v 1.21 88/10/23 11:00:36 jim Exp $

             AS = as
            CPP = /lib/cpp
             LD = ld
           LINT = lint
           MAKE = make
        INSTALL = install
           TAGS = ctags
             RM = rm -f
             MV = mv
             LS = ls
             CP = cp
STD_CPP_DEFINES =
    STD_DEFINES =

BOOTSTRAPCFLAGS =
             CC = hc
 LDCOMBINEFLAGS = -X -r
             LN = ln -s
         RANLIB = ranlib
RANLIBINSTFLAGS = -t
             AR = ar cq
       LINTOPTS = -axz
    LINTLIBFLAG = -C

            PCC = pcc

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

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

###########################################################################
# 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/man
  MANSOURCEPATH = $(MANPATH)/man
         MANDIR = $(MANSOURCEPATH)n
      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 4755
        FCFLAGS = -t
    CDEBUGFLAGS = -O

        PATHSEP = /
         DEPEND = $(DEPENDSRC)/makedepend
          IMAKE = $(IMAKESRC)/imake
            RGB = $(RGBSRC)/rgb
             FC = $(BDFTOSNFSRC)/bdftosnf
      MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
         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
      SERVERSRC = $(TOP)/server
        UTILSRC = $(TOP)/util
     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 = Rt.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.67 88/10/23 18:19:30 jim Exp $

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

# $Header: /andrew/X11/R3src/Xbeta/server/ddx/ibm/ega/RCS/Imakefile,v 9.0 88/10/18 12:48:47 erik Exp $
# $Source: /andrew/X11/R3src/Xbeta/server/ddx/ibm/ega/RCS/Imakefile,v $
SRCS =		egaBitBlt.c	\
		egaCurs.c	\
		egaDebugJ.c	\
		egaGC.c		\
		egaGlyph.c	\
		egaImages.c	\
		egaIO.c		\
		egaLine.c	\
		egaOSD.c	\
		egaScrInfo.c	\
		egaScrInit.c	\
		egaSet.c	\
		egaSolid.c	\
                egaStipple.c

OTHER_SRC =	egaAddr.c	\
		egaVideo.h	\
		egaRegs.h

OBJS = 		egaBitBlt.o	\
		egaCurs.o	\
		egaDebugJ.o	\
		egaGC.o		\
		egaGlyph.o	\
		egaImages.o	\
		egaIO.o		\
		egaLine.o	\
		egaOSD.o	\
		egaScrInfo.o	\
		egaScrInit.o	\
		egaSet.o	\
		egaSolid.o	\
		egaStipple.o

STD_DEFINES = 	-DUNIXCPP -DNOSTDHDRS -DHCVERSION=21004 -DBSDrt -DRTIO

CDEBUGFLAGS =  -O
INCLUDES = -I. -I../BSDrt -I../ppc -I../../../include -I$(INCLUDESRC) -I../common -I../../mfb

.c.o:
	$(RM) $@
	$(CC) -c $(CFLAGS) $*.c

all:: ega.o

ega.o: $(OBJS)
	$(RM) $@
	$(LD) $(LDCOMBINEFLAGS) $(OBJS) -o $@

depend:: $(DEPEND)

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

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

lintlib:: llib-lega.ln

llib-lega.ln: $(SRCS)
	$(RM) $@
	$(LINT) $(LINTLIBFLAG)ega $(LINTFLAGS) $(SRCS)

lint:
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
lint1:
	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)

###########################################################################
# 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

egaBitBlt.o: ../../../.././X11/X.h egaVideo.h ../common/ibmIOArch.h egaAddr.c
egaCurs.o: ../../../.././X11/X.h ../../../.././X11/Xmd.h
egaCurs.o: ../../../include/miscstruct.h ../../../include/misc.h
egaCurs.o: ../../../include/os.h ../../../include/scrnintstr.h
egaCurs.o: ../../../include/screenint.h ../../../include/region.h
egaCurs.o: ../../../include/pixmap.h ../../../include/gc.h
egaCurs.o: ../../../include/colormap.h ../../../include/pixmapstr.h
egaCurs.o: ../../../include/cursorstr.h ../../../include/cursor.h
egaCurs.o: ../common/ibmScreen.h ../common/ibmTrace.h egaVideo.h egaProcs.h
egaCurs.o: ../common/ibmIOArch.h
egaGC.o: ../../../.././X11/X.h ../../../.././X11/Xproto.h
egaGC.o: ../../../.././X11/Xmd.h ../../../.././X11/Xprotostr.h
egaGC.o: ../../../include/misc.h ../../../include/os.h
egaGC.o: ../../../include/gcstruct.h ../../../include/gc.h
egaGC.o: ../../../include/miscstruct.h ../../../include/region.h
egaGC.o: ../../../include/pixmap.h ../../../include/screenint.h
egaGC.o: ../../../include/dixfont.h ../../../include/windowstr.h
egaGC.o: ../../../include/window.h ../../../include/pixmapstr.h
egaGC.o: ../../../include/cursor.h ../../../include/property.h
egaGC.o: ../../../include/resource.h ../../../include/dix.h
egaGC.o: ../../../include/scrnintstr.h ../../../include/colormap.h
egaGC.o: ../../../include/screen.h ../../../include/font.h
egaGC.o: ../../../include/servermd.h ../../../include/mistruct.h
egaGC.o: ../../../include/mi.h ../../mfb/mfb.h ../../../include/mibstore.h
egaGC.o: ../ppc/ppc.h ../ppc/ppcProcs.h egaProcs.h
egaGlyph.o: ../../../.././X11/X.h ../../../include/misc.h
egaGlyph.o: ../../../include/os.h egaProcs.h egaVideo.h ../common/ibmIOArch.h
egaImages.o: ../../../.././X11/X.h egaVideo.h ../common/ibmIOArch.h
egaIO.o: ../../../.././X11/X.h ../../../.././X11/Xproto.h
egaIO.o: ../../../.././X11/Xmd.h ../../../.././X11/Xprotostr.h
egaIO.o: ../../../include/gcstruct.h ../../../include/gc.h
egaIO.o: ../../../include/miscstruct.h ../../../include/misc.h
egaIO.o: ../../../include/os.h ../../../include/region.h
egaIO.o: ../../../include/pixmap.h ../../../include/screenint.h
egaIO.o: ../../../include/dixfont.h ../../../include/scrnintstr.h
egaIO.o: ../../../include/colormap.h ../../../include/screen.h
egaIO.o: ../../../include/colormapst.h ../../../include/cursorstr.h
egaIO.o: ../../../include/cursor.h ../../../include/windowstr.h
egaIO.o: ../../../include/window.h ../../../include/pixmapstr.h
egaIO.o: ../../../include/property.h ../../../include/resource.h
egaIO.o: ../../../include/dix.h ../../../include/font.h
egaIO.o: ../../../include/servermd.h ../BSDrt/OScursor.h ../ppc/ppc.h
egaIO.o: ../ppc/ppcProcs.h egaVideo.h egaProcs.h ../common/ibmScreen.h
egaIO.o: ../common/ibmTrace.h
egaLine.o: ../../../.././X11/X.h egaVideo.h ../common/ibmIOArch.h
egaOSD.o: /usr/include/fcntl.h /usr/include/sys/ioctl.h
egaOSD.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
egaOSD.o: ../../../.././X11/X.h ../../../include/miscstruct.h
egaOSD.o: ../../../include/misc.h ../../../include/os.h
egaOSD.o: ../../../include/scrnintstr.h ../../../include/screenint.h
egaOSD.o: ../../../include/region.h ../../../include/pixmap.h
egaOSD.o: ../../../include/gc.h ../../../include/colormap.h
egaOSD.o: ../../../include/cursorstr.h ../../../include/cursor.h
egaOSD.o: ../BSDrt/OScompiler.h ../common/ibmScreen.h ../common/ibmTrace.h
egaOSD.o: egaVideo.h egaReg.h
egaScrInfo.o: ../../../.././X11/X.h ../../../include/misc.h
egaScrInfo.o: ../../../include/os.h ../../../include/miscstruct.h
egaScrInfo.o: ../../../include/scrnintstr.h ../../../include/screenint.h
egaScrInfo.o: ../../../include/region.h ../../../include/pixmap.h
egaScrInfo.o: ../../../include/gc.h ../../../include/colormap.h
egaScrInfo.o: ../../../include/cursorstr.h ../../../include/cursor.h
egaScrInfo.o: ../common/ibmScreen.h
egaScrInit.o: ../../../.././X11/X.h ../../../.././X11/Xproto.h
egaScrInit.o: ../../../.././X11/Xmd.h ../../../.././X11/Xprotostr.h
egaScrInit.o: ../../../include/resource.h ../../../include/misc.h
egaScrInit.o: ../../../include/os.h ../../../include/servermd.h
egaScrInit.o: ../../../include/scrnintstr.h ../../../include/screenint.h
egaScrInit.o: ../../../include/region.h ../../../include/pixmap.h
egaScrInit.o: ../../../include/gc.h ../../../include/colormap.h
egaScrInit.o: ../../../include/screen.h ../../../include/windowstr.h
egaScrInit.o: ../../../include/window.h ../../../include/pixmapstr.h
egaScrInit.o: ../../../include/cursor.h ../../../include/property.h
egaScrInit.o: ../../../include/dix.h ../../../include/miscstruct.h
egaScrInit.o: ../../../include/font.h ../../../include/mistruct.h
egaScrInit.o: ../../../include/mi.h ../../mfb/mfb.h
egaScrInit.o: ../../../include/mibstore.h ../ppc/ppc.h
egaScrInit.o: ../../../include/gcstruct.h ../../../include/dixfont.h
egaScrInit.o: ../ppc/ppcProcs.h egaProcs.h egaVideo.h ../common/ibmTrace.h
egaSet.o: egaReg.h ../common/ibmIOArch.h
egaSolid.o: ../../../.././X11/X.h egaVideo.h ../common/ibmIOArch.h
egaStipple.o: ../../../.././X11/X.h ../../../include/pixmapstr.h
egaStipple.o: ../../../include/pixmap.h ../../../include/screenint.h
egaStipple.o: ../../../include/misc.h ../../../include/os.h egaVideo.h
egaStipple.o: ../common/ibmIOArch.h
