home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
games
/
volume13
/
xsokoban
/
part01
/
makefile
< prev
next >
Wrap
Makefile
|
1992-01-12
|
1KB
|
47 lines
PARALLEL = # &
CCOPT= -O
OBJECTS= sok.o readscreen.o showscreen.o play.o save.o score.o initx.o
CC = cc
INCLUDE = -I/usr/X11R5/include
sokoban: $(PARALLEL) $(OBJECTS)
$(CC) $(CCOPT) -o sokoban $(OBJECTS) -lX11
install: sokoban
cp sokoban /usr/games/sokoban
chmod 4711 /usr/games/sokoban
-mkdir /usr/games/lib/sokoban
-mkdir /usr/games/lib/sokoban/screens
-mkdir /usr/games/lib/sokoban/save
cp screen.* /usr/games/lib/sokoban/screens
@echo "\007"
@echo "Login as games, and \"sokoban -c\" to generate new score file"
local: sokoban
cp sokoban /u/s7/staff/kevins/bin/xsokoban
chmod 4755 /u/s7/staff/kevins/bin/xsokoban
chown games /u/s7/staff/kevins/bin/xsokoban
chgrp games /u/s7/staff/kevins/bin/xsokoban
clean:
rm -f *.o sokoban
sok.o: sok.c sokoban.h
$(CC) $(CCOPT) -c sok.c
readscreen.o: readscreen.c sokoban.h
$(CC) $(CCOPT) -c readscreen.c
showscreen.o: showscreen.c
$(CC) $(CCOPT) -c showscreen.c
play.o: play.c sokoban.h
$(CC) $(CCOPT) $(INCLUDE) -c play.c
save.o: save.c sokoban.h
$(CC) $(CCOPT) -c save.c
score.o: score.c sokoban.h
$(CC) $(CCOPT) -c score.c
initx.o: initx.c sokoban.h obj.h initx.h
$(CC) $(CCOPT) $(INCLUDE) -c initx.c