/*
 * (c) Copyright 1997, Qun Zhang.
 *
 * Permission to use, copy, modify, distribute, and sell this software
 * and its documentation for any purpose is hereby granted without fee,
 * provided that the above copyright notice appear in all copies and
 * that both that copyright notice and this permission notice appear in
 * supporting documentation, and that the name of Qun Zhang not be used
 * in advertising or publicity pertaining to distribution of the software
 * without specific, written prior permission.  Qun Zhang make no
 * representations about the suitability of this software for any purpose.
 * It is provided "as is" without express or implied warranty.
 *
 * THE ABOVE-NAMED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 * EVENT SHALL THE ABOVE-NAMED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 */

#ifndef CaribbeanStudCCCompile
#define CaribbeanStudCCCompile(options) $(CCC) -c $(CCFLAGS) options *.cpp
#endif

#ifndef CaribbeanStudProgramTarget
#define  CaribbeanStudProgramTarget(program,objects,deplibs,locallibs,syslibs)  @@\
program: objects deplibs         @@\
   RemoveTargetProgram($@)       @@\
   $(CCC) $(CCFLAGS) -o $@ objects $(LDOPTIONS) locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS)                  @@\
   DependTarget()                @@\
clean::                          @@\
   $(RM) program
#endif /* CaribbeanStudProgramTarget */
  
PROG = CaribbeanStud
DEPEND = makedepend

XINCLUDES= -I/opt/SUNWmotif/include -I/usr/dt/include \
              -I/usr/openwin/include -I/usr/openwin/include/X11

XLIBS= -L/opt/SUNWmotif/lib -L/usr/dt/lib -L/usr/openwin/lib

UILFLAGS=-I/usr/include/uil -I/usr/dt/include/uil -I/opt/SUNWmotif/share/include/uil

EXTRA_INCLUDES =  -I/opt/SUNWspro/SC4.0/include/CC ${XINCLUDES} ${UILFLAGS} 

EXTRA_LIBRARIES = -lXm -lXmu -lXt -lX11 -lgen
EXTRA_LDOPTIONS = -xildon 

#define DebugOn NO
#if  DebugOn
  CDEBUGFLAGS = -g -DDEBUG
#else
  CDEBUGFLAGS =
#endif

CCCOPTIONS = $(CDEBUGFLAGS)
CCOPTIONS =

HEADERS = \
   Card.h        \
   Dealer.h   \
   Deck.h        \
   Hands.h       \
   Player.h     \
   Seat.h       \
   Table.h

SRCS = CaribbeanStud.cpp \
	Card.cpp    	 \
	Dealer.cpp	 \
	Deck.cpp    	 \
	Hands.cpp   	 \
	Player.cpp  	\
	Seat.cpp    	\
	Table.cpp 

OBJS = Card.o    	 \
	Dealer.o	 \
	Deck.o    	 \
	Hands.o   	 \
	Player.o  	\
	Seat.o    	\
	Table.o		\
	CaribbeanStud.o 

OTHERS = \
   Imakefile \
   $(PROG).res \
   README
 

AllTarget($(PROG))
CaribbeanStudProgramTarget(CaribbeanStud, $(OBJS), NullParameter,NullParameter,NullParameter)

Install:
	$(MAKE) $(MFLAGS) Makefile
	$(MAKE) $(MFLAGS) clean
	$(MAKE) $(MFLAGS) includes
	$(MAKE) $(MFLAGS) depend
	$(MAKE) $(MFLAGS) all
	@echo ""
 

.SUFFIXES:	.cpp $(SUFFIXES)
.cpp.o:	@@ $(COMPILE.cc) $(OUTPUT_OPTION) $<
