home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume4
/
game_reg
/
Makefile
< prev
next >
Wrap
Makefile
|
1986-11-30
|
2KB
|
74 lines
#
# Makefile for Game Regulator.
#
# $Header: Makefile,v 1.1 86/05/05 13:13:34 mcooper Exp $
#
#
# GAMEDIR - This is where the symbolic links are to be placed.
# Should be /usr/games.
#
GAMEDIR = /usr/games
#
# HIDEDIR - Name of directory to hide the actual executables
#
HIDEDIR = $(GAMEDIR)/.hide
#
# GROUP - This group has read/execute permissions on HIDEDIR and owns
# the Game Regulator which is setgid to GROUP.
#
GROUP = play
#
# NAME - Name of Game Regulator in GAMEDIR. I have it set to ".gr"
# so it doesn't show up with ls(1) by default.
#
NAME = .gr
#
# GAMES - The games in the original GAMEDIR to be put under regulation.
#
GAMES = adventure backgammon btlgammon canfield chess cribbage fish\
hangman mille monop rain rogue sail snake teachgammon trek \
worm worms wump zork
OBJS = gr.o logfile.o
gr: $(OBJS)
cc -s $(OBJS) -o gr
dbx: $(OBJS)
cc -g $(OBJS) -o gr -llocal
.c.o:
cc -c $*.c
$(OBJS): gr.h
install: gr
install -m 2751 -g $(GROUP) gr $(GAMEDIR)/$(NAME)
create:
-mkdir $(HIDEDIR)
chgrp $(GROUP) $(HIDEDIR)
chmod 770 $(HIDEDIR)
cp gr.control $(GAMEDIR)/lib
touch $(GAMEDIR)/lib/gr.log
chgrp $(GROUP) $(GAMEDIR)/lib/gr.control $(GAMEDIR)/lib/gr.log
chmod 664 $(GAMEDIR)/lib/gr.control $(GAMEDIR)/lib/gr.log
dolink: dolink.sh
sed s#HIDEDIR#$(HIDEDIR)# dolink.sh |\
sed s#GAMEDIR#$(GAMEDIR)# |\
sed s#NAME#$(NAME)# > dolink
chmod +x dolink
dolink $(GAMES)
clean:
rm -f *.o log dolink
shar:
shar README Makefile gr.control *.[ch] > shar.out