1/*
2 * (c) Copyright 1997, Qun Zhang.
3 *
4 * Permission to use, copy, modify, distribute, and sell this software
5 * and its documentation for any purpose is hereby granted without fee,
6 * provided that the above copyright notice appear in all copies and
7 * that both that copyright notice and this permission notice appear in
8 * supporting documentation, and that the name of Qun Zhang not be used
9 * in advertising or publicity pertaining to distribution of the software
10 * without specific, written prior permission.  Qun Zhang make no
11 * representations about the suitability of this software for any purpose.
12 * It is provided "as is" without express or implied warranty.
13 *
14 * THE ABOVE-NAMED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE ABOVE-NAMED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
18 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
21 *
22 */
23
24#ifndef CaribbeanStudCCCompile
25#define CaribbeanStudCCCompile(options) $(CCC) -c $(CCFLAGS) options *.cpp
26#endif
27
28#ifndef CaribbeanStudProgramTarget
29#define  CaribbeanStudProgramTarget(program,objects,deplibs,locallibs,syslibs)  @@\
30program: objects deplibs         @@\
31   RemoveTargetProgram($@)       @@\
32   $(CCC) $(CCFLAGS) -o $@ objects $(LDOPTIONS) locallibs $(LDLIBS) syslibs $(EXTRA_LOAD_FLAGS)                  @@\
33   DependTarget()                @@\
34clean::                          @@\
35   $(RM) program
36#endif /* CaribbeanStudProgramTarget */
37
38PROG = CaribbeanStud
39DEPEND = makedepend
40
41XINCLUDES= -I/opt/SUNWmotif/include -I/usr/dt/include \
42              -I/usr/openwin/include -I/usr/openwin/include/X11
43
44XLIBS= -L/opt/SUNWmotif/lib -L/usr/dt/lib -L/usr/openwin/lib
45
46UILFLAGS=-I/usr/include/uil -I/usr/dt/include/uil -I/opt/SUNWmotif/share/include/uil
47
48EXTRA_INCLUDES =  -I/opt/SUNWspro/SC4.0/include/CC ${XINCLUDES} ${UILFLAGS}
49
50EXTRA_LIBRARIES = -lXm -lXmu -lXt -lX11 -lgen
51EXTRA_LDOPTIONS = -xildon
52
53#define DebugOn NO
54#if  DebugOn
55  CDEBUGFLAGS = -g -DDEBUG
56#else
57  CDEBUGFLAGS =
58#endif
59
60CCCOPTIONS = $(CDEBUGFLAGS)
61CCOPTIONS =
62
63HEADERS = \
64   Card.h        \
65   Dealer.h   \
66   Deck.h        \
67   Hands.h       \
68   Player.h     \
69   Seat.h       \
70   Table.h
71
72SRCS = CaribbeanStud.cpp \
73	Card.cpp    	 \
74	Dealer.cpp	 \
75	Deck.cpp    	 \
76	Hands.cpp   	 \
77	Player.cpp  	\
78	Seat.cpp    	\
79	Table.cpp
80
81OBJS = Card.o    	 \
82	Dealer.o	 \
83	Deck.o    	 \
84	Hands.o   	 \
85	Player.o  	\
86	Seat.o    	\
87	Table.o		\
88	CaribbeanStud.o
89
90OTHERS = \
91   Imakefile \
92   $(PROG).res \
93   README
94
95
96AllTarget($(PROG))
97CaribbeanStudProgramTarget(CaribbeanStud, $(OBJS), NullParameter,NullParameter,NullParameter)
98
99Install:
100	$(MAKE) $(MFLAGS) Makefile
101	$(MAKE) $(MFLAGS) clean
102	$(MAKE) $(MFLAGS) includes
103	$(MAKE) $(MFLAGS) depend
104	$(MAKE) $(MFLAGS) all
105	@echo ""
106
107
108.SUFFIXES:	.cpp $(SUFFIXES)
109.cpp.o:	@@ $(COMPILE.cc) $(OUTPUT_OPTION) $<
110