# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.37 88/10/08 20:08:30 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

###########################################################################
# 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 Sun.macros to change

# platform:  $XConsortium: Sun.macros,v 1.52 88/10/23 11:00:55 jim Exp $
# operating system:   SunOS 3.4

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 =

###########################################################################
# 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
      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
      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 = Sun.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

BOOTSTRAPCFLAGS =
           SRCS = WaitFor.c access.c connection.c fonttype.c io.c oscolor.c \
                  osfonts.c osinit.c utils.c
           OBJS = WaitFor.o access.o connection.o fonttype.o io.o oscolor.o \
                  osfonts.o osinit.o utils.o
   FONT_DEFINES = -DFONT_SNF -DFONT_BDF -DCOMPRESSED_FONTS -DUNCOMPRESSFILT=\"/usr/ucb/uncompress\" -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\" -DSHELLPATH=\"/bin/sh\" -DZBDFTOSNFFILT=\"/usr/ucb/uncompress" | $(BINDIR)/bdftosnf $(FCFLAGS)\""
    STD_DEFINES =
    CDEBUGFLAGS = -O

     OS_DEFINES =

        DEFINES =  -DTCPCONN -DUNIXCONN $(OS_DEFINES)
       INCLUDES = -I.  -I../../include -I$(INCLUDESRC)
    EXT_DEFINES =
       LINTLIBS = ../../dix/llib-ldix.ln

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

all:: libos.a

libos.a: $(OBJS)
	$(RM) $@
	$(AR) $@ $(OBJS)
	$(RANLIB) $@

lintlib:: llib-los.ln

llib-los.ln: $(SRCS)
	$(RM) $@
	$(LINT) $(LINTLIBFLAG)os $(LINTFLAGS) $(SRCS)

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

# these depend on  -DTCPCONN -DUNIXCONN
access.o: $(ICONFIGFILES)
connection.o: $(ICONFIGFILES)

osinit.o:  $(ICONFIGFILES)
	$(RM) $@
	$(CC) -c $(CFLAGS)  -DADMPATH=\"$(ADMDIR)/X\%smsgs\" $*.c

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

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

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

WaitFor.o: ../../.././X11/Xos.h /usr/include/sys/types.h
WaitFor.o: /usr/include/sys/sysmacros.h /usr/include/strings.h
WaitFor.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h
WaitFor.o: /usr/include/sys/time.h /usr/include/sys/time.h
WaitFor.o: /usr/include/errno.h /usr/include/sys/errno.h /usr/include/stdio.h
WaitFor.o: ../../.././X11/X.h ../../include/misc.h ../../include/os.h
WaitFor.o: /usr/include/sys/param.h /usr/include/machine/param.h
WaitFor.o: /usr/include/sys/signal.h osdep.h ../../include/dixstruct.h
WaitFor.o: ../../include/dix.h ../../include/gc.h ../../include/window.h
WaitFor.o: ../../include/resource.h ../../include/cursor.h
WaitFor.o: ../../include/pixmap.h
access.o: ../../.././X11/X.h ../../.././X11/Xproto.h ../../.././X11/Xmd.h
access.o: ../../.././X11/Xprotostr.h ../../include/misc.h ../../include/os.h
access.o: ../../include/site.h /usr/include/errno.h /usr/include/sys/errno.h
access.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
access.o: /usr/include/sys/socket.h /usr/include/sys/ioctl.h
access.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
access.o: /usr/include/net/if.h /usr/include/netdb.h
access.o: /usr/include/netinet/in.h /usr/include/stdio.h
access.o: ../../include/dixstruct.h ../../include/dix.h ../../include/gc.h
access.o: ../../include/window.h ../../include/resource.h
access.o: ../../include/cursor.h ../../include/pixmap.h osdep.h
connection.o: /usr/include/dbm.h ../../.././X11/X.h ../../.././X11/Xproto.h
connection.o: ../../.././X11/Xmd.h ../../.././X11/Xprotostr.h
connection.o: /usr/include/sys/param.h /usr/include/machine/param.h
connection.o: /usr/include/sys/signal.h /usr/include/sys/types.h
connection.o: /usr/include/sys/sysmacros.h /usr/include/errno.h
connection.o: /usr/include/sys/errno.h ../../.././X11/Xos.h
connection.o: /usr/include/strings.h /usr/include/sys/file.h
connection.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
connection.o: /usr/include/sys/time.h /usr/include/sys/socket.h
connection.o: /usr/include/fcntl.h /usr/include/setjmp.h
connection.o: /usr/include/netinet/in.h /usr/include/netinet/tcp.h
connection.o: /usr/include/sys/un.h /usr/include/sys/stat.h
connection.o: /usr/include/stdio.h /usr/include/sys/uio.h
connection.o: ../../include/osstruct.h ../../include/os.h
connection.o: ../../include/misc.h osdep.h ../../include/opaque.h
connection.o: ../../include/dixstruct.h ../../include/dix.h
connection.o: ../../include/gc.h ../../include/window.h
connection.o: ../../include/resource.h ../../include/cursor.h
connection.o: ../../include/pixmap.h
fonttype.o: ../../include/dixfont.h fonttype.h ../../include/font.h
fonttype.o: ../../include/servermd.h ../../include/misc.h ../../include/os.h
io.o: /usr/include/stdio.h ../../.././X11/Xos.h /usr/include/sys/types.h
io.o: /usr/include/sys/sysmacros.h /usr/include/strings.h
io.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h
io.o: /usr/include/sys/time.h /usr/include/sys/time.h ../../.././X11/Xmd.h
io.o: /usr/include/errno.h /usr/include/sys/errno.h /usr/include/sys/param.h
io.o: /usr/include/machine/param.h /usr/include/sys/signal.h
io.o: /usr/include/sys/uio.h ../../.././X11/X.h ../../.././X11/Xproto.h
io.o: ../../.././X11/Xprotostr.h ../../include/os.h ../../include/misc.h
io.o: osdep.h ../../include/opaque.h ../../include/dixstruct.h
io.o: ../../include/dix.h ../../include/gc.h ../../include/window.h
io.o: ../../include/resource.h ../../include/cursor.h ../../include/pixmap.h
oscolor.o: /usr/include/dbm.h ../../include/rgb.h ../../include/os.h
oscolor.o: ../../include/misc.h
osfonts.o: /usr/include/stdio.h ../../.././X11/Xos.h /usr/include/sys/types.h
osfonts.o: /usr/include/sys/sysmacros.h /usr/include/strings.h
osfonts.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h
osfonts.o: /usr/include/sys/time.h /usr/include/sys/time.h
osfonts.o: /usr/include/sys/dir.h /usr/include/sys/param.h
osfonts.o: /usr/include/machine/param.h /usr/include/sys/signal.h
osfonts.o: /usr/include/sys/stat.h ../../.././X11/X.h ../../.././X11/Xmd.h
osfonts.o: ../../.././X11/Xproto.h ../../.././X11/Xprotostr.h
osfonts.o: ../../include/dixfontstr.h ../../include/dixfont.h
osfonts.o: ../../include/font.h ../../include/servermd.h ../../include/misc.h
osfonts.o: ../../include/os.h ../../include/fontstruct.h
osfonts.o: ../../include/osstruct.h ../../include/opaque.h fonttype.h
osfonts.o: ../../include/fontdir.h
osinit.o: ../../include/os.h ../../include/misc.h ../../include/opaque.h
osinit.o: /usr/include/dbm.h /usr/include/stdio.h /usr/include/sys/types.h
osinit.o: /usr/include/sys/sysmacros.h /usr/include/sys/param.h
osinit.o: /usr/include/machine/param.h /usr/include/sys/signal.h
utils.o: /usr/include/stdio.h ../../.././X11/Xos.h /usr/include/sys/types.h
utils.o: /usr/include/sys/sysmacros.h /usr/include/strings.h
utils.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h
utils.o: /usr/include/sys/time.h /usr/include/sys/time.h ../../include/misc.h
utils.o: ../../include/os.h ../../.././X11/X.h ../../include/input.h
utils.o: ../../include/opaque.h
