mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
563a6d3afa
Submitted by: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
85 lines
1.7 KiB
Plaintext
85 lines
1.7 KiB
Plaintext
#ifndef XCOMM
|
|
#define XCOMM #
|
|
#endif
|
|
|
|
XCOMM Imakefile src for Yamsweeper, created by hirofumi
|
|
XCOMM
|
|
XCOMM $Id: Imakefile,v 1.1.1.1 1996/09/21 16:56:46 max Exp $
|
|
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()
|