# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws 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.
#

# $NCDId: @(#)Imake.tmpl,v 1.18 1991/11/22 13:44:49 mkm Exp $

# -------------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
#
# Platform-specific parameters may be set in the appropriate <vendor>.cf
# configuration files.  Site-specific parameters should be set in the file
# site.def.  Full rebuilds are recommended if any parameters are changed.
#
# If your C preprocessor does not define any unique symbols, you will need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make World" the first time).
#

# -------------------------------------------------------------------------
# site-specific configuration parameters that need to come before
# the platform-specific parameters - edit site.def to change

# site:  $XConsortium: site.def,v 1.25 91/02/13 11:59:58 rws Exp $

# $NCDId: @(#)site.def,v 1.10 1991/10/31 11:52:52 mkm Exp $

# $NCDId: @(#)Ncd.def,v 1.8 1991/10/23 15:02:04 mkm Exp $

     NCDINCROOT = $(TOP)/usr.include
      NCDINCTOP = ..
     NCDTOOLBIN = /ncdtools/bin
           MSGC = $(NCDTOOLBIN)/msg

DVLPDISTROOT = $(TOP)/dvlpdist

# -------------------------------------------------------------------------
# platform-specific configuration parameters - edit sun.cf to change

# platform:  $XConsortium: sun.cf,v 1.80 92/12/17 19:48:17 rws Exp $

# operating system:  SunOS 4.1.2

# $XConsortium: sunLib.rules,v 1.6 91/03/24 17:55:58 rws Exp $

# -------------------------------------------------------------------------
# site-specific configuration parameters that go after
# the platform-specific parameters - edit site.def to change

# site:  $XConsortium: site.def,v 1.25 91/02/13 11:59:58 rws Exp $

# $NCDId: @(#)site.def,v 1.10 1991/10/31 11:52:52 mkm Exp $

# $NCDId: @(#)Ncd.def,v 1.8 1991/10/23 15:02:04 mkm Exp $

     NCDINCROOT = $(TOP)/usr.include
      NCDINCTOP = ..
     NCDTOOLBIN = /ncdtools/bin
           MSGC = $(NCDTOOLBIN)/msg

DVLPDISTROOT = $(TOP)/dvlpdist

            SHELL = /bin/sh

              TOP = ../../.
      CURRENT_DIR = ./Xremote/xinitremote

               AR = ar clq
  BOOTSTRAPCFLAGS =
               CC = cc
               AS = as

         COMPRESS = compress
              CPP = /lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
          INSTALL = install
               LD = ld
             LINT = lint
      LINTLIBFLAG = -C
         LINTOPTS = -axz
               LN = ln -s
             MAKE = make
               MV = mv
               CP = cp

           RANLIB = ranlib
  RANLIBINSTFLAGS =

               RM = rm -f
            TROFF = psroff
         MSMACROS = -ms
              TBL = tbl
              EQN = eqn
     STD_INCLUDES =
  STD_CPP_DEFINES =
      STD_DEFINES =
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
             TAGS = ctags

    SHAREDCODEDEF = -DSHAREDCODE
         SHLIBDEF = -DSUNSHLIB

    PROTO_DEFINES =

     INSTPGMFLAGS =

     INSTBINFLAGS = -m 0755
     INSTUIDFLAGS = -m 4755
     INSTLIBFLAGS = -m 0644
     INSTINCFLAGS = -m 0444
     INSTMANFLAGS = -m 0444
     INSTDATFLAGS = -m 0444
    INSTKMEMFLAGS = -g kmem -m 2755

      INSTDATPERM = 0444

      CDEBUGFLAGS = -O
        CCOPTIONS = -pipe

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES) $(DASHGFLAG)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)

           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS)

   LDCOMBINEFLAGS = -X -r
      DEPENDFLAGS =

        MACROFILE = sun.cf
           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGSRC)
        IMAKE_CMD = $(NEWTOP)$(IMAKE) -DUseInstalled -I$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
			$(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)

# $NCDId: @(#)Project.tmpl,v 1.16 1991/11/16 15:12:51 mkm Exp $
# -------------------------------------------------------------------------
# X Window System Build Parameters
# $XConsortium: Project.tmpl,v 1.104 91/03/25 10:48:17 rws Exp $

# -------------------------------------------------------------------------
# X Window System make variables; this need to be coordinated with rules
# $XConsortium: Project.tmpl,v 1.104 91/03/25 10:48:17 rws Exp $

          PATHSEP = /
        USRLIBDIR = /usr/lib
           BINDIR = /usr/bin/X11
          INCROOT = /usr/include
     BUILDINCROOT = $(TOP)/usr.include
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ../..
           INCDIR = $(INCROOT)/X11
           ADMDIR = /usr/adm
           LIBDIR = $(USRLIBDIR)/X11
        CONFIGDIR = $(LIBDIR)/config
       LINTLIBDIR = $(USRLIBDIR)/lint

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
          MANPATH = /usr/man
    MANSOURCEPATH = $(MANPATH)/man
           MANDIR = $(MANSOURCEPATH)n
        LIBMANDIR = $(MANSOURCEPATH)3
           NLSDIR = $(LIBDIR)/nls
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

            IMAKE = $(IMAKESRC)/imake
           DEPEND = makedepend

            FONTC = $(BDFTOSNFSRC)/bdftosnf

              RGB = rgb
        MKFONTDIR = mkfontdir
        MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier

        CONFIGSRC = $(TOP)/config
        CLIENTSRC = $(TOP)/clients
          DEMOSRC = $(TOP)/demos
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/fonts

       INCLUDESRC = $(TOP)/X11

        SERVERSRC = $(TOP)/server
          UTILSRC = $(TOP)/util
        SCRIPTSRC = $(UTILSRC)/scripts
       EXAMPLESRC = $(TOP)/examples
       CONTRIBSRC = $(TOP)/../contrib
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/rgb
        DEPENDSRC = $(UTILSRC)/makedepend
         IMAKESRC = $(CONFIGSRC)
         XAUTHSRC = $(LIBSRC)/Xau
          XLIBSRC = $(LIBSRC)/X
           XMUSRC = $(LIBSRC)/Xmu
       TOOLKITSRC = $(LIBSRC)/Xt
       AWIDGETSRC = $(LIBSRC)/Xaw
       OLDXLIBSRC = $(LIBSRC)/oldX
      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
     MKFONTDIRSRC = $(FONTSRC)/mkfontdir
      BDFTOSNFSRC = $(FONTSRC)/tools/bdftosnf
      BDFTOPCFSRC = $(FONTSRC)/tools/bdftopcf
     MKFONTDIRSRC = $(FONTSRC)/tools/mkfontdir
         FSLIBSRC = $(FONTSRC)/lib/fs
    FONTSERVERSRC = $(FONTSRC)/tools/fontserver
     EXTENSIONSRC = $(TOP)/extensions
         XILIBSRC = $(EXTENSIONSRC)/lib/xinput
      PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX

# $XConsortium: sunLib.tmpl,v 1.11 91/07/31 11:32:08 rws Exp $

SHLIBLDFLAGS = -assert pure-text
PICFLAGS = -pic

          DEPXLIB = $(DEPEXTENSIONLIB)
             XLIB = $(EXTENSIONLIB) -lX11

        DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
           XMULIB = -lXmu

       DEPOLDXLIB =
          OLDXLIB = -loldX

      DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
         XTOOLLIB = -lXt

        DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
           XAWLIB = -lXaw

        SOXLIBREV = 4.10
          SOXTREV = 4.10
         SOXAWREV = 5.0
        SOOLDXREV = 4.10
         SOXMUREV = 4.10
        SOXEXTREV = 4.10

  DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
     EXTENSIONLIB =  -lXext

      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
         XAUTHLIB =  -lXau
      DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
         XDMCPLIB =  -lXdmcp

        DEPXILIB = $(XILIBDIR)/libXi.a
           XILIB =  -lXi

        DEPPHIGSLIB = $(PHIGSLIBDIR)/libphigs.a
           PHIGSLIB =  -lphigs

 LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
         LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
          LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
        LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
          LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
        LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln

          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)

         DEPLIBS1 = $(DEPLIBS)
         DEPLIBS2 = $(DEPLIBS)
         DEPLIBS3 = $(DEPLIBS)

           NCDV = NCDMajorVersion NCDMinorVersion NCDRelease

     NCDVERSION = 2.4.8

       DEPMLLIB = $(TOP)/lib/ml/libml.a
          MLLIB = $(DEPMLLIB)
     NCDINCROOT = $(TOP)/usr.include
      NCDINCTOP = ..
   DEPNCDEXTLIB = $(TOP)/extensions/lib/libXext.a
      NCDEXTLIB = $(DEPNCDEXTLIB)
  EXTRA_DEFINES = -DSHAPE -DNCDHOST

  SYS_LIBRARIES = -lm
 EXTRA_INCLUDES = -I$(NCDINCROOT)
  NCDVERSIONSRC = ncdversion.c
  NCDVERSIONOBJ = ncdversion.o
 NCDLIBWRAP0SRC =
 NCDLIBWRAP0OBJ =
 NCDLIBWRAPZSRC =
 NCDLIBWRAPZOBJ =

# $NCDId: @(#)Imake.rules,v 1.9 1991/11/22 13:44:53 mkm Exp $
# -------------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.102 91/03/26 14:28:35 rws Exp $

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

#ident "$NCDId: @(#)Imakefile,v 14.5 1991/04/03 13:02:23 jim Exp $"

      DEPLIBS = $(DEPXLIB)
LOCAL_LIBRARIES = $(XLIB)
         SRCS = xinitremote.c $(NCDVERSIONSRC)
         OBJS = xinitremote.o $(NCDVERSIONOBJ)
      DEFINES = -DTCPCONN -DBINDIR=\"$(BINDIR)\"

all::

$(NCDVERSIONSRC):
	$(RM) $@
	echo '#ifndef SABER' >$@
	echo 'static char *copyright = "@(#)Copyright 1993 Network Computing Devices, Inc.  All rights reserved.";' >> $@
	echo 'char *ncdversion = "@(#)NCDware version' $(NCDVERSION) xinitremote '";' >>$@
	echo '#endif' >>$@

depend:: $(NCDVERSIONSRC)

clean::
	$(RM) $(NCDVERSIONSRC)

 PROGRAM = xinitremote

all:: xinitremote

xinitremote: $(OBJS) $(DEPLIBS)
	$(RM) $@
	$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)

saber_xinitremote:: $(SRCS)
	# load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

osaber_xinitremote:: $(OBJS)
	# load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

install:: xinitremote
	@if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
	$(INSTALL) -c $(INSTPGMFLAGS)   xinitremote $(DESTDIR)$(BINDIR)

install.man:: xinitremote.man
	@if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
	$(INSTALL) -c $(INSTMANFLAGS) xinitremote.man $(DESTDIR)$(MANDIR)/xinitremote.n

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

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

clean::
	$(RM) $(PROGRAM)

# -------------------------------------------------------------------------
# common rules for all Makefiles - do not edit

emptyrule::

clean::
	$(RM_CMD) "#"*

Makefile:: $(IMAKE)

$(IMAKE):
	@(cd $(IMAKESRC); if [ -f Makefile ]; then \
	echo "checking $@ in $(IMAKESRC) first..."; $(MAKE) all; else \
	echo "bootstrapping $@ from Makefile.ini in $(IMAKESRC) first..."; \
	$(MAKE) -f Makefile.ini BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS); fi; \
	echo "okay, continuing in $(CURRENT_DIR)")

Makefile::
	-@if [ -f Makefile ]; then set -x; \
	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)

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

saber:
	# load $(ALLDEFINES) $(SRCS)

osaber:
	# load $(ALLDEFINES) $(OBJS)

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

install::
	@echo "install in $(CURRENT_DIR) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

Makefiles::

includes::

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

# DO NOT DELETE

xinitremote.o: /usr/include/X11/Xos.h /usr/include/X11/Xosdefs.h
xinitremote.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
xinitremote.o: /usr/include/sys/sysmacros.h /usr/include/string.h
xinitremote.o: /usr/include/fcntl.h /usr/include/sys/fcntlcom.h
xinitremote.o: /usr/include/sys/stat.h /usr/include/unistd.h
xinitremote.o: /usr/include/sys/time.h /usr/include/sys/time.h
xinitremote.o: /usr/include/X11/Xlib.h /usr/include/X11/X.h
xinitremote.o: /usr/include/X11/Xfuncproto.h /usr/include/stddef.h
xinitremote.o: /usr/include/stdio.h /usr/include/ctype.h
xinitremote.o: /usr/include/signal.h /usr/include/sys/signal.h
xinitremote.o: /usr/include/vm/faultcode.h /usr/include/sys/resource.h
xinitremote.o: /usr/include/sys/wait.h /usr/include/errno.h
xinitremote.o: /usr/include/sys/errno.h /usr/include/setjmp.h
