# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.91 95/01/12 16:15:47 kaleb Exp $

# ----------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.224.1.1 95/06/19 17:51:01 gildea Exp $
#

.SUFFIXES: .i

# $XConsortium: Imake.cf,v 1.19 95/01/05 19:24:32 kaleb Exp $

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

# site:  $XConsortium: site.sample,v 1.9 94/04/08 17:02:06 rws Exp $

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

# platform:  $XConsortium: sun.cf,v 1.139 95/01/12 15:30:26 kaleb Exp $

# operating system:  SunOS 5.4

# $XConsortium: svr4.cf,v 1.14 95/06/30 18:21:43 kaleb Exp $

# $XConsortium: sv4Lib.rules,v 1.14 94/04/09 12:00:10 rws Exp $

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

# site:  $XConsortium: site.sample,v 1.9 94/04/08 17:02:06 rws Exp $

# -----------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.197.1.1 95/06/19 18:01:48 gildea Exp $

          PATHSEP = /
            SHELL = /bin/sh

              TOP = .
      CURRENT_DIR = .

            IMAKE = imake
           DEPEND = makedepend
        MKDIRHIER = mkdirhier
        CONFIGSRC = $(TOP)/config
         IMAKESRC = $(CONFIGSRC)/imake
        DEPENDSRC = $(CONFIGSRC)/makedepend
           IXXSRC = $(UNSUPPORTEDSRC)/programs/ixx
              IXX = ixx
         IXXFLAGS = -s BaseObject -m TypeObj -r RequestObj -p Xf
      IXXINCLUDES = -i '<X11/Fresco/enter-scope.h>'

          INCROOT = /inmos/X11R6/include
        USRLIBDIR = /inmos/X11R6/lib
         SHLIBDIR = /inmos/X11R6/lib
       LINTLIBDIR = $(USRLIBDIR)/lint
          MANPATH = /inmos/X11R6/man
    MANSOURCEPATH = $(MANPATH)/man
           MANDIR = $(MANSOURCEPATH)1
        LIBMANDIR = $(MANSOURCEPATH)3
       FILEMANDIR = $(MANSOURCEPATH)$(FILEMANSUFFIX)

               AR = /usr/ccs/bin/ar cq
  BOOTSTRAPCFLAGS = -DSVR4
               CC = TMPDIR=/tmp /inmos/gnu/sparc-sun-solaris2.4/bin/gcc -fpcc-struct-return
               AS = /usr/ccs/bin/as

         COMPRESS = compress
              CPP = /usr/ccs/lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = TMPDIR=/tmp /inmos/gnu/sparc-sun-solaris2.4/bin/gcc -fpcc-struct-return -E $(STD_CPP_DEFINES)
          INSTALL = bsdinst
     INSTALLFLAGS = -c
               LD = /usr/ccs/bin/ld
              LEX = /usr/ccs/bin/lex
           LEXLIB = -ll
             YACC = /usr/ccs/bin/yacc
           CCYACC = /usr/ccs/bin/yacc
             LINT = lint
      LINTLIBFLAG = -o
         LINTOPTS = -bh
               LN = ln -s
             MAKE = /usr/ccs/bin/make
               MV = mv
               CP = cp

               RM = rm -f
        MANSUFFIX = 1x
     LIBMANSUFFIX = 3x
    FILEMANSUFFIX = 4
            TROFF = psroff
         MSMACROS = -ms
              TBL = tbl
              EQN = eqn

            DVIPS = dvips
            LATEX = latex

     STD_INCLUDES =
  STD_CPP_DEFINES = -Dsun -DSVR4
      STD_DEFINES = -Dsun -DSVR4
 EXTRA_LOAD_FLAGS =
  EXTRA_LDOPTIONS = -L$(USRLIBDIR) -R$(USRLIBDIR)$${LD_RUN_PATH+\:$$LD_RUN_PATH}
  EXTRA_LIBRARIES = -lsocket -lnsl
             TAGS = ctags

    SHAREDCODEDEF =
         SHLIBDEF =

     SHLIBLDFLAGS = -G -z text

         PICFLAGS = -fpic

      CXXPICFLAGS = -K PIC

    PROTO_DEFINES =

     INSTPGMFLAGS =

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

      PROJECTROOT = /inmos/X11R6

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = -O2 -mv8
        CCOPTIONS =

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
         LDPRELIB = -L$(USRLIBDIR)
        LDPOSTLIB =
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)  $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)
     CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)

           LDLIBS = $(LDPOSTLIB) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

       CCENVSETUP = LD_RUN_PATH=$(USRLIBDIR)
           CCLINK = $(CCENVSETUP) $(CC)

      CXXENVSETUP = LD_RUN_PATH=$(USRLIBDIR)
          CXXLINK = $(CXXENVSETUP) $(CXX)

     LDSTRIPFLAGS = -x
   LDCOMBINEFLAGS = -r
      DEPENDFLAGS =

        MACROFILE = sun.cf
           RM_CMD = $(RM)

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGDIR)
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)

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

# ----------------------------------------------------------------------
# X Window System Build Parameters and Rules
# $XConsortium: Project.tmpl,v 1.249 95/05/23 21:36:40 matt Exp $

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

           BINDIR = /inmos/X11R6/bin
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
      BUILDLIBDIR = $(TOP)/usrlib
      BUILDLIBTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = /usr/adm
           LIBDIR = $(USRLIBDIR)/X11

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
           XSMDIR = $(LIBDIR)/xsm
           NLSDIR = $(LIBDIR)/nls
       XLOCALEDIR = $(LIBDIR)/locale
        PEXAPIDIR = $(LIBDIR)/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

              RGB = rgb
            FONTC = bdftopcf
        MKFONTDIR = mkfontdir

       DOCUTILSRC = $(TOP)/doc/util
       XDOCMACROS = $(DOCUTILSRC)/macros.t
       XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
       PROGRAMSRC = $(TOP)/programs
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/fonts
       INCLUDESRC = $(TOP)/X11
        SERVERSRC = $(TOP)/programs/Xserver
       CONTRIBSRC = $(TOP)/../contrib
   UNSUPPORTEDSRC = $(TOP)/unsupported
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/programs/rgb
      BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
     MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
    FONTSERVERSRC = $(PROGRAMSRC)/xfs
       FONTINCSRC = $(TOP)/include/fonts
        EXTINCSRC = $(TOP)/include/extensions
     TRANSCOMMSRC = $(LIBSRC)/xtrans
   TRANS_INCLUDES = -I$(TRANSCOMMSRC)

# $XConsortium: sunLib.tmpl,v 1.38 95/07/06 14:06:11 kaleb Exp $

# $XConsortium: sv4Lib.tmpl,v 1.20 95/07/06 14:06:11 kaleb Exp $

XMULIBONLY = -lXmu

          XLIBSRC = $(LIBSRC)/X11

SOXLIBREV = 6.0
DEPXONLYLIB =
XONLYLIB =  -lX11

LINTXONLY = $(LINTLIBDIR)/llib-lX11.ln

         XLIBONLY = $(XONLYLIB)

      XEXTLIBSRC = $(LIBSRC)/Xext

SOXEXTREV = 6.0
DEPEXTENSIONLIB =
EXTENSIONLIB =  -lXext

LINTEXTENSION = $(LINTLIBDIR)/llib-lXext.ln

LINTEXTENSIONLIB = $(LINTEXTENSION)
          DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
             XLIB = $(EXTENSIONLIB) $(XONLYLIB)
         LINTXLIB = $(LINTXONLYLIB)

         XAUTHSRC = $(LIBSRC)/Xau

DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
XAUTHLIB =  -lXau

LINTXAUTH = $(LINTLIBDIR)/llib-lXau.ln

      XDMCPLIBSRC = $(LIBSRC)/Xdmcp

DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
XDMCPLIB =  -lXdmcp

LINTXDMCP = $(LINTLIBDIR)/llib-lXdmcp.ln

           XMUSRC = $(LIBSRC)/Xmu

SOXMUREV = 6.0
DEPXMULIB =
XMULIB =  -lXmu

LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln

       OLDXLIBSRC = $(LIBSRC)/oldX

SOOLDXREV = 6.0
DEPOLDXLIB =
OLDXLIB =  -loldX

LINTOLDX = $(LINTLIBDIR)/llib-loldX.ln

       TOOLKITSRC = $(LIBSRC)/Xt

SOXTREV = 6.0
DEPXTOOLONLYLIB =
XTOOLONLYLIB =  -lXt

LINTXTOOLONLY = $(LINTLIBDIR)/llib-lXt.ln

      DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
         XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
     LINTXTOOLLIB = $(LINTXTOOLONLYLIB)

       AWIDGETSRC = $(LIBSRC)/Xaw

SOXAWREV = 6.0
DEPXAWLIB =
XAWLIB =  -lXaw

LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln

       XTFSRC = $(TOP)/workInProgress/Xtf

SOXTFREV = 0.7
DEPXTFLIB =
XTFLIB =  -lXtf

LINTXTF = $(LINTLIBDIR)/llib-lXtf.ln

       FRESCOSRC = $(TOP)/workInProgress/Fresco

SOFRESCOREV = 0.7
DEPFRESCOLIB =
FRESCOLIB =  -lFresco

LINTFRESCO = $(LINTLIBDIR)/llib-lFresco.ln

         XILIBSRC = $(LIBSRC)/Xi

SOXINPUTREV = 6.0
DEPXILIB =
XILIB =  -lXi

LINTXI = $(LINTLIBDIR)/llib-lXi.ln

      XTESTLIBSRC = $(LIBSRC)/Xtst

SOXTESTREV = 6.0
DEPXTESTLIB =
XTESTLIB =  -lXtst

LINTXTEST = $(LINTLIBDIR)/llib-lXtst.ln

        PEXLIBSRC = $(LIBSRC)/PEX5

SOPEXREV = 6.0
DEPPEXLIB =
PEXLIB =  -lPEX5

LINTPEX = $(LINTLIBDIR)/llib-lPEX5.ln

        XIELIBSRC = $(LIBSRC)/XIE

SOXIEREV = 6.0
DEPXIELIB =
XIELIB =  -lXIE

LINTXIE = $(LINTLIBDIR)/llib-lXIE.ln

      PHIGSLIBSRC = $(LIBSRC)/PHIGS

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

LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln

DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
XBSDLIB =  -lXbsd

LINTXBSD = $(LINTLIBDIR)/llib-lXbsd.ln

           ICESRC = $(LIBSRC)/ICE

SOICEREV = 6.0
DEPICELIB =
ICELIB =  -lICE

LINTICE = $(LINTLIBDIR)/llib-lICE.ln

            SMSRC = $(LIBSRC)/SM

SOSMREV = 6.0
DEPSMLIB =
SMLIB =  -lSM

LINTSM = $(LINTLIBDIR)/llib-lSM.ln

         FSLIBSRC = $(LIBSRC)/FS

DEPFSLIB = $(USRLIBDIR)/libFS.a
FSLIB =  -lFS

LINTFS = $(LINTLIBDIR)/llib-lFS.ln

         FONTLIBSRC = $(LIBSRC)/font

DEPFONTLIB = $(USRLIBDIR)/libfont.a
FONTLIB =  -lfont

LINTFONT = $(LINTLIBDIR)/llib-lfont.ln

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

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

        CONFIGDIR = $(LIBDIR)/config

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

# Copyright (C) 1993 Nathan Sidwell
# RCS $Id: Imakefile,v 4.57 1995/12/22 11:32:07 nathan Exp $

# specify if this is a transputer target
# #define transputerbuild 1

# For full details of the switches herein, read the README file
# Imake file for xmris V4.04 23 July 1995
VERSION = 4.04
APP = xmris

# compiler options
#

EXTRACCOPTIONS = -Wall -Wpointer-arith -Wwrite-strings -Wtraditional

# Is it a knr compiler which _doesn't_ have void?
KNR =
# KNR = -DSTRICTKNR
# do you trust the code?
# NDEBUG =
# NDEBUG = -DNDEBUG
# Allow debugging?
# CDEBUGFLAGS = -g
# debug event loop?
# CDEBUGFLAGS += -DDEBUGEVENTLOOP

# system environment
#
# don't you have gettimeofday?
TIME =
# TIME = -DUSETIME
# don't you have lockf or flock?
LOCK =
LOCK = -DUSELOCKFILE

# game defaults, you probably only want to alter the SCORE
#

# where is the high score file?
# SCORE = $(LOCAL)/lib/$(APP)
SCORE = $(LIBDIR)/$(APP)

# The following defines are needed for some implementations and/or sites.
# It is xmkmf's job to get these right in the first place.
# If you have to declare any of these, X may not be installed correctly.
#
# DEC station 5000 appears to require these includes
# STD_INCLUDES = -I/usr/include/mit
# and they require these two libraries changed
# XLIB = -lXext-mit -lX11-mit
# required for setuid, try one or the other, (the first is better)
# EXTRA_LOAD_FLAGS = -R$(USRLIBDIR)$${LD_RUN_PATH+\:$$LD_RUN_PATH}
# EXTRA_LOAD_FLAGS = -static
# some X implementations and openwindows require the maths library
# MATHSLIB = -lm

# install parameters
#

# owner and access rights for executable & score directory
# these are set for a setuid xmris
OWNER = -o games
INSTSCOREFLAGS = $(OWNER) -m 755
INSTMRISFLAGS = $(OWNER) $(INSTUIDFLAGS)
# normal install locations
THEBINDIR = $(BINDIR)
THEMANDIR = $(MANDIR)
# for open access you want 777 and $(INSTPGMFLAGS),
# (the personal score files go in users' home dirs.)
# INSTSCOREFLAGS = -m 777
# INSTMRISFLAGS = $(INSTPGMFLAGS)
# If you're not installing in the default locations
# DESTDIR =
# THEBINDIR = $(LOCAL)/bin
# THEMANDIR = $(LOCAL)/man/man6

FONT = "-*-courier-*-r-*-*-18-*-*-*-m-*-*-*"

# default args for RCS ci and co
# override from the command line to do other things
CIFLAGS = -u
COFLAGS = -l
RCSFLAGS =

DEFINES = $(EXTRACCOPTIONS) -DFONT_NAME='$(FONT)' $(NDEBUG) \
	-DSCORE_DIR='"$(SCORE)"' $(LOCK) $(TIME) $(KNR) -DSCROLLBARBUGFIX
LOCAL_LIBRARIES = $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB) $(MATHSLIB)
DEPLIBS = $(DEPXLIB)

# filenames or stems
COMMONHDRS = patchlevel.h ansiknr.h defcom.h common.h
MRISHDRS = xmris.h defmris.h
MREDHDRS = xmred.h defmred.h
COMMONSRCS = defcom.c makecom.c
GARDENS = alphabet.gdn digits.gdn puzzle.gdn xmred.gdn
FILES = CHANGES CHANGES.4.01 CHANGES.4.02 CHANGES.4.03 CHANGES.4.04 \
	README COPYRIGHT Imakefile \
	xmris.man xmred.man Xmris-ad.src
MRISSRCS = apple.c defmris.c demo.c draw.c makemris.c \
	monster.c move.c player.c scoring.c timer.c xmris.c
MRISOBJS = $(MRISSRCS:.c=.o)
SCRAMSRCS = scram.c
SCRAMOBJS = $(SCRAMSRCS:.c=.o)
WIDGETSRCS = Drag.c Icon.c PixmapList.c
WIDGETOBJS = $(WIDGETSRCS:.c=.o)
WIDGETHDRS = $(WIDGETSRCS:.c=.h)
MREDSRCS = all.c control.c defmred.c dialogs.c garden.c makemred.c \
	menubar.c xmred.c
MREDOBJS = $(MREDSRCS:.c=.o)
# name all the sprites -- these are root names
APPLE = bitmaps/apple/apldcy.r bitmaps/apple/aplnorm.r \
	bitmaps/apple/aplrock.r bitmaps/apple/aplrot.r \
	bitmaps/apple/aplspl.r bitmaps/apple/gstnorm.r \
	bitmaps/apple/gstrock.r bitmaps/apple/aplsmall.r \
	bitmaps/apple/bigedge.r bitmaps/apple/smledge.r
BOARD = bitmaps/board/cherry.r bitmaps/board/digits.r \
	bitmaps/board/seat.r bitmaps/board/ball.r
CHOMP = bitmaps/chomp/hchmpc.r bitmaps/chomp/hchmpo.r \
	bitmaps/chomp/schmpc.r bitmaps/chomp/schmpo.r
DRONE = bitmaps/drone/hdronw1.r bitmaps/drone/hdronw2.r \
	bitmaps/drone/hdronf.r \
	bitmaps/drone/sdronw1.r bitmaps/drone/sdronw2.r \
	bitmaps/drone/sdronf.r
ICON = bitmaps/icon/solidi.r bitmaps/icon/shelli.r \
	bitmaps/icon/solidm.r bitmaps/icon/shellm.r \
	bitmaps/icon/solidr.r bitmaps/icon/shellr.r \
	bitmaps/icon/solids.r bitmaps/icon/shells.r \
	bitmaps/icon/solidt.r bitmaps/icon/shellt.r
MUNCH = bitmaps/munch/hmnchw1.r bitmaps/munch/hmnchw2.r \
	bitmaps/munch/hmnchf.r \
	bitmaps/munch/smnchw1.r bitmaps/munch/smnchw2.r \
	bitmaps/munch/smnchf.r
NORMAL = bitmaps/normal/hnormw1.r bitmaps/normal/hnormw2.r \
	bitmaps/normal/hnormf.r bitmaps/normal/hden.r \
	bitmaps/normal/snormw1.r bitmaps/normal/snormw2.r \
	bitmaps/normal/snormf.r bitmaps/normal/sden.r
PLAYER = bitmaps/player/hplyrf.r \
	bitmaps/player/hplyrh1.r bitmaps/player/hplyrh2.r \
	bitmaps/player/hplyrp1.r bitmaps/player/hplyrp2.r \
	bitmaps/player/hplyrs1.r bitmaps/player/hplyrs2.r \
	bitmaps/player/hplyrw1.r bitmaps/player/hplyrw2.r \
	bitmaps/player/splyrf.r \
	bitmaps/player/splyrp1.r bitmaps/player/splyrp2.r \
	bitmaps/player/splyrs1.r bitmaps/player/splyrs2.r \
	bitmaps/player/splyrw1.r bitmaps/player/splyrw2.r \
	bitmaps/player/splyrd1.r bitmaps/player/splyrd2.r \
	bitmaps/player/splyrh1.r bitmaps/player/splyrh2.r
PRIZE = bitmaps/prize/cake.r bitmaps/prize/spanner.r \
	bitmaps/prize/brolly.r bitmaps/prize/mushrm.r bitmaps/prize/clock.r \
	bitmaps/prize/gem1.r bitmaps/prize/gem2.r bitmaps/prize/gem3.r
XTRA = bitmaps/xtra/hxtraf.r bitmaps/xtra/hxtraw1.r bitmaps/xtra/hxtraw2.r \
	bitmaps/xtra/sxtraf.r bitmaps/xtra/sxtraw1.r bitmaps/xtra/sxtraw2.r \
	bitmaps/xtra/xtrbold.r bitmaps/xtra/xtrfaint.r
EDIT = bitmaps/edit/bigearw.r bitmaps/edit/bigsarw.r \
	bitmaps/edit/smlearw.r bitmaps/edit/smlsarw.r bitmaps/edit/path.r \
	bitmaps/edit/red.r bitmaps/edit/green.r bitmaps/edit/blue.r \
	bitmaps/edit/include.r bitmaps/edit/iconi.r bitmaps/edit/boardi.r \
	bitmaps/edit/warnon.r bitmaps/edit/warnoff.r
BITMAPS = bitmaps/bitmaps/edge.r bitmaps/bitmaps/fill0.r \
	bitmaps/bitmaps/fill1.r bitmaps/bitmaps/fill2.r \
	bitmaps/bitmaps/fill3.r bitmaps/bitmaps/rect.r \
	bitmaps/bitmaps/oblong.r bitmaps/bitmaps/mris.r \
	bitmaps/bitmaps/msit.r bitmaps/bitmaps/mred.r \
	bitmaps/bitmaps/ghosting.r
ALLFILES = $(FILES) $(GARDENS) $(COMMONHDRS) $(MRISHDRS) $(MREDHDRS) \
	$(COMMONSRCS) $(MRISSRCS) $(SCRAMSRCS) $(MREDSRCS) \
	$(WIDGETSRCS) $(WIDGETHDRS) \
	$(APPLE:.r=.bw) $(APPLE:.r=.rgb) $(BOARD:.r=.bw) $(BOARD:.r=.rgb) \
	$(CHOMP:.r=.bw) $(CHOMP:.r=.rgb) $(DRONE:.r=.bw) $(DRONE:.r=.rgb) \
	$(ICON:.r=.bw) $(ICON:.r=.rgb) $(MUNCH:.r=.bw) $(MUNCH:.r=.rgb) \
	$(NORMAL:.r=.bw) $(NORMAL:.r=.rgb) $(PLAYER:.r=.bw) $(PLAYER:.r=.rgb) \
	$(PRIZE:.r=.bw) $(PRIZE:.r=.rgb) $(XTRA:.r=.bw) $(XTRA:.r=.rgb) \
	$(EDIT:.r=.bw) $(EDIT:.r=.rgb) $(BITMAPS:.r=.h)

# using alltarget can cause gnumake to try and make a target called all.
# the reason is the All Target macro has no rules, so gnumake tries
# to find an implicit one. Other makes just give up.
all :: initialize
	@echo "NOTE:You might get lots of warnings about discarding const from"
	@echo "NOTE:pointer target type. Ignore these. It's because the X header"
	@echo "NOTE:files aren't const correct. Fiddle with XrmOptionDescRec in"
	@echo "NOTE:Xresource.h and String in Intrinsic.h by adding an _Xconst."
	@#keep gnumake happy

all :: xmris xmred
	@#keep gnumake happy

all :: README.xmris README.xmred Xmris.ad
	@#keep gnumake happy

# rules to make sure the initialize thing is done
clean :: initialize
	@#keep gnumake happy

install :: initialize
	@#keep gnumake happy

# xmris build

xmris: $(MRISOBJS) $(DEPLIBS)
	$(RM) $@
	$(CCLINK) -o $@ $(LDOPTIONS) $(MRISOBJS) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) xmris

install:: xmris
	@if [ -d $(DESTDIR)$(THEBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(THEBINDIR)); fi
	$(INSTALL) $(INSTALLFLAGS) $(INSTPGMFLAGS) $(INSTMRISFLAGS) xmris $(DESTDIR)$(THEBINDIR)/xmris

install :: $(THEBINDIR)/xmris
	$(RM) $(THEBINDIR)/xmsit
	$(LN) ./xmris $(THEBINDIR)/xmsit

# xmred build

xmred: $(MREDOBJS) $(WIDGETOBJS) $(DEPLIBS)
	$(RM) $@
	$(CCLINK) -o $@ $(LDOPTIONS) $(MREDOBJS) $(WIDGETOBJS) $(LOCAL_LIBRARIES) -lm $(LDLIBS)  $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) xmred

install:: xmred
	@if [ -d $(DESTDIR)$(THEBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(THEBINDIR)); fi
	$(INSTALL) $(INSTALLFLAGS) $(INSTPGMFLAGS)  xmred $(DESTDIR)$(THEBINDIR)/xmred

# manual pages
README.xmris : xmris.man
	$(RM) README.xmris
	nroff -man xmris.man > README.xmris

README.xmred : xmred.man
	$(RM) README.xmred
	nroff -man xmred.man > README.xmred

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

install.man::
	@(TMP=/tmp/tmp.$$$$; \
	$(RM) $${TMP}; \
	echo .so `basename $(THEMANDIR)`/xmris.$(MANSUFFIX) > $${TMP}; \
	for i in xmsit; do (set -x; \
	$(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)$(THEMANDIR)/$$i.$(MANSUFFIX)); \
	done; \
	$(RM) $${TMP})

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

# application resource files

install:: Xmris.ad
	@if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
	$(INSTALL) $(INSTALLFLAGS) $(INSTAPPFLAGS) Xmris.ad $(DESTDIR)$(XAPPLOADDIR)/Xmris

Xmris.ad : Xmris-ad.src
	sed -e 's@SCORE@$(SCORE)@' -e s@FONT@$(FONT)@ < Xmris-ad.src > Xmris.ad

# score directory install
install ::
	@if [ -d $(SCORE) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(SCORE)); fi
	@#not all $(INSTALL) have a -d flag, have to do it explicitly
	@echo installing $(INSTSCOREFLAGS) $(SCORE)
	@set -- $(INSTSCOREFLAGS) ; \
	while [ $$# -ne 0 ] ; \
	do \
	case "$$1" in \
	"-o") shift ; chown $$1 $(SCORE) ; echo owner is $$1 ;; \
	"-m") shift ; chmod $$1 $(SCORE) ;; \
	"-g") shift ; chgrp $$1 $(SCORE) ; echo group is $$1 ;; \
	*) echo unknown option '$$1' ;; \
	esac ; \
	shift ; \
	done

# install default gardens
install :: $(GARDENS)
	@if [ -d $(DESTDIR)/$(XAPPLOADDIR)/$(APP) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)/$(XAPPLOADDIR)/$(APP)); fi
	@set dummy $(GARDENS) ; shift ; \
	while [ $$# != 0 ] ; \
	do \
	  (set -x ; $(INSTALL) -c $(INSTAPPFLAGS) $$1 $(DESTDIR)/$(XAPPLOADDIR)/$(APP)/$$1) ; \
	  shift ; \
	done

# scram program

scram: $(SCRAMOBJS)
	$(RM) $@
	$(CCLINK) -o $@ $(LDOPTIONS) $(SCRAMOBJS)  $(LDLIBS)  $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) scram

clean ::
	$(RM) $(MRISOBJS)
	$(RM) Xmris.ad
	$(RM) $(MREDOBJS)
	$(RM) $(WIDGETOBJS)
	$(RM) $(SCRAMOBJS)

# tar is somewhat complicated because we want it to untar into an xmris
# subdirectory with the correct version number (ie xmris.4.00)
# this is done by cd'ing up, creating a link of the correct name to
# where we are and then tarring the files in here with the directory
# prefix tacked on. But we don't know the directory name we're in so
# we have to determine that, and if it is already what we want, then
# don't make a link
tar : $(ALLFILES) README.xmris README.xmred
	@if [ ! -f Makefile.std ] ; then \
	  echo No Makefile.std, winging it ; \
	  cp Makefile Makefile.std ; \
	elif [ `ls -t Makefile Makefile.std | \
	    sed '2,$$d'` = Makefile ] ; then \
	  echo Warning:Makefile.std is older than Makefile ; \
	fi
	@echo Tarring \& feathering into $(APP).$(VERSION).tgz
	@DIR=`pwd | sed "s+/.*/++"` ; rm="" ; \
	if [ ! -x ../$(APP).$(VERSION) ] ; then \
	  rm="$(RM) ../$(APP).$(VERSION)" ; \
	  $(LN) ./$$DIR ../$(APP).$(VERSION) ; \
	fi ; \
	(cd .. ;  tar cf - `set README.xmris README.xmred Makefile.std \
	    $(ALLFILES) ; \
	  while [ $$# -ne 0 ] ; \
	  do echo $(APP).$(VERSION)/$$1 ; shift ; \
	  done`) | \
	gzip -f > $(APP).$(VERSION).tgz ; \
	$$rm

# checkin all the checked out files
# you can use MSG to set the checkin message
checkin : $(ALLFILES)
	@ARGS='$(CIFLAGS)' ; \
	echo Checking in locked files with $${ARGS:-'no options'}
	@ARGS='$(MSG)' ; \
	FILELIST=`set $(ALLFILES) ; \
	  (while [ $$# -ne 0 ] ; \
	  do if [ -w $$1 ] ; then echo $$1 ; fi ; \
	    shift ; \
	  done) | sort` ; \
	if [ -z "$$FILELIST" ] ; then \
	  echo Nothing to do, all up to date ; \
	elif [ 0$${ARGS:+1} -ne 0 ] ; then \
	  echo Label \''$(MSG)'\' ; \
	  ci $(CIFLAGS) -m"$(MSG)" $$FILELIST ; \
	else \
	  ci $(CIFLAGS) $$FILELIST ; \
	fi ; \

# checkout all the files, with COFLAGS args
checkout :
	@ARGS='$(COFLAGS)' ; \
	echo Checking out all files with $${ARGS:-'no options'}
	@co $(COFLAGS) `set $(ALLFILES) ; \
	  while [ $$# -ne 0 ] ; \
	  do if [ ! -w $$1 ] ; then echo $$1 ; fi ; \
	    shift ; \
	  done`

rcs : checkin
	@ARGS='$(RCSFLAGS)' ; \
	echo RCSing all files with $${ARGS:-'no options'}
	rcs $(RCSFLAGS) $(ALLFILES)

# upload a tar file into this directory
upload :
	@arc=$(APP).$(VERSION).tgz ; \
	if [ ! -r $$arc ] ; then \
	  arc=$(APP).tgz ; \
	fi ; \
	echo Uploading from tar file $$arc ; \
	echo Locking files about to be uploaded ; \
	for file in `gunzip -c $$arc | tar tf -` ; \
	do \
	  base=`echo $$file | sed 's+^[^/]*/++'` ; \
	  if [ ! -w $$base ] ; then \
	    if [ -r `echo ./$$base | sed 's+/[^/]*$$++'`/RCS/`echo $$base | sed 's+.*/++'`,v ] ; then \
	      co -l $$base ; \
	    fi ; \
	  fi ; \
	done ; \
	echo Commencing upload from $$arc ; \
	DIR=`pwd | sed "s+/.*/++"` ; rm="" ; \
	if [ ! -x ../$(APP).$(VERSION) ] ; then \
	  rm="$(RM) ../$(APP).$(VERSION)" ; \
	  $(LN) ./$$DIR ../$(APP).$(VERSION) ; \
	fi ; \
	(cd .. ; gunzip -c $(APP).$(VERSION)/$$arc | tar xvf -) ; \
	$$rm ; \
	echo Chmoding files which were uploaded ; \
	for file in `gunzip -c $$arc | tar tf -` ; \
	do \
	  chmod +w `echo $$file | sed 's+^[^/]*/++'` ; \
	done ; \
	echo Upload from $$arc complete ; \
	echo Don\'t for get to check them all in now

Makefile.std :: initialize
	cp Makefile Makefile.std
	@echo You may want to edit Makefile.std now

# these are the o dependencies
$(MRISOBJS) : xmris.h common.h ansiknr.h patchlevel.h

makemris.o : defmris.h defcom.h makecom.c

defmris.o : defmris.h defcom.h defcom.c bitmaps/sprites

draw.o : digits.gdn

$(MREDOBJS) : xmred.h common.h ansiknr.h patchlevel.h

all.o : Drag.h Icon.h PixmapList.h

control.o : Drag.h Icon.h

defmred.o : defmred.h defcom.h defcom.c bitmaps/sprites xmred.gdn

makemred.o : defmred.h defcom.h makecom.c Icon.h PixmapList.h

$(SCRAMOBJS) : ansiknr.h

Drag.o : Drag.h

Icon.o : Drag.h Icon.h

PixmapList.o : PixmapList.h Drag.h

# dependencies for single files
# can't use $(@:.o=.c) or similar clever thing, 'cos its incompatible
# gnumake is clever enough to perform a check out using implicit rules

apple.o : apple.c

defmris.o : defmris.c

demo.o : demo.c

draw.o : draw.c

makemris.o : makemris.c

monster.o : monster.c

move.o : move.c

player.o : player.c

scoring.o : scoring.c

timer.o : timer.c

xmris.o : xmris.c

scram.o : scram.c

Drag.o : Drag.c

Icon.o : Icon.c

PixmapList.o : PixmapList.c

all.o : all.c

control.o : control.c

defmred.o : defmred.c

dialogs.o : dialogs.c

garden.o : garden.c

makemred.o : makemred.c

menubar.o : menubar.c

xmred.o : xmred.c

# sprite rules
SPRITEMARKERS = bitmaps/apple/sprites bitmaps/board/sprites \
	bitmaps/icon/sprites bitmaps/player/sprites bitmaps/normal/sprites \
	bitmaps/munch/sprites bitmaps/xtra/sprites bitmaps/drone/sprites \
	bitmaps/chomp/sprites bitmaps/prize/sprites bitmaps/edit/sprites \
	bitmaps/bitmaps/sprites
clean ::
	$(RM) $(APPLE:.r=.h)
	$(RM) $(BOARD:.r=.h)
	$(RM) $(CHOMP:.r=.h)
	$(RM) $(DRONE:.r=.h)
	$(RM) $(ICON:.r=.h)
	$(RM) $(MUNCH:.r=.h)
	$(RM) $(NORMAL:.r=.h)
	$(RM) $(PLAYER:.r=.h)
	$(RM) $(PRIZE:.r=.h)
	$(RM) $(XTRA:.r=.h)
	$(RM) $(EDIT:.r=.h)
	$(RM) bitmaps/sprites $(SPRITEMARKERS)

# makes the sprites from the rgb and bw images

bitmaps/sprites : $(SPRITEMARKERS)
	touch $@

bitmaps/apple/sprites : $(APPLE:.r=.h)
	touch $@

bitmaps/board/sprites : $(BOARD:.r=.h)
	touch $@

bitmaps/chomp/sprites : $(CHOMP:.r=.h)
	touch $@

bitmaps/drone/sprites : $(DRONE:.r=.h)
	touch $@

bitmaps/icon/sprites : $(ICON:.r=.h)
	touch $@

bitmaps/munch/sprites : $(MUNCH:.r=.h)
	touch $@

bitmaps/normal/sprites : $(NORMAL:.r=.h)
	touch $@

bitmaps/player/sprites : $(PLAYER:.r=.h)
	touch $@

bitmaps/prize/sprites : $(PRIZE:.r=.h)
	touch $@

bitmaps/xtra/sprites : $(XTRA:.r=.h)
	touch $@

bitmaps/edit/sprites : $(EDIT:.r=.h)
	touch $@

bitmaps/bitmaps/sprites : $(BITMAPS:.r=.h)
	touch $@

# sprite building rule, again clever make stuff is incompatible

bitmaps/apple/apldcy.h : ./scram bitmaps/apple/apldcy.rgb bitmaps/apple/apldcy.bw
	./scram bitmaps/apple/apldcy  COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_BLACK

bitmaps/apple/aplnorm.h : ./scram bitmaps/apple/aplnorm.rgb bitmaps/apple/aplnorm.bw
	./scram bitmaps/apple/aplnorm  COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_BLACK

bitmaps/apple/aplrock.h : ./scram bitmaps/apple/aplrock.rgb bitmaps/apple/aplrock.bw
	./scram bitmaps/apple/aplrock  COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_BLACK

bitmaps/apple/aplrot.h : ./scram bitmaps/apple/aplrot.rgb bitmaps/apple/aplrot.bw
	./scram bitmaps/apple/aplrot  COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_BLACK

bitmaps/apple/aplspl.h : ./scram bitmaps/apple/aplspl.rgb bitmaps/apple/aplspl.bw
	./scram bitmaps/apple/aplspl  COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_BLACK

bitmaps/apple/gstnorm.h : ./scram bitmaps/apple/gstnorm.rgb bitmaps/apple/gstnorm.bw
	./scram bitmaps/apple/gstnorm  COLOR_APPLE_FAINT COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE + COLOR_BACKGROUND COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE + COLOR_APPLE_FAINT

bitmaps/apple/gstrock.h : ./scram bitmaps/apple/gstrock.rgb bitmaps/apple/gstrock.bw
	./scram bitmaps/apple/gstrock  COLOR_APPLE_FAINT COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE + COLOR_BACKGROUND COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE + COLOR_APPLE_FAINT

bitmaps/apple/aplsmall.h : ./scram bitmaps/apple/aplsmall.rgb bitmaps/apple/aplsmall.bw
	./scram bitmaps/apple/aplsmall  COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_APPLE_1 COLOR_APPLE_2 COLOR_WHITE COLOR_BLACK + COLOR_BLACK

bitmaps/apple/bigedge.h : ./scram bitmaps/apple/bigedge.rgb bitmaps/apple/bigedge.bw
	./scram bitmaps/apple/bigedge -s COLOR_APPLE_FAINT + COLOR_APPLE_FAINT +

bitmaps/apple/smledge.h : ./scram bitmaps/apple/smledge.rgb bitmaps/apple/smledge.bw
	./scram bitmaps/apple/smledge -s COLOR_APPLE_FAINT + COLOR_APPLE_FAINT +

bitmaps/board/cherry.h : ./scram bitmaps/board/cherry.rgb bitmaps/board/cherry.bw
	./scram bitmaps/board/cherry +s COLOR_WHITE COLOR_CHERRY COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_CHERRY COLOR_BLACK COLOR_CHERRY_STALK + COLOR_BLACK

bitmaps/board/ball.h : ./scram bitmaps/board/ball.rgb bitmaps/board/ball.bw
	./scram bitmaps/board/ball +n COLOR_BALL + COLOR_BALL + COLOR_BLACK

bitmaps/board/digits.h : ./scram bitmaps/board/digits.rgb bitmaps/board/digits.bw
	./scram bitmaps/board/digits -s COLOR_BACKGROUND COLOR_BLACK + COLOR_BACKGROUND COLOR_WHITE +

bitmaps/board/seat.h : ./scram bitmaps/board/seat.rgb bitmaps/board/seat.bw
	./scram bitmaps/board/seat -s COLOR_SEAT COLOR_BLACK + COLOR_SEAT COLOR_WHITE +

bitmaps/chomp/hchmpc.h : ./scram bitmaps/chomp/hchmpc.rgb bitmaps/chomp/hchmpc.bw
	./scram bitmaps/chomp/hchmpc  COLOR_CHOMP COLOR_BLACK COLOR_WHITE COLOR_CHOMP_LIP COLOR_BLACK COLOR_BLACK + COLOR_CHOMP COLOR_CHOMP COLOR_BLACK COLOR_CHOMP_LIP COLOR_BLACK COLOR_WHITE + COLOR_BLACK

bitmaps/chomp/hchmpo.h : ./scram bitmaps/chomp/hchmpo.rgb bitmaps/chomp/hchmpo.bw
	./scram bitmaps/chomp/hchmpo  COLOR_CHOMP COLOR_BLACK COLOR_WHITE COLOR_CHOMP_LIP COLOR_BLACK COLOR_BLACK + COLOR_CHOMP COLOR_CHOMP COLOR_BLACK COLOR_CHOMP_LIP COLOR_BLACK COLOR_WHITE + COLOR_BLACK

bitmaps/chomp/schmpc.h : ./scram bitmaps/chomp/schmpc.rgb bitmaps/chomp/schmpc.bw
	./scram bitmaps/chomp/schmpc  COLOR_WHITE COLOR_CHOMP COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_CHOMP COLOR_CHOMP COLOR_BLACK +

bitmaps/chomp/schmpo.h : ./scram bitmaps/chomp/schmpo.rgb bitmaps/chomp/schmpo.bw
	./scram bitmaps/chomp/schmpo  COLOR_WHITE COLOR_CHOMP COLOR_CHOMP_TONGUE COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_CHOMP COLOR_CHOMP_TONGUE COLOR_CHOMP COLOR_BLACK +

bitmaps/drone/hdronf.h : ./scram bitmaps/drone/hdronf.rgb bitmaps/drone/hdronf.bw
	./scram bitmaps/drone/hdronf  COLOR_WHITE COLOR_DRONE COLOR_BLACK COLOR_WHITE + COLOR_BLACK COLOR_DRONE COLOR_WHITE COLOR_WHITE + COLOR_BLACK

bitmaps/drone/hdronw1.h : ./scram bitmaps/drone/hdronw1.rgb bitmaps/drone/hdronw1.bw
	./scram bitmaps/drone/hdronw1  COLOR_WHITE COLOR_DRONE COLOR_BLACK COLOR_WHITE COLOR_BLACK + COLOR_BLACK COLOR_DRONE COLOR_WHITE COLOR_WHITE COLOR_BACKGROUND + COLOR_BLACK

bitmaps/drone/hdronw2.h : ./scram bitmaps/drone/hdronw2.rgb bitmaps/drone/hdronw2.bw
	./scram bitmaps/drone/hdronw2  COLOR_WHITE COLOR_DRONE COLOR_BLACK COLOR_WHITE COLOR_BLACK + COLOR_BLACK COLOR_DRONE COLOR_WHITE COLOR_WHITE COLOR_BACKGROUND + COLOR_BLACK

bitmaps/drone/sdronf.h : ./scram bitmaps/drone/sdronf.rgb bitmaps/drone/sdronf.bw
	./scram bitmaps/drone/sdronf  COLOR_DRONE COLOR_BLACK COLOR_BLACK + COLOR_DRONE COLOR_DRONE COLOR_BLACK +

bitmaps/drone/sdronw1.h : ./scram bitmaps/drone/sdronw1.rgb bitmaps/drone/sdronw1.bw
	./scram bitmaps/drone/sdronw1  COLOR_WHITE COLOR_DRONE COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_DRONE COLOR_DRONE COLOR_BLACK +

bitmaps/drone/sdronw2.h : ./scram bitmaps/drone/sdronw2.rgb bitmaps/drone/sdronw2.bw
	./scram bitmaps/drone/sdronw2  COLOR_WHITE COLOR_DRONE COLOR_DRONE_TONGUE COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_DRONE COLOR_DRONE_TONGUE COLOR_DRONE COLOR_BLACK +

bitmaps/icon/solidi.h : ./scram bitmaps/icon/solidi.rgb bitmaps/icon/solidi.bw
	./scram bitmaps/icon/solidi -s COLOR_LETTER_GOT + COLOR_LETTER_GOT +

bitmaps/icon/solidm.h : ./scram bitmaps/icon/solidm.rgb bitmaps/icon/solidm.bw
	./scram bitmaps/icon/solidm -s COLOR_LETTER_GOT + COLOR_LETTER_GOT +

bitmaps/icon/solidr.h : ./scram bitmaps/icon/solidr.rgb bitmaps/icon/solidr.bw
	./scram bitmaps/icon/solidr -s COLOR_LETTER_GOT + COLOR_LETTER_GOT +

bitmaps/icon/solids.h : ./scram bitmaps/icon/solids.rgb bitmaps/icon/solids.bw
	./scram bitmaps/icon/solids -s COLOR_LETTER_GOT + COLOR_LETTER_GOT +

bitmaps/icon/solidt.h : ./scram bitmaps/icon/solidt.rgb bitmaps/icon/solidt.bw
	./scram bitmaps/icon/solidt -s COLOR_LETTER_GOT + COLOR_LETTER_GOT +

bitmaps/icon/shelli.h : ./scram bitmaps/icon/shelli.rgb bitmaps/icon/shelli.bw
	./scram bitmaps/icon/shelli -s COLOR_LETTER_NOT_GOT + COLOR_LETTER_NOT_GOT +

bitmaps/icon/shellm.h : ./scram bitmaps/icon/shellm.rgb bitmaps/icon/shellm.bw
	./scram bitmaps/icon/shellm -s COLOR_LETTER_NOT_GOT + COLOR_LETTER_NOT_GOT +

bitmaps/icon/shellr.h : ./scram bitmaps/icon/shellr.rgb bitmaps/icon/shellr.bw
	./scram bitmaps/icon/shellr -s COLOR_LETTER_NOT_GOT + COLOR_LETTER_NOT_GOT +

bitmaps/icon/shells.h : ./scram bitmaps/icon/shells.rgb bitmaps/icon/shells.bw
	./scram bitmaps/icon/shells -s COLOR_LETTER_NOT_GOT + COLOR_LETTER_NOT_GOT +

bitmaps/icon/shellt.h : ./scram bitmaps/icon/shellt.rgb bitmaps/icon/shellt.bw
	./scram bitmaps/icon/shellt -s COLOR_LETTER_NOT_GOT + COLOR_LETTER_NOT_GOT +

bitmaps/munch/hmnchf.h : ./scram bitmaps/munch/hmnchf.rgb bitmaps/munch/hmnchf.bw
	./scram bitmaps/munch/hmnchf  COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK COLOR_WHITE COLOR_BLACK + COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK COLOR_WHITE COLOR_WHITE + COLOR_BLACK

bitmaps/munch/hmnchw1.h : ./scram bitmaps/munch/hmnchw1.rgb bitmaps/munch/hmnchw1.bw
	./scram bitmaps/munch/hmnchw1  COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK COLOR_WHITE COLOR_BLACK COLOR_BLACK + COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_MUNCH_2 COLOR_WHITE COLOR_BLACK COLOR_WHITE + COLOR_BLACK

bitmaps/munch/hmnchw2.h : ./scram bitmaps/munch/hmnchw2.rgb bitmaps/munch/hmnchw2.bw
	./scram bitmaps/munch/hmnchw2  COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK COLOR_WHITE COLOR_BLACK COLOR_BLACK + COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_MUNCH_2 COLOR_WHITE COLOR_BLACK COLOR_WHITE + COLOR_BLACK

bitmaps/munch/smnchf.h : ./scram bitmaps/munch/smnchf.rgb bitmaps/munch/smnchf.bw
	./scram bitmaps/munch/smnchf  COLOR_WHITE COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK +

bitmaps/munch/smnchw1.h : ./scram bitmaps/munch/smnchw1.rgb bitmaps/munch/smnchw1.bw
	./scram bitmaps/munch/smnchw1  COLOR_WHITE COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_WHITE COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK +

bitmaps/munch/smnchw2.h : ./scram bitmaps/munch/smnchw2.rgb bitmaps/munch/smnchw2.bw
	./scram bitmaps/munch/smnchw2  COLOR_WHITE COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_MUNCH_1 COLOR_MUNCH_2 COLOR_BLACK +

bitmaps/normal/hden.h : ./scram bitmaps/normal/hden.rgb bitmaps/normal/hden.bw
	./scram bitmaps/normal/hden -s COLOR_NORMAL COLOR_NORMAL COLOR_WHITE COLOR_BLACK + COLOR_NORMAL COLOR_NORMAL COLOR_BLACK COLOR_WHITE +

bitmaps/normal/hnormf.h : ./scram bitmaps/normal/hnormf.rgb bitmaps/normal/hnormf.bw
	./scram bitmaps/normal/hnormf -s COLOR_NORMAL COLOR_NORMAL COLOR_WHITE COLOR_BLACK + COLOR_NORMAL COLOR_NORMAL COLOR_BLACK COLOR_WHITE +

bitmaps/normal/hnormw1.h : ./scram bitmaps/normal/hnormw1.rgb bitmaps/normal/hnormw1.bw
	./scram bitmaps/normal/hnormw1 -s COLOR_NORMAL COLOR_NORMAL COLOR_WHITE COLOR_BLACK + COLOR_NORMAL COLOR_NORMAL COLOR_BLACK COLOR_WHITE +

bitmaps/normal/hnormw2.h : ./scram bitmaps/normal/hnormw2.rgb bitmaps/normal/hnormw2.bw
	./scram bitmaps/normal/hnormw2 -s COLOR_NORMAL COLOR_NORMAL COLOR_WHITE COLOR_BLACK + COLOR_NORMAL COLOR_NORMAL COLOR_BLACK COLOR_WHITE +

bitmaps/normal/sden.h : ./scram bitmaps/normal/sden.rgb bitmaps/normal/sden.bw
	./scram bitmaps/normal/sden  COLOR_WHITE COLOR_NORMAL COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_NORMAL COLOR_WHITE COLOR_BLACK +

bitmaps/normal/snormf.h : ./scram bitmaps/normal/snormf.rgb bitmaps/normal/snormf.bw
	./scram bitmaps/normal/snormf  COLOR_WHITE COLOR_NORMAL COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_NORMAL COLOR_NORMAL COLOR_BLACK +

bitmaps/normal/snormw1.h : ./scram bitmaps/normal/snormw1.rgb bitmaps/normal/snormw1.bw
	./scram bitmaps/normal/snormw1  COLOR_WHITE COLOR_NORMAL COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_NORMAL COLOR_NORMAL COLOR_BLACK +

bitmaps/normal/snormw2.h : ./scram bitmaps/normal/snormw2.rgb bitmaps/normal/snormw2.bw
	./scram bitmaps/normal/snormw2  COLOR_WHITE COLOR_NORMAL COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_NORMAL COLOR_NORMAL COLOR_BLACK +

bitmaps/player/hplyrf.h : ./scram bitmaps/player/hplyrf.rgb bitmaps/player/hplyrf.bw
	./scram bitmaps/player/hplyrf  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND + COLOR_BLACK

bitmaps/player/hplyrh1.h : ./scram bitmaps/player/hplyrh1.rgb bitmaps/player/hplyrh1.bw
	./scram bitmaps/player/hplyrh1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND + COLOR_BLACK

bitmaps/player/hplyrh2.h : ./scram bitmaps/player/hplyrh2.rgb bitmaps/player/hplyrh2.bw
	./scram bitmaps/player/hplyrh2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND + COLOR_BLACK

bitmaps/player/hplyrp1.h : ./scram bitmaps/player/hplyrp1.rgb bitmaps/player/hplyrp1.bw
	./scram bitmaps/player/hplyrp1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND COLOR_BLACK + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND COLOR_WHITE + COLOR_BLACK

bitmaps/player/hplyrp2.h : ./scram bitmaps/player/hplyrp2.rgb bitmaps/player/hplyrp2.bw
	./scram bitmaps/player/hplyrp2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND COLOR_BLACK + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND COLOR_WHITE + COLOR_BLACK

bitmaps/player/hplyrs1.h : ./scram bitmaps/player/hplyrs1.rgb bitmaps/player/hplyrs1.bw
	./scram bitmaps/player/hplyrs1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND + COLOR_BLACK

bitmaps/player/hplyrs2.h : ./scram bitmaps/player/hplyrs2.rgb bitmaps/player/hplyrs2.bw
	./scram bitmaps/player/hplyrs2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND + COLOR_BLACK

bitmaps/player/hplyrw1.h : ./scram bitmaps/player/hplyrw1.rgb bitmaps/player/hplyrw1.bw
	./scram bitmaps/player/hplyrw1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND + COLOR_BLACK

bitmaps/player/hplyrw2.h : ./scram bitmaps/player/hplyrw2.rgb bitmaps/player/hplyrw2.bw
	./scram bitmaps/player/hplyrw2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BACKGROUND + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOOT COLOR_BACKGROUND + COLOR_BLACK

bitmaps/player/splyrf.h : ./scram bitmaps/player/splyrf.rgb bitmaps/player/splyrf.bw
	./scram bitmaps/player/splyrf  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrp1.h : ./scram bitmaps/player/splyrp1.rgb bitmaps/player/splyrp1.bw
	./scram bitmaps/player/splyrp1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrp2.h : ./scram bitmaps/player/splyrp2.rgb bitmaps/player/splyrp2.bw
	./scram bitmaps/player/splyrp2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrs1.h : ./scram bitmaps/player/splyrs1.rgb bitmaps/player/splyrs1.bw
	./scram bitmaps/player/splyrs1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrs2.h : ./scram bitmaps/player/splyrs2.rgb bitmaps/player/splyrs2.bw
	./scram bitmaps/player/splyrs2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrw1.h : ./scram bitmaps/player/splyrw1.rgb bitmaps/player/splyrw1.bw
	./scram bitmaps/player/splyrw1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrw2.h : ./scram bitmaps/player/splyrw2.rgb bitmaps/player/splyrw2.bw
	./scram bitmaps/player/splyrw2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrd1.h : ./scram bitmaps/player/splyrd1.rgb bitmaps/player/splyrd1.bw
	./scram bitmaps/player/splyrd1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrd2.h : ./scram bitmaps/player/splyrd2.rgb bitmaps/player/splyrd2.bw
	./scram bitmaps/player/splyrd2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrh1.h : ./scram bitmaps/player/splyrh1.rgb bitmaps/player/splyrh1.bw
	./scram bitmaps/player/splyrh1  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/player/splyrh2.h : ./scram bitmaps/player/splyrh2.rgb bitmaps/player/splyrh2.bw
	./scram bitmaps/player/splyrh2  COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_PLAYER_BOOT + COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_BLACK COLOR_PLAYER_BOBBLE COLOR_PLAYER COLOR_PLAYER_FACE COLOR_PLAYER_BOOT +

bitmaps/prize/cake.h : ./scram bitmaps/prize/cake.rgb bitmaps/prize/cake.bw
	./scram bitmaps/prize/cake +s COLOR_CAKE_ICING COLOR_CAKE COLOR_BLACK COLOR_CAKE_JAM + COLOR_CAKE_ICING COLOR_CAKE COLOR_BLACK COLOR_CAKE_JAM + COLOR_BLACK

bitmaps/prize/spanner.h : ./scram bitmaps/prize/spanner.rgb bitmaps/prize/spanner.bw
	./scram bitmaps/prize/spanner +s COLOR_SPANNER_SHADOW COLOR_SPANNER + COLOR_SPANNER_SHADOW COLOR_SPANNER +  COLOR_BLACK

bitmaps/prize/brolly.h : ./scram bitmaps/prize/brolly.rgb bitmaps/prize/brolly.bw
	./scram bitmaps/prize/brolly +s COLOR_BROLLY_1 COLOR_BROLLY_2 COLOR_BROLLY_HANDLE COLOR_BLACK + COLOR_BROLLY_1 COLOR_BROLLY_2 COLOR_BROLLY_HANDLE COLOR_BLACK + COLOR_BLACK

bitmaps/prize/mushrm.h : ./scram bitmaps/prize/mushrm.rgb bitmaps/prize/mushrm.bw
	./scram bitmaps/prize/mushrm +s COLOR_MUSHROOM_STALK COLOR_MUSHROOM_CAP COLOR_BLACK COLOR_WHITE + COLOR_MUSHROOM_STALK COLOR_MUSHROOM_CAP COLOR_BLACK COLOR_WHITE + COLOR_BLACK

bitmaps/prize/clock.h : ./scram bitmaps/prize/clock.rgb bitmaps/prize/clock.bw
	./scram bitmaps/prize/clock +s COLOR_CLOCK_FACE COLOR_BLACK COLOR_CLOCK_BELL COLOR_CLOCK_EDGE + COLOR_CLOCK_FACE COLOR_BLACK COLOR_CLOCK_BELL COLOR_CLOCK_EDGE + COLOR_BLACK

bitmaps/prize/gem1.h : ./scram bitmaps/prize/gem1.rgb bitmaps/prize/gem1.bw
	./scram bitmaps/prize/gem1  COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_BLACK +

bitmaps/prize/gem2.h : ./scram bitmaps/prize/gem2.rgb bitmaps/prize/gem2.bw
	./scram bitmaps/prize/gem2  COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_BLACK +

bitmaps/prize/gem3.h : ./scram bitmaps/prize/gem3.rgb bitmaps/prize/gem3.bw
	./scram bitmaps/prize/gem3  COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_BLACK COLOR_BLACK COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_WHITE COLOR_GEM_1 COLOR_GEM_2 COLOR_BLACK +

bitmaps/xtra/sxtraf.h : ./scram bitmaps/xtra/sxtraf.rgb bitmaps/xtra/sxtraf.bw
	./scram bitmaps/xtra/sxtraf  COLOR_WHITE COLOR_XTRA COLOR_BLACK + COLOR_BLACK COLOR_XTRA COLOR_XTRA +

bitmaps/xtra/sxtraw1.h : ./scram bitmaps/xtra/sxtraw1.rgb bitmaps/xtra/sxtraw1.bw
	./scram bitmaps/xtra/sxtraw1  COLOR_WHITE COLOR_XTRA COLOR_BLACK COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_XTRA COLOR_WHITE COLOR_XTRA COLOR_BLACK +

bitmaps/xtra/sxtraw2.h : ./scram bitmaps/xtra/sxtraw2.rgb bitmaps/xtra/sxtraw2.bw
	./scram bitmaps/xtra/sxtraw2  COLOR_WHITE COLOR_XTRA COLOR_BLACK COLOR_BLACK COLOR_BLACK + COLOR_WHITE COLOR_XTRA COLOR_WHITE COLOR_XTRA COLOR_BLACK +

bitmaps/xtra/hxtraf.h : ./scram bitmaps/xtra/hxtraf.rgb bitmaps/xtra/hxtraf.bw
	./scram bitmaps/xtra/hxtraf -s COLOR_XTRA COLOR_WHITE COLOR_BLACK + COLOR_XTRA COLOR_BLACK COLOR_WHITE +

bitmaps/xtra/hxtraw1.h : ./scram bitmaps/xtra/hxtraw1.rgb bitmaps/xtra/hxtraw1.bw
	./scram bitmaps/xtra/hxtraw1 -s COLOR_XTRA COLOR_WHITE COLOR_BLACK + COLOR_XTRA COLOR_BLACK COLOR_WHITE +

bitmaps/xtra/hxtraw2.h : ./scram bitmaps/xtra/hxtraw2.rgb bitmaps/xtra/hxtraw2.bw
	./scram bitmaps/xtra/hxtraw2 -s COLOR_XTRA COLOR_WHITE COLOR_BLACK + COLOR_XTRA COLOR_BLACK COLOR_WHITE +

bitmaps/xtra/xtrbold.h : ./scram bitmaps/xtra/xtrbold.rgb bitmaps/xtra/xtrbold.bw
	./scram bitmaps/xtra/xtrbold -s - COLOR_LETTER_GOT + - COLOR_LETTER_GOT +

bitmaps/xtra/xtrfaint.h : ./scram bitmaps/xtra/xtrfaint.rgb bitmaps/xtra/xtrfaint.bw
	./scram bitmaps/xtra/xtrfaint -s - COLOR_LETTER_NOT_GOT + - COLOR_LETTER_NOT_GOT +

bitmaps/edit/bigearw.h : ./scram bitmaps/edit/bigearw.rgb bitmaps/edit/bigearw.bw
	./scram bitmaps/edit/bigearw -s COLOR_APPLE_FAINT + COLOR_APPLE_FAINT +

bitmaps/edit/bigsarw.h : ./scram bitmaps/edit/bigsarw.rgb bitmaps/edit/bigsarw.bw
	./scram bitmaps/edit/bigsarw -s COLOR_APPLE_FAINT + COLOR_APPLE_FAINT +

bitmaps/edit/smlearw.h : ./scram bitmaps/edit/smlearw.rgb bitmaps/edit/smlearw.bw
	./scram bitmaps/edit/smlearw -s COLOR_APPLE_FAINT + COLOR_APPLE_FAINT +

bitmaps/edit/smlsarw.h : ./scram bitmaps/edit/smlsarw.rgb bitmaps/edit/smlsarw.bw
	./scram bitmaps/edit/smlsarw -s COLOR_APPLE_FAINT + COLOR_APPLE_FAINT +

bitmaps/edit/path.h : ./scram bitmaps/edit/path.rgb bitmaps/edit/path.bw
	./scram bitmaps/edit/path -s COLOR_BACKGROUND + COLOR_BACKGROUND +

bitmaps/edit/red.h : ./scram bitmaps/edit/red.rgb bitmaps/edit/red.bw
	./scram bitmaps/edit/red -s COLOR_RED_FORE + COLOR_RED_FORE +

bitmaps/edit/green.h : ./scram bitmaps/edit/green.rgb bitmaps/edit/green.bw
	./scram bitmaps/edit/green -s COLOR_GREEN_FORE + COLOR_GREEN_FORE +

bitmaps/edit/blue.h : ./scram bitmaps/edit/blue.rgb bitmaps/edit/blue.bw
	./scram bitmaps/edit/blue -s COLOR_BLUE_FORE + COLOR_BLUE_FORE +

bitmaps/edit/include.h : ./scram bitmaps/edit/include.rgb bitmaps/edit/include.bw
	./scram bitmaps/edit/include -s -c -m COLOR_BACKGROUND COLOR_BORDER COLOR_BACKGROUND COLOR_RED_FORE COLOR_BACKGROUND COLOR_BLUE_FORE COLOR_BACKGROUND COLOR_GREEN_FORE + COLOR_BACKGROUND COLOR_BORDER COLOR_BACKGROUND COLOR_RED_FORE COLOR_BACKGROUND COLOR_BLUE_FORE COLOR_BACKGROUND COLOR_GREEN_FORE +

bitmaps/edit/iconi.h : ./scram bitmaps/edit/iconi.rgb bitmaps/edit/iconi.bw
	./scram bitmaps/edit/iconi -s -c -m COLOR_BACKGROUND COLOR_FOREGROUND + COLOR_BACKGROUND COLOR_FOREGROUND +

bitmaps/edit/boardi.h : ./scram bitmaps/edit/boardi.rgb bitmaps/edit/boardi.bw
	./scram bitmaps/edit/boardi -s -c -m COLOR_BACKGROUND COLOR_FOREGROUND + COLOR_BACKGROUND COLOR_FOREGROUND +

bitmaps/edit/warnon.h : ./scram bitmaps/edit/warnon.rgb bitmaps/edit/warnon.bw
	./scram bitmaps/edit/warnon -s -c -m COLOR_BACKGROUND COLOR_FOREGROUND + COLOR_BACKGROUND COLOR_FOREGROUND +

bitmaps/edit/warnoff.h : ./scram bitmaps/edit/warnoff.rgb bitmaps/edit/warnoff.bw
	./scram bitmaps/edit/warnoff -s -c -m COLOR_BACKGROUND COLOR_FOREGROUND + COLOR_BACKGROUND COLOR_FOREGROUND +

.DONE :
	@echo "Hurrah!"

.FAILED :
	@echo "Bummer!"

# initialize rule is done before all makes. Not all makes
# have a .INIT implicit rule, so I don't use that
initialize :
	@echo Checking a few things
	@if [ `ls -t Makefile Imakefile | sed '2,$$d'` = Imakefile ] ; then \
	  echo Warning:Makefile is older than Imakefile ; \
	fi
	@if [ ! -d `echo '$(SCORE)' | sed 's=/[^/]*$$=='` ] ; then \
	  echo The parent of $(SCORE) does not exist ; \
	fi
	@if [ $(FONT) = "" ] ; then true ; \
	elif echo $(FONT) | grep -c -- '-m-.*-.*-.*$$' > /dev/null ; then \
	  if [ "$(XLSFONTS)" = "" -o "$(DISPLAY)" = "" ] ; then \
	    XLSFONTS="" ; \
	  elif [ -x $(XLSFONTS) ] ; then \
	    XLSFONTS=$(XLSFONTS) ; \
	  elif [ -x $(BINDIR)/$(XLSFONTS) ] ; then \
	    XLSFONTS=$(BINDIR)/$(XLSFONTS) ; \
	  elif [ -x /usr/bin/X11/$(XLSFONTS) ] ; then \
	    XLSFONTS=/usr/bin/X11/$(XLSFONTS) ; \
	  else \
	    XLSFONTS="" ; \
	  fi ; \
	  if [ "$$XLSFONTS" = "" ] ; then \
	    true ; \
	  elif [ `$$xlsfonts -o -fn "$(FONT)" 2> /dev/null | wc -l` -eq 0 ] ; then \
	    echo Warning:Font $(FONT) not found ; \
	  fi ; \
	else \
	  echo Warning:Font $(FONT) is not fixed width ; \
	fi
	@echo "Geronimo!"

# default rule looks for an RCS file to check out
# not required for gmake, as that already has a rule for it
.DEFAULT :
	@if echo $@ | grep -cv '^/' > /dev/null && \
	  [ -f `echo ./$@ | sed 's+^\(.*/\)\([^/]*\)$$+\1RCS/\2,v+'` ] ; then \
	    co $(COFLAGS) $@ ; \
	else \
	  echo Cannot make $@ and cannot find one made. ; \
	  exit 1 ; \
	fi

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

.c.i:
	$(RM) $@
	$(CC) -E $(CFLAGS) $(_NOOP_) $*.c > $@

emptyrule::

clean::
	$(RM_CMD) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut  "#"*

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

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

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

Makefiles::

includes::

depend::

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

