XCOMM X-BASED HEXAGONS
XCOMM
XCOMM	Imakefile
XCOMM
XCOMM ##
XCOMM
XCOMM Copyright (c) 1994 - 95 	David Albert Bagley, bagleyd@source.asset.com
XCOMM
XCOMM			All Rights Reserved
XCOMM
XCOMM Permission to use, copy, modify, and distribute this software and
XCOMM its documentation for any purpose and without fee is hereby granted,
XCOMM provided that the above copyright notice appear in all copies and
XCOMM that both that copyright notice and this permission notice appear in
XCOMM supporting documentation, and that the name of the author not be
XCOMM used in advertising or publicity pertaining to distribution of the
XCOMM software without specific, written prior permission.
XCOMM
XCOMM This program is distributed in the hope that it will be "playable",
XCOMM but WITHOUT ANY WARRANTY; without even the implied warranty of
XCOMM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
XCOMM

XCOMM Set "RANDOM" to:
XCOMM	-DHAS_RAND48	if has lrand48() and srand48()
XCOMM	-DHAS_RANDOM	if has random() and srandom()
XCOMM	-DHAS_RAND	if has rand() and srand()
XCOMM			otherwise, I will guess conservatively
XCOMM RANDOM		= -DHAS_RAND48

XCOMM Set your C compiler if necessary
XCOMM CC		= gcc -g -DDEBUG -Wall
XCOMM CC		= gcc -O

wIDGET		= hexagons
WIDGET		= Hexagons

SCOREFILE	= ./${wIDGET}.scores
DATAFILE	= ./${wIDGET}.data

XCOMM #############################################################

DEFINES		= -I. -DSCOREFILE=\"${SCOREFILE}\" -DDATAFILE=\"${DATAFILE}\"\
	${RANDOM}
LOCAL_LIBRARIES	= ${XTOOLLIB} ${XLIB}
SRCS		= rngs.c ${WIDGET}.c ${WIDGET}U.c x${wIDGET}.c
OBJS		= rngs.o ${WIDGET}.o ${WIDGET}U.o x${wIDGET}.o
PROGRAMS	= x${wIDGET}

ComplexProgramTarget(${PROGRAMS})

${WIDGET}.o: ${WIDGET}.c ${WIDGET}P.h ${WIDGET}.h
${WIDGET}U.o: ${WIDGET}U.c ${WIDGET}P.h ${WIDGET}.h
x${wIDGET}.o: x${wIDGET}.c ${WIDGET}.h

clean.all::	clean
	${RM} Makefile
