# 1 ""


# 1 "/usr/lib/X11/config/Imake.tmpl" 1
 



 ###########################################################################
 # 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).
 #






 


















# 59 "/usr/lib/X11/config/Imake.tmpl"












 




























































































 











# 193 "/usr/lib/X11/config/Imake.tmpl"











 






 ###########################################################################
 # platform-specific configuration parameters - edit next.cf  to change
# 1 "/usr/lib/X11/config/next.cf" 1
 












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

 



 
 















 





# 213 "/usr/lib/X11/config/Imake.tmpl" 2


 ###########################################################################
 # site-specific configuration parameters - edit site.def to change
# 1 "/usr/lib/X11/config/site.def" 1
 # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $

 





































 



 








 








 








 








 









 





 
































 
















# 217 "/usr/lib/X11/config/Imake.tmpl" 2


 

















































































































































































































# 439 "/usr/lib/X11/config/Imake.tmpl"



























































































































            SHELL = /bin/sh 

              TOP = ../. 
      CURRENT_DIR = ./Src 

               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)




 



# 1 "/usr/lib/X11/config/Project.tmpl" 1
 ###########################################################################
 # X Window System Build Parameters
 # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $

 










 










































































































































































































































































































# 323 "/usr/lib/X11/config/Project.tmpl"














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

# 679 "/usr/lib/X11/config/Imake.tmpl" 2




# 1 "/usr/lib/X11/config/Imake.rules" 1
 ###########################################################################
 # 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 $

 










































































































 




# 125 "/usr/lib/X11/config/Imake.rules"
























 















 








 














 







# 214 "/usr/lib/X11/config/Imake.rules"



 








# 245 "/usr/lib/X11/config/Imake.rules"



 







# 264 "/usr/lib/X11/config/Imake.rules"



 







# 283 "/usr/lib/X11/config/Imake.rules"




 




# 301 "/usr/lib/X11/config/Imake.rules"





 









 








 









 










 










 









 













 








 










 










 










 










 










 














 









 










 









 









 
















 






# 534 "/usr/lib/X11/config/Imake.rules"




 












 











 










 






# 591 "/usr/lib/X11/config/Imake.rules"




 






# 610 "/usr/lib/X11/config/Imake.rules"




 








 

















 





# 660 "/usr/lib/X11/config/Imake.rules"



 





# 682 "/usr/lib/X11/config/Imake.rules"



 





# 709 "/usr/lib/X11/config/Imake.rules"



 





# 731 "/usr/lib/X11/config/Imake.rules"


 





# 757 "/usr/lib/X11/config/Imake.rules"


 





# 776 "/usr/lib/X11/config/Imake.rules"


 





# 792 "/usr/lib/X11/config/Imake.rules"




 










 





# 821 "/usr/lib/X11/config/Imake.rules"



 





# 838 "/usr/lib/X11/config/Imake.rules"



 





# 858 "/usr/lib/X11/config/Imake.rules"



 













 






# 892 "/usr/lib/X11/config/Imake.rules"



 






# 911 "/usr/lib/X11/config/Imake.rules"







 















 














 














 












 













 














 














 













 











 








 














# 1084 "/usr/lib/X11/config/Imake.rules"



 














 

















 









 








 








 








 













 












 









 









 








 







# 1243 "/usr/lib/X11/config/Imake.rules"



 




# 1286 "/usr/lib/X11/config/Imake.rules"



 










 












# 1321 "/usr/lib/X11/config/Imake.rules"




 









 









 














 











 









 









 












 






# 683 "/usr/lib/X11/config/Imake.tmpl" 2


 ###########################################################################
 # start of Imakefile
# 1 "./Imakefile" 1
 #
 # Imakefile for ./Src - part of the UMDENG X-Tank distribution
 #
 # $Id: Imakefile,v 1.26 1992/02/06 07:57:38 lidl Exp $
 #

# 1 "./../Imakefile.Config" 1



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

 









 












# 7 "./Imakefile" 2


      CDEBUGFLAGS = -g
          DEPLIBS = $(DEPXLIB)
  LOCAL_LIBRARIES = $(XLIB)
             SRCS = 3d.c XMultiSync.c actions.c animate.c box.c collision.c                     console.c cosell.c display.c escher.c explosion.c                     file.c game.c gr.c graphics.c highlib.c hit.c icounter.c                     init.c input.c interface.c intersect.c lowlib.c main.c                     malloc.c mapper.c maze.c mdesign.c menu.c message.c                     objects.c program.c radar.c repair.c scroll.c setup.c                     setups.c status.c sysdep.c thread.c unix.c update.c                     util.c vdesign.c vehicle.c newfile.c vload.c                     version.c $(SRCS2)
# 21 "./Imakefile"
             OBJS = 3d.o XMultiSync.o actions.o animate.o box.o collision.o                     console.o cosell.o display.o escher.o explosion.o                     file.o game.o gr.o graphics.o highlib.o hit.o icounter.o                     init.o input.o interface.o intersect.o lowlib.o main.o                     malloc.o mapper.o maze.o mdesign.o menu.o message.o                     objects.o program.o radar.o repair.o scroll.o setup.o                     setups.o status.o sysdep.o thread.o unix.o update.o                     util.o vdesign.o vehicle.o newfile.o vload.o                     version.o $(OBJS2)
# 30 "./Imakefile"
             INCL = Include/bullet.h Include/common.h Include/cosell.h                     Include/disc.h Include/game.h Include/globals.h                     Include/gr.h Include/graphics.h Include/icounter.h                     Include/interface.h Include/limits.h Include/loc.h                     Include/lowlib.h Include/malloc.h Include/map.h                     Include/maze.h Include/mdesign.h Include/menu.h                     Include/message.h Include/object.h Include/outpost.h                     Include/program.h Include/screen.h Include/scroll.h                     Include/settings.h Include/setup.h Include/special-defs.h                     Include/special.h Include/sysdep.h Include/team.h                     Include/terminal.h Include/thread.h Include/tread-defs.h                     Include/types.h Include/vdesc.h Include/vehicle.h                     Include/vehicleparts.h Include/vstructs.h                     Include/weapon-defs.h Include/xtank.h Include/xtanklib.h
# 44 "./Imakefile"
            XINCL = Include/Xlibos.h Include/x11.h

 # Note that both x11.c and mazeconv.c are included in other .c files,
 # so they are not listed above!

 # Important things that Xtank wants to find

   EXTRA_INCLUDES = -I. -IInclude

 # Everybody needs the following libraries

  EXTRA_LIBRARIES = -LPrograms -lxtankrobots




 # Start of System Dependent Things
 # (e.g. libraries, linker flags and so forth)































# 101 "./Imakefile"












 # End of System Dependent Things







          SUBDIRS = Programs

					@@	@@all::									@@	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \			@@	for i in $(SUBDIRS) ;\						@@	do \								@@	(cd $$i ; echo "making" all "in $(CURRENT_DIR)/$$i..."; \	@@	$(MAKE) $(MFLAGS)   all); \		@@	done   

all::
	$(RM) version.c

				@@ PROGRAM = $(XTANK_TARGET)						@@	@@					@@all:: $(XTANK_TARGET) 							@@	@@$(XTANK_TARGET): $(OBJS) $(DEPLIBS)						@@	$(RM) $@ 						@@	$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@	@@ 	@@	@@				@@		@@install:: $(XTANK_TARGET)							@@	$(INSTALL) -c $(INSTPGMFLAGS)    $(XTANK_TARGET) $(BINDIR)  					@@				@@			@@install.man:: $(XTANK_TARGET).man							@@	$(INSTALL) -c $(INSTMANFLAGS) $(XTANK_TARGET).man $(MANDIR)/$(XTANK_TARGET).n		  					@@						@@ 							@@	@@depend::								@@	$(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS) 								@@						@@				@@lint:									@@	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)			@@lint1:									@@	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)  								@@	@@clean::									@@	$(RM) $(PROGRAM) 

		@@init.o:    init.c								@@	$(RM) $@							@@	$(CC) $(ALLDEFINES) -c  -g $*.c 

setups.c: setups.l
	flex -t setups.l > $@
	@-chmod 664 $@ 2>/dev/null

vload.c: vload.l
	flex -t vload.l | sed 's/yy/zz/g' > $@
	@-chmod 664 $@ 2>/dev/null

version.c:
	@echo -n "Updating version number..."
	@../Bin/newversion.sh $(XTANK_TARGET)
	@echo " Done."

copyout:
	co $(SRCS) $(INCL)

all::
	@-chgrp xtank *.o 2>/dev/null
	@-chmod 664 *.o 2>/dev/null

 #prof:
 #	$(COMPILE.c) -O -pg $(SRCS)
 #	$(LINK.c) -O -pg -o xtank.sun4.prof $(OBJS) $(LIBSUN)

 #lint: $(SRCS)
 #	$(LINT.c) $(SRCS) | grep -v "possible pointer alignment problem"

print:
	enscript -2rG Makefile $(INCL) $(SRCS) x11.c

TAGS: $(INCL) $(SRCS) $(XINCL) $(XSRCS) x11.c
	etags -t $(INCL) $(XINCL) $(SRCS) $(XSRCS) x11.c
# 687 "/usr/lib/X11/config/Imake.tmpl" 2


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














 ###########################################################################
 # rules for building in SUBDIRS - do not edit

	@@install::									@@	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \			@@	for i in $(SUBDIRS) ;\						@@	do \								@@	(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \	@@	$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \		@@	done  
	@@install.man::									@@	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \			@@	for i in $(SUBDIRS) ;\						@@	do \								@@	(cd $$i ; echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \	@@	$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.man); \		@@	done  
	@@clean::									@@	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \			@@	for i in $(SUBDIRS) ;\						@@	do \								@@	(cd $$i ; echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \	@@	$(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' clean); \		@@	done   
	@@tags::									@@	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \			@@	for i in $(SUBDIRS) ;\						@@	do \								@@	(cd $$i ; echo "tagging" "in $(CURRENT_DIR)/$$i..."; \	@@	$(MAKE) $(MFLAGS) TAGS='$(TAGS)' tags); \		@@	done   
					@@				@@Makefiles::								@@	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \			@@	for i in $(SUBDIRS) ;\						@@	do \								@@	echo "making Makefiles in $(CURRENT_DIR)/$$i..."; \	@@	case "$$i" in \						@@	./?*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \	@@	./?*/?*/?*) newtop=../../../ sub=subsubsub;; \		@@	./?*/?*)    newtop=../../ sub=subsub;; \		@@	./?*)       newtop=../ sub=sub;; \			@@	*/?*/?*/?*)    newtop=../../../../ sub=subsubsubsub;; \	@@	*/?*/?*)    newtop=../../../ sub=subsubsub;; \		@@	*/?*)       newtop=../../ sub=subsub;; \		@@	*)	    newtop=../ sub=sub;; \			@@	esac; \							@@	case "$(TOP)" in \					@@	/?*) newtop=  upprefix=  ;; \				@@	*) upprefix=../ ;; \					@@	esac; \							@@	$(MAKE) $${sub}dirMakefiles UPPREFIX=$$upprefix NEWTOP=$$newtop \		@@	MAKEFILE_SUBDIR=$$i NEW_CURRENT_DIR=$(CURRENT_DIR)/$$i;\ @@	done 						@@	@@					@@subdirMakefiles:							@@	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak				@@	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \			@@	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@	else exit 0; fi							@@	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \	@@	$(MAKE) $(MFLAGS) Makefiles 					@@	@@subsubdirMakefiles:							@@	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak				@@	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \			@@	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@	else exit 0; fi							@@	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \	@@	$(MAKE) $(MFLAGS) Makefiles 					@@	@@subsubsubdirMakefiles:							@@	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak				@@	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \			@@	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@	else exit 0; fi @@	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \	@@	$(MAKE) $(MFLAGS) Makefiles 					@@	@@subsubsubsubdirMakefiles:						@@	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak				@@	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \			@@	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@	else exit 0; fi 						@@	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \	@@	$(MAKE) $(MFLAGS) Makefiles  
	@@includes::									@@	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \			@@	for i in $(SUBDIRS) ;\						@@	do \								@@	(cd $$i ; echo including "in $(CURRENT_DIR)/$$i..."; \	@@	$(MAKE) $(MFLAGS)    includes); \		@@	done  

# 742 "/usr/lib/X11/config/Imake.tmpl"


 ###########################################################################
 # dependencies generated by makedepend
# 3 "" 2

