a0c749143d
Submitted by: Brock Tellier <btellier@usa.net>
85 lines
1.6 KiB
Plaintext
85 lines
1.6 KiB
Plaintext
#ifndef XCOMM
|
|
#define XCOMM #
|
|
#endif
|
|
|
|
XCOMM Imakefile src for Yamsweeper, created by hirofumi
|
|
XCOMM
|
|
XCOMM $FreeBSD$
|
|
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 1
|
|
#define cppHighScore 1
|
|
|
|
YAMSDIR = $(LIBDIR)/yamsweeper
|
|
LOGFILE = $(YAMSDIR)/yams.log
|
|
SCRFILE = $(YAMSDIR)/yams.hi
|
|
OWNER = root
|
|
GROUP = games
|
|
|
|
DEFINES = '-DLOGFILE="$(LOGFILE)"' -DLOG_USER=cppLogUser \ @@\
|
|
-DHAS_RANDOM=1 -DNO_FD_SET=0 \ @@\
|
|
-DHIGH_SCORE=cppHighScore '-DHIGH_SCORE_FILE="$(SCRFILE)"'
|
|
|
|
INSTALLDIR= $(BINDIR)
|
|
|
|
#if cppLogUser || cppHighScore
|
|
|
|
all:: yamsweeper
|
|
|
|
#ifdef SetUIDProgramTarget
|
|
/* X11R[56] */
|
|
SetUIDProgramTarget(yamsweeper,$(OBJS),$(DEPLIB),XawClientLibs,)
|
|
#else
|
|
/* X11R4 */
|
|
NormalProgramTarget(yamsweeper,$(OBJS),$(DEPLIB),XawClientLibs,)
|
|
#endif
|
|
|
|
InstallProgramWithFlags(yamsweeper,$(INSTALLDIR),$(INSTUIDFLAGS))
|
|
InstallManPage(yamsweeper,$(MANDIR))
|
|
|
|
install::
|
|
chown $(OWNER).$(GROUP) $(BINDIR)/yamsweeper
|
|
chmod 2755 $(BINDIR)/yamsweeper
|
|
|
|
|
|
#if cppLogUser
|
|
install::
|
|
MakeDir($(YAMSDIR))
|
|
chown $(OWNER).$(GROUP) $(YAMSDIR)
|
|
touch $(LOGFILE)
|
|
chown $(OWNER).$(GROUP) $(LOGFILE)
|
|
chmod 664 $(LOGFILE)
|
|
#endif /* cppLogUser */
|
|
|
|
#if cppHighScore
|
|
install::
|
|
MakeDir($(YAMSDIR))
|
|
chown $(OWNER).$(GROUP) $(YAMSDIR)
|
|
touch $(SCRFILE)
|
|
chown $(OWNER).$(GROUP) $(SCRFILE)
|
|
chmod 664 $(SCRFILE)
|
|
#endif
|
|
|
|
#else /* cppLogUser || cppHighScore */
|
|
|
|
ComplexProgramTarget(yamsweeper)
|
|
|
|
#endif
|
|
|
|
|
|
InstallAppDefaults(Yamsweeper)
|
|
|
|
|
|
|
|
#include "PACK"
|
|
|
|
DependTarget()
|