#*
#* ------------------------------------------------------------------
#* Makefile - Makefile for RPGwish
#* Created by Robert Heller on Mon Jul 31 20:48:19 1995
#* ------------------------------------------------------------------
#* Contents:
#* ------------------------------------------------------------------
#*  
#*     Role Playing Database -- a program for maintaining a database
#*                              for RPG characters and monsters
#*     Copyright (C) 1995  Robert Heller D/B/A Deepwoods Software
#* 			51 Locke Hill Road
#* 			Wendell, MA 01379-9728
#* 
#*     This program is free software; you can redistribute it and/or modify
#*     it under the terms of the GNU General Public License as published by
#*     the Free Software Foundation; either version 2 of the License, or
#*     (at your option) any later version.
#* 
#*     This program is distributed in the hope that it will be useful,
#*     but WITHOUT ANY WARRANTY; without even the implied warranty of
#*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#*     GNU General Public License for more details.
#* 
#*     You should have received a copy of the GNU General Public License
#*     along with this program; if not, write to the Free Software
#*     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#* 
#*  
#*
# Edit the next two lines to reflect where the Tcl/Tk include files are
# and where the Tcl/Tk libraries and X11 libraries.
# (Under Linux, the Tcl/Tk include files are under /usr/include/tcl and 
# the libraries are in /usr/lib and /usr/lib/X11 and these paths are built
# into the linker's default search list.)
CXXFLAGS = -g -I. -I/usr/include/tcl  -c -Wall
LFLAGS = -g -lg++ -ltkx -ltclx -ltk -ltcl -lX11 -lm  
BIN = ../bin
PROGRAM = RPGwish
DEPLIBS = 
CXX = gcc

SRCS = tkAppInit.cc  tkMain.cc Character.cc Dice.cc Monster.cc Master.cc \
	Bitmaps.cc CharacterLists.cc MonsterLists.cc DressingLists.cc \
	TreasureLists.cc TrickLists.cc Space.cc
XBMS = Center.xbm Down.xbm DownLeft.xbm DownRight.xbm Up.xbm UpLeft.xbm \
	UpRight.xbm door.xbm doorlocked.xbm dooroneway.xbm doorsecret.xbm \
	rampdown.xbm rampup.xbm stairsdown.xbm stairsup.xbm Left.xbm Right.xbm
HEADERS = Character.h Dice.h Monster.h Master.h RPGDict.h $(XBMS)
OBJS = tkAppInit.o   tkMain.o  Character.o  Dice.o  Monster.o Master.o \
	Bitmaps.o CharacterLists.o MonsterLists.o DressingLists.o \
	TreasureLists.o TrickLists.o Space.o

$(BIN)/$(PROGRAM) : $(OBJS) $(DEPLIBS)
	$(CXX) $(OBJS) $(LFLAGS) -o $(BIN)/$(PROGRAM) 

.depend depend dep: $(SRCS) $(HEADERS)
	$(CPP) -M $(CXXFLAGS) $(SRCS) > .depend

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif


