#ifndef XCOMM
#define XCOMM	#
#endif

XCOMM Imakefile src for Yamsweeper, created by hirofumi
XCOMM
XCOMM $Id: imake.src,v 1.6 1994/10/19 20:27:05 hirofumi Rel hirofumi $
XCOMM

#include "REVISION"

        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
        HEADERS = bmps.h gentype.h struct.h funcs.h highscore.h
           SRCS = version.c main.c win.c bmps.c highscore.c
OBJS = $(SRCS:.c=.o)

#define cppLogUser	xxLogUser
#define cppHighScore	xxHighScore

LOGDIR = /usr/local/.log/game
LOGFILE = $(LOGDIR)/yams.log


DEFINES = '-DLOGFILE="$(LOGFILE)"' -DLOG_USER=cppLogUser \ @@\
	-DHAS_RANDOM=xxHasRandom -DNO_FD_SET=xxNoFdSet \ @@\
	-DHIGH_SCORE=cppHighScore '-DHIGH_SCORE_FILE="xxHighScoreFile"'

INSTALLDIR=xxLMPlace


#if cppLogUser || cppHighScore

#ifdef SetUIDProgramTarget
	/* X11R[56] */
SetUIDProgramTarget(yamsweeper,$(OBJS),$(DEPLIB),XawClientLibs,)
#else
	/* X11R4 */
NormalProgramTarget(yamsweeper,$(OBJS),$(DEPLIB),XawClientLibs,)
#endif

InstallProgramWithFlags(yamsweeper,$(INSTALLDIR),$(INSTUIDFLAGS))
InstallManPage(yamsweeper,xxManPlace)

#if cppLogUser
install::
	MakeDir($(LOGDIR))
	touch $(LOGFILE)
#endif	/* cppLogUser */

#if cppHighScore
install::
	MakeDir(xxHighScoreFileDir)
#endif

#else	/* cppLogUser || cppHighScore */

ComplexProgramTarget(yamsweeper)

#endif


InstallAppDefaults(Yamsweeper)



#include "PACK"

DependTarget()
