1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/games/yamsweeper/files/Imakefile
1999-08-29 11:32:39 +00:00

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 = games
GROUP = bin
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 4755 $(BINDIR)/yamsweeper
#if cppLogUser
install::
MakeDir($(YAMSDIR))
chown $(OWNER).$(GROUP) $(YAMSDIR)
touch $(LOGFILE)
chown $(OWNER).$(GROUP) $(LOGFILE)
chmod 644 $(LOGFILE)
#endif /* cppLogUser */
#if cppHighScore
install::
MakeDir($(YAMSDIR))
chown $(OWNER).$(GROUP) $(YAMSDIR)
touch $(SCRFILE)
chown $(OWNER).$(GROUP) $(SCRFILE)
chmod 644 $(SCRFILE)
#endif
#else /* cppLogUser || cppHighScore */
ComplexProgramTarget(yamsweeper)
#endif
InstallAppDefaults(Yamsweeper)
#include "PACK"
DependTarget()