aboutsummaryrefslogtreecommitdiff
path: root/games/yamsweeper/files/Imakefile
blob: f51a37af2302bc637b7044858d1562e82fdc4113 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef XCOMM
#define XCOMM	#
#endif

XCOMM Imakefile src for Yamsweeper, created by hirofumi
XCOMM
XCOMM $Id: Imakefile,v 1.2 1996/09/22 08:56:07 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()