home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume8
/
castle
/
part04
/
Makefile
< prev
Wrap
Makefile
|
1990-02-23
|
878b
|
33 lines
# Makefile for castle
FLAGS = -O
BIN = /usr/games
FILES = /usr/games/lib/castle
#
# define RANDOM if you have the bsd random() routines. Define LRAND48
# if you have the SysV lrand48()
#
# This may look funny with a single " in the line below, but that's
# the way it must be. The closing " is part of the text in castle.h.
#
DEFINES = -DGAME_HOURS -DFILES=\"$(FILES) -DRANDOM
CFLAGS = ${FLAGS} ${DEFINES}
# Change this as necessary for SysV, etc. (e.g. -ltermlib)
LIBS = -lcurses -ltermcap
SOURCES = castle.c magic.c monster.c files.c store.c
OBJS = castle.o magic.o monster.o files.o store.o screens.o
castle: $(OBJS)
${CC} ${CFLAGS} -o castle ${OBJS} ${LIBS}
clean:
/bin/rm -f castle $(OBJS)
install: castle
/bin/strip castle
-mkdir $(FILES)
cp FILES/* $(FILES)
/bin/mv castle $(BIN)
/bin/chmod 4111 $(BIN)/castle
cp /dev/null $(FILES)/scores