home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume13
/
perp
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-08-03
|
963b
|
51 lines
# compiler flags
CC = gcc
CFLAGS = -O
LDFLAGS = -s
LIBS = -lcurses -ltermcap
# directories
BINDIR = /dcs/89/rince/open/bin.$(ARCH)
LIBDIR = /dcs/89/rince/open/lib/perp
MANDIR = /dcs/89/rince/open/man
# files
MAPFILE = map
SPRFILE = spr
DEFS = -DMAPFILE=\"$(LIBDIR)/$(MAPFILE)\"\
-DSPRFILE=\"$(LIBDIR)/$(SPRFILE)\"
perp: perp.c perp.h
$(CC) $(CFLAGS) $(DEFS) $(LDFLAGS) $@.c -o $@ $(LIBS)
obfus: obfus.c
$(CC) -O -s obfus.c -o obfus -lcurses -ltermcap
spr: spr.expand
shrink_spr < spr.expand > spr
perp.c: perp.h
install: perp perp.6 spr
# the game
-mkdir -p $(BINDIR)
chmod a+xr $(BINDIR)
-cp perp $(BINDIR)
chmod a+x $(BINDIR)/perp
# the data files
-mkdir -p $(LIBDIR)
chmod a+xr $(LIBDIR)
-cp $(MAPFILE) $(SPRFILE) $(LIBDIR)
chmod a+r $(LIBDIR)/$(MAPFILE) $(LIBDIR)/$(SPRFILE)
# the man page
-mkdir -p $(MANDIR)/man6
chmod a+xr $(MANDIR)/man6
-cp perp.6 $(MANDIR)/man6
chmod a+r $(MANDIR)/man6/perp.6
clean:
-rm perp spr *~