

# Copyright (c) 1991    Jon Wesener 
# Gaming Software
#
# Permission to use, copy, modify, and distribute this
# software and its documentation for any purpose and without
# fee is hereby granted, provided that the above copyright
# notice appear in all copies and that both that copyright
# notice and this permission notice appear in supporting
# documentation.  No representations are made about the
# suitability of this software for any purpose.  It is
# provided "as is" without express or implied warranty.


#ident	"@(#)Imakefile	1.12 :/usr/key/jojow/X/src/guts/SCCS/s.Imakefile 3/19/91 10:16:40 "

DEFINES = -DX11
LIBS1 = $(XLIB)

BIN3 = /usr2/os/jojo/bin/bin3
XBIN3 = $(BIN3)/X11
BIN4 = /usr2/os/jojo/bin/bin4
XBIN4 = $(BIN4)/X11

PROGRAMS = tank tankserver tankbif
SRCS1 = client.c bits.c tankmsg_clnt.c
SRCS2 = server.c heat.c tank.c shell.c mine.c expl.c pow.c tankmsg_svc.c bon.c
SRCS3 = bif.c bits.c tankmsg_clnt.c
OBJS1 = client.o bits.o tankmsg_clnt.o
OBJS2 = server.o heat.o tank.o shell.o mine.o expl.o pow.o tankmsg_svc.o bon.o
OBJS3 = bif.o bits.o tankmsg_clnt.o

AllTarget($(PROGRAMS))
SingleProgramTarget(tank,$(OBJS1),,$(LIBS1))
SingleProgramTarget(tankserver,$(OBJS2),,)
SingleProgramTarget(tankbif,$(OBJS3),,$(LIBS1))

client.o server.o bif.o : tankmsg.h tank.h
server.o expl.o pow.o tank.o shell.o mine.o bon.o : server.h
client.o : client.h
bif.o : bif.h
bits.o : bits.h

install3:
	rm -f $(BIN3)/stankserver $(XBIN3)stank $(XBIN3)/stankbif
	cp tankserver $(BIN3)/stankserver
	cp tank $(XBIN3)/stank
	cp tankbif $(XBIN3)/stankbif
	chmod 755 $(BIN3)/stankserver $(XBIN3)/stank $(XBIN3)/stankbif

install4:
	rm -f $(BIN4)/stankserver $(XBIN4)stank $(XBIN4)/stankbif
	cp tankserver $(BIN4)/stankserver
	cp tank $(XBIN4)/stank
	cp tankbif $(XBIN4)/stankbif
	chmod 755 $(BIN4)/stankserver $(XBIN4)/stank $(XBIN4)/stankbif
