# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $

 ###########################################################################
 # Makefile generated from "Imake.tmpl"  and <Imakefile>
 # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
 #
 # Platform-specific parameters may be set in the appropriate .cf
 # configuration files.  Site-wide parameters may be set in the file
 # site.def.  Full rebuilds are recommended if any parameters are changed.
 #
 # 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 next.cf  to change

 # platform:  $XConsortium: generic.cf,v 1.2 89/01/11 14:58:19 jim Exp $
 # operating system:             1  MACH Variant 1.0

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

 # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $

            SHELL = /bin/sh

              TOP = ../../.
      CURRENT_DIR = ./Src/Programs

               AR = ar cq
  BOOTSTRAPCFLAGS =
               CC = 			cc

         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 -c -s
  RANLIBINSTFLAGS =
               RM = rm -f
     STD_INCLUDES =
  STD_CPP_DEFINES =
      STD_DEFINES =
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
             TAGS = ctags

    PROTO_DEFINES = -DFUNCPROTO  -DNARROWPROTO

     INSTPGMFLAGS =

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

          DESTDIR =

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = -O
        CCOPTIONS =
      COMPATFLAGS =

      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
   LDCOMBINEFLAGS = -X -r

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

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGDIR)
        IMAKE_CMD = $(IMAKE) -DUseInstalled -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.63 89/12/18 16:46:44 jim Exp $

 ###########################################################################
 # X Window System make variables; this need to be coordinated with rules
 # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $

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

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           AWMDIR = $(LIBDIR)/awm
           TWMDIR = $(LIBDIR)/twm
           GWMDIR = $(LIBDIR)/gwm
          MANPATH = $(DESTDIR) /usr/man
    MANSOURCEPATH = $(MANPATH)/man
           MANDIR = $(MANSOURCEPATH) n
        LIBMANDIR = $(MANSOURCEPATH) 3
      XAPPLOADDIR = $(LIBDIR)/app-defaults

       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

            IMAKE = imake
           DEPEND = makedepend
              RGB = rgb
            FONTC = bdftosnf
        MKFONTDIR = mkfontdir
        MKDIRHIER = /bin/sh  $(BINDIR)/mkdirhier.sh

        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
     EXTENSIONSRC = $(TOP)/extensions

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

          DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)  ## /libX11.a
             XLIB = $(EXTENSIONLIB)  			 -lX11

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

        DEPXMULIB = $(USRLIBDIR)  ## /libXmu.a
           XMULIB =  			 -lXmu

       DEPOLDXLIB = $(USRLIBDIR)  ## /liboldX.a
          OLDXLIB =  			 -loldX

      DEPXTOOLLIB = $(USRLIBDIR)  ## /libXt.a
         XTOOLLIB =  			 -lXt

        DEPXAWLIB = $(USRLIBDIR)  ## /libXaw.a
           XAWLIB =  			 -lXaw

 LINTEXTENSIONLIB = $(USRLIBDIR)  ## /llib-lXext.ln
         LINTXLIB = $(USRLIBDIR)  ## /llib-lX11.ln
          LINTXMU = $(USRLIBDIR)  ## /llib-lXmu.ln
        LINTXTOOL = $(USRLIBDIR)  ## /llib-lXt.ln
          LINTXAW = $(USRLIBDIR)  ## /llib-lXaw.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.67 89/12/18 17:14:15 jim Exp $

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

 #
 # Imakefile for ./Src/Programs - part of the UMDENG X-Tank distribution
 #
 # $Id: Imakefile,v 1.12 1992/02/01 22:26:30 lidl Exp $
 #

 #
 # Imakefile.config by Kurt Lidl (lidl@eng.umd.edu)
 #
 # This file (Imakefile.Config) is included in all the other Imakefiles
 # in the UMDENG X-Tank distribution.  Unless you are porting X-Tank to
 # a new (unsupported) platform, or adding new features to the game,
 # this should be the only file you need to edit to install the game.
 #
 # Things that still need work in the Imakefile system
 # 1) Testing on more platforms (Very important!)
 # 2) Addition of Motorola SYSV based config stuff
 #
 # If you have any problems *AT ALL* with the Imakefiles themselves,
 # please be sure to tell the folks at xtank@eng.umd.edu -- make sure
 # that you include the information requested in the BETA-README file.
 # Thanks.  Wed also love to hear of new robots and tank designs.

 # Things that might need to be defined, for your installation of xtank.

 # Put the path to the main xtank directory in quotes in the -DXTANK_DIR
 # below.  This is used as backup in case the environment variable
 # XTANK_DIR is not set at runtime.  The environment variable XTANK_DIR
 # is set in the shell script called xtank in the Bin directory.
 # You should change its value there also (to the same value).
 #
 # Graphics system:   X10 or X11 or AMIGA
 # The program will not work if X10 or AMIGA is set here.
 #
 # Operating system:  UNIX or AMIGA
 # Currently, xtank will not work if AMIGA is set here.
 #
 # Screen size:       S1024x864 or S640x400
 # The program will not work if S640x400 is set here.
 # If your screen is smaller than 1024x864, then some things will not
 # be visible
 #
 # -DSTINGY_REDRAW
 # Doesnt refresh objects that havent moved.
 # Might break some some exposure handlers!
 # Much more robust and better localized than the original STINGY_REDRAW.
 # Could use some macro-izing or local variables to replace the VS_moved
 # and VS_rotated ideas.
 # Files affected: display.c
 #
 # -DBATCH_LINES
 # Caches draw_lines requests into one big Xdrawsegments.
 # Files affected: display.c x11.c x11.h
 #
 # -DBATCH_POINTS
 # Caches draw_point requests into one big Xdrawpoints.
 # Files affected: display.c x11.c x11.h
 #
 # -DCODE_SIZE=0xNNNNNN
 # Default amount of space to allocate for dynamically loaded program
 # code segments.  One CODE_SIZE of space is allocated each time a
 # program is dynamically loaded.  The program that has been dynamically
 # loaded gets to use CODE_SIZE bytes of memory, minus possibly one
 # pagesize of memory, depending on whether or not malloc() returns memory
 # on a page boundary.
 #
 # -DSTACK_SIZE=0xNNNNNN
 # Default amount of space to allocate for each thread (Robot Program)
 # in the game.  Increasing this number can drastically change the
 # VM usage of Xtank!
 #
 # -DFAST_EXPLOS
 # Makes faster, terser explosions by limiting the number of bitmaps
 # displayed.
 # Files affected: circle.obj double.obj exhaust.obj fiery.obj
 #                 soft.obj tink.obj
 #
 # -DKEYPAD_DETECT
 # Enables the keypad routines.  Currently cause weapon "n" to one shot
 # each key press on the numeric keypad. Weapon state (on/off) is restored
 # after firing.
 # Files affected: input.c x11.c graphics.h
 #
 # -DLOCK_GAME_CONTROLS
 # Locks out some luser controls (speed, sync...)
 # Strictly a local hack.
 # Files affected: animate.c input.c
 #
 # -DNO_TEXT_CLIP
 # Disables fix that prevents off-window text from being drawn.
 # This is a big win as nametags were getting drawn constantly even
 # when they werent visible, thus generating needless net trafic.
 # Most sites should leave it undefined.
 # Files affected: x11.c
 #
 # -DBATCH_COLOR_LINES
 # Rather memory hungry extensions to cope with colored walls.
 # Most sites should define it.
 # Files affected: x11.c x11.h
 #
 # -DNO_NEW_RADAR
 # Experimental.  Should be defined (ie, disabled) for normal sites.
 # Files affected: many, many...
 # The performance hit may be too high, its in an early debugging phase.
 #
 # Disables the new radar subsystem.  Notable feature of the new radar
 # system is that it behaves like a radar system in the 1990s instead
 # of the 1960s. Big fat vehicles show up better on the radar screen.
 # RCS can be set by other modules to enable stealthy-type action.
 #
 # IFF (Identify Friend or Foe) subsystem.  Allows you to distinguish
 # friends and enemys (and allies) on the new radar. Works with
 # public-key cryptography, you must have the IFF key of your ally
 # and he must have your key for it to work. You share IFF keys
 # with your team-mates automatically.
 #
 # Tactical link, shares info with team mates. Currently only shares radar
 # info, might eventually share mapper info.
 #
 # HARMs, high speed anti-radiation missles.  Seeking code is still buggy!
 # You do a L-click in the map (!) window to select the firing coordinates.
 # NB: The weight/cost/ammo stuff is a rough guess for playing, and most
 # likely will switch in the next release.
 #
 # -DTEST_TURRETS
 # Experimental.  Should be left undefined (ie, disabled) for normal sites.
 # Argh! This should never be enabled as it stands. Was trying to speed up
 # turret code. Works by computing actual turret vector. Turret lengths set
 # for debugging, not playing.
 #
 # -DSLOWER
 # Experimental.  Should be defined (ie, disabled) for normal sites.
 # Various attempts at speeding up the code, probably very dependant
 # on your CPU. Stay tuned to this channel.
 # Files affected: collision.c
 #
 # -DNO_BROKEN_BLIP_FIX
 # A fix to a fix. Seems that my last uninformed patch made is possible
 # to leave a soilitary little dot on the radar if you turned it off
 # in the last life phase. Im sorry.
 # Most sites should leave it undefined.
 # Files affected: radar.c
 #
 # -DNO_FORCE_SPECIALS
 # Disables a patch that lets you turn off everyones radar.
 # Most sites should leave it undefined.
 #
 # -DSCROLL_INTO_WALL_BUG
 # Disables a fix that causes vehicles to stick into walls if they
 # are directed into them by a scroll square. This is an old fix,
 # but please leave the ifdef in so people can figgure out why the
 # code appears so funny at that point (and so disbelievers can
 # recreate the bug!)
 # Most sites should leave it undefined.
 #
 # Everybody needs to know the following global things about xtank

DEFINES2        = -DX11 -DUNIX -DS1024x864 -DKEYPAD_DETECT 		-DSTINGY_REDRAW -DBATCH_LINES -DBATCH_POINTS 		-DCODE_SIZE=0x20000 -DSTACK_SIZE=0x8000 $(ARCH_DEFINES)

DEFINES         = -DXTANK_DIR=\"/u/dkoski/src/x/xt/xtank\" $(DEFINES2) 		-DALLDEFINES="\"$(DEFINES2)\""

 # Things that might need to be defined, for your particular machine
 # architecture, and installation of xtank.  The best place to add
 # any flags needed for your particular platform is the
 # EXTRA_DEFINES line.
 #
 # Thread package:    THREAD_MP or THREAD_SUNLWP or THREAD_SVR4

#
 # The "standard" threads package is THREAD_MP, which runs on the
 # machines listed in thread.h.  To use it, add -DTHREAD_MP to the
 # architecture specfic options.
 #
 # There is an alternate threads package available on Suns which uses
 # the LWP library.  To use it, add -DTHREAD_SUNLWP to the architecture
 # specfic options.
 #
 # There is another alternate threads package available on System V
 # Release 4 machines which uses the builtin lightweight context
 # switching system calls.  To use it, add -DTHREAD_SVR4 to the
 # architecture specfic options.
 #
 # If you cannot get threads working using any of these methods, you
 # will not be able to have computer controlled vehicles.  Remove
 # the any thread flags from the architecture specfic options.
 # Other weird interactions may happen if no thread package is defined.
 #
 # X11R2 fonts:
 # If your machine is using X11R2 fontnames, instead of X11R3 fontnames,
 # add a -DX11R2FONTS to the appropriate compile line.
 #
 #
 # If you cannot get XMultiSync.c to compile, remove the -DMULTI_SYNC.
 # This will make multi-player games noticeably slower, though.
 #
 # If you want to restrict multi-player games to have all machines
 # on the same subnet of your network, add a -DCHECKNET.  Some sites
 # (and local InterNet NOCs) consider running xtank off the local subnet,
 # or over a campus or long-haul network a *bad thing*.  Xtank makes
 # a *lot* of network traffic, so be considerate of others.
 #
 #
 # If you are not able to get compile_module() to work in unix.c,
 # remove the -DDYNALOAD flag.  You will then not be able to add new
 # robot programs without recompiling.
 #
 # If you want to see some debugging information in unix.c,
 # add a -DDEBUG to the appropriate compile line.
 #
 #
 # If you need to use the auxiliary font add a -DNEED_AUX_FONT to the
 # correct compile line.

 # Start of System Dependent Things
 # (e.g. special options for your particular hardware and installation)

   ARCH_DEFINES = -DTHREAD_MP -DMOTOROLA  -DMULTI_SYNC # -DDYNALOAD
   XTANK_TARGET = xtank.next

 # End of System Dependent Things

    CDEBUGFLAGS = -g

           SRCS = tagman.c Bootlegger.c gnat.c                   drone.c warrior.c shooter.c eliza.c Buddy.c Flipper.c                   Dio.c Diophantine.c artful.c spot.c hud3.c kamikaze.c                   Pzkw_I.c dum_maze.c roadrunner.c runner.c Guard.c                   RacerX.c $(SRCS2)

           OBJS = tagman.o Bootlegger.o gnat.o                   drone.o warrior.o shooter.o eliza.o Buddy.o Flipper.o                   Dio.o Diophantine.o artful.o spot.o hud3.o kamikaze.o                   Pzkw_I.o dum_maze.o roadrunner.o runner.o Guard.o                   RacerX.o $(OBJS2)

 # Important things that robots want to find

 EXTRA_INCLUDES = -I. -I../Include

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

all:: libxtankrobots.a

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

install:: libxtankrobots.a
	$(INSTALL) -c $(INSTLIBFLAGS) libxtankrobots.a $(XTANK_DIR)/Lib
	$(RANLIB) $(RANLIBINSTFLAGS) $(XTANK_DIR)/Lib/libxtankrobots.a

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

emptyrule::

clean::
	$(RM_CMD) #*

Makefile::
	-@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) -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"

Makefiles::

includes::

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

