# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.74 92/12/02 21:32:49 rws Exp $

# -------------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.160 92/11/18 14:11:25 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.2 91/07/30 20:26:44 rws Exp $

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

# platform:  $XConsortium: ultrix.cf,v 1.49 92/05/31 14:33:36 rws Exp $

# operating system:             Ultrix-32 4.2

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

# site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

            SHELL = 	/bin/sh

              TOP = ../.
      CURRENT_DIR = ./rgb

               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
              LEX = lex
             YACC = yacc
             LINT = lint
      LINTLIBFLAG = -o
         LINTOPTS = -ax
               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_LDOPTIONS =
  EXTRA_LIBRARIES =
             TAGS = ctags

    PROTO_DEFINES = -DFUNCPROTO

     INSTPGMFLAGS =

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

     TOP_INCLUDES = -I$(TOP)

      CDEBUGFLAGS = -g
        CCOPTIONS =

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

           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

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

   LDCOMBINEFLAGS = -X -r
      DEPENDFLAGS =

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

    IMAKE_DEFINES =

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

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

# -------------------------------------------------------------------------
# X Window System Build Parameters
# $XConsortium: Project.tmpl,v 1.152 92/08/10 17:47:45 eswu Exp $

# -------------------------------------------------------------------------
# X Window System make variables; this need to be coordinated with rules

          PATHSEP = /
        USRLIBDIR = /usr/lib
         SHLIBDIR = /usr/lib
           BINDIR = /usr/bin/X11
          INCROOT = /usr/include
     BUILDINCROOT = $(TOP)
      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
        MANSUFFIX = 1
     LIBMANSUFFIX = 3
           MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
        LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
           NLSDIR = $(LIBDIR)/nls
        PEXAPIDIR = $(LIBDIR)/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

            IMAKE = $(IMAKESRC)/imake
           DEPEND = $(DEPENDSRC)/makedepend
              RGB = $(RGBSRC)/rgb

            FONTC = $(BDFTOPCFSRC)/bdftopcf

        MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
        MKDIRHIER = 	/bin/sh $(SCRIPTSRC)/mkdirhier.sh

        CONFIGSRC = $(TOP)/config
       DOCUTILSRC = $(TOP)/doc/util
        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

      BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf

     MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
         FSLIBSRC = $(FONTSRC)/lib/fs
    FONTSERVERSRC = $(FONTSRC)/server
     EXTENSIONSRC = $(TOP)/extensions
         XILIBSRC = $(EXTENSIONSRC)/lib/xinput
      XTESTLIBSRC = $(EXTENSIONSRC)/lib/xtest
        PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
      PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX

  DEPEXTENSIONLIB =  $(EXTENSIONSRC)/lib/libXext.a
     EXTENSIONLIB = 			   $(DEPEXTENSIONLIB)

          DEPXLIB = $(DEPEXTENSIONLIB)  $(XLIBSRC)/libX11.a
         XLIBONLY = 			  $(XLIBSRC)/libX11.a
             XLIB = $(EXTENSIONLIB) $(XLIBONLY) -L/mit/krb5/@sys/lib -L/mit/isode/isode-7.0/@sys/lib -lkrb5 -lcrypto -lisode -lcom_err -ldbm

      DEPXAUTHLIB =  $(XAUTHSRC)/libXau.a
         XAUTHLIB = 			  $(DEPXAUTHLIB)
      DEPXDMCPLIB =  $(XDMCPLIBSRC)/libXdmcp.a
         XDMCPLIB = 			  $(DEPXDMCPLIB)

        DEPXMULIB =  $(XMUSRC)/libXmu.a
           XMULIB = 			  $(DEPXMULIB)

       DEPOLDXLIB =  $(OLDXLIBSRC)/liboldX.a
          OLDXLIB = 			  $(DEPOLDXLIB)

      DEPXTOOLLIB =  $(TOOLKITSRC)/libXt.a
         XTOOLLIB = 			  $(DEPXTOOLLIB)

        DEPXAWLIB =  $(AWIDGETSRC)/libXaw.a
           XAWLIB = 			  $(DEPXAWLIB)

        DEPXILIB =  $(XILIBSRC)/libXi.a
           XILIB = 			  $(DEPXILIB)

     DEPXTESTLIB =  $(XTESTLIBSRC)/libXtst.a
        XTESTLIB = 			  $(DEPXTESTLIB)

       DEPPEXLIB =  $(PEXLIBSRC)/libPEX5.a
          PEXLIB = 			  $(DEPPEXLIB)

        DEPPHIGSLIB =  $(PHIGSLIBSRC)/libphigs.a
           PHIGSLIB = 			  $(DEPPHIGSLIB)

       DEPXBSDLIB =  $(LIBSRC)/Berk/libXbsd.a
          XBSDLIB = 			  $(DEPXBSDLIB)

 LINTEXTENSIONLIB =  $(EXTENSIONSRC)/lib/llib-lXext.ln
         LINTXLIB =  $(XLIBSRC)/llib-lX11.ln
          LINTXMU =  $(XMUSRC)/llib-lXmu.ln
        LINTXTOOL =  $(TOOLKITSRC)/llib-lXt.ln
          LINTXAW =  $(AWIDGETSRC)/llib-lXaw.ln
           LINTXI =  $(XILIBSRC)/llib-lXi.ln
          LINTPEX =  $(PEXLIBSRC)/llib-lPEX5.ln
        LINTPHIGS =  $(PHIGSLIBSRC)/llib-lphigs.ln

          DEPLIBS = $(LOCAL_LIBRARIES)

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

# -------------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.129 92/05/29 17:01:19 rws Exp $

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

# $XConsortium: Imakefile,v 1.23 91/09/09 16:09:09 rws Exp $
        RGB_DB = $(LIBDIR)/rgb
   SITE_RGB_DB = -DRGB_DB=\"$(RGB_DB)\"
      DEPLIBS =
      DEFINES = -DNDBM $(SITE_RGB_DB)
     INCLUDES = -I$(SERVERSRC)/include
 INSTALLFLAGS = $(INSTLIBFLAGS)
        SRCS1 = rgb.c
        OBJS1 = rgb.o
        SRCS2 = showrgb.c
        OBJS2 = showrgb.o
         SRCS = $(SRCS1) $(SRCS2)
         OBJS = $(OBJS1) $(OBJS2)
     PROGRAMS = rgb showrgb
    DATAFILES = rgb.pag rgb.dir
      DATADEP = rgb.dir

       DBMLIB = -ldbm

all:: $(PROGRAMS) $(DATADEP)

rgb: $(OBJS1)
	 $(RM) $@
	$(CC) -o $@ $(OBJS1) $(LDOPTIONS)  $(LDLIBS) $(DBMLIB) $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) rgb

showrgb: $(OBJS2)
	 $(RM) $@
	$(CC) -o $@ $(OBJS2) $(LDOPTIONS)  $(LDLIBS) $(DBMLIB) $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) showrgb

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

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

install:: $(DATAFILES) rgb.txt
	 @if [ -d $(DESTDIR)$(LIBDIR) ]; then set +x; \
		else (set -x; $(MKDIRHIER) $(DESTDIR)$(LIBDIR)); fi
	@case '${MFLAGS}' in *[i]*) set +e;; esac; \
	for i in $(DATAFILES) rgb.txt; do \
		(set -x; $(INSTALL) -c $(INSTALLFLAGS) $$i $(DESTDIR)$(LIBDIR)); \
	done

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

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

$(DATADEP):  rgb rgb.txt
	$(RM) $(DATAFILES)
	./rgb rgb < rgb.txt

clean::
	$(RM) $(DATAFILES)

depend:: $(DEPEND)

$(DEPEND):
	@echo "checking $@ over in $(DEPENDSRC) first..."; \
	cd $(DEPENDSRC); $(MAKE); \
	echo "okay, continuing in $(CURRENT_DIR)"

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

# -------------------------------------------------------------------------
# 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:: $(SRCS)
	# load $(ALLDEFINES) $(SRCS)

osaber:: $(OBJS)
	# 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

rgb.o: /usr/include/ndbm.h /usr/include/stdio.h /usr/include/ansi_compat.h
rgb.o: .././X11/Xos.h .././X11/Xosdefs.h /usr/include/sys/types.h
rgb.o: /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/file.h
rgb.o: /usr/include/unistd.h /usr/include/sys/time.h
rgb.o: .././server/include/rgb.h .././server/include/site.h
rgb.o: /usr/include/ctype.h /usr/include/errno.h
showrgb.o: /usr/include/ndbm.h /usr/include/stdio.h
showrgb.o: /usr/include/ansi_compat.h .././X11/Xos.h .././X11/Xosdefs.h
showrgb.o: /usr/include/sys/types.h /usr/include/string.h
showrgb.o: /usr/include/fcntl.h /usr/include/sys/file.h /usr/include/unistd.h
showrgb.o: /usr/include/sys/time.h .././server/include/rgb.h
showrgb.o: .././server/include/site.h .././X11/Xfuncs.h
