home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
games
/
volume13
/
okbridge
/
part07
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-01-12
|
3KB
|
105 lines
# makefile for Okbridge 1.5
#
# Matthew Clegg.
#
# In general the okbridge program can be compiled simply by
# typing 'make'. If you are planning to install okbridge in
# a public directory, then you may want to first change the
# values of the variables OKBRIDGE_DIR and OKBRIDGE_HELPFILE.
# Then, type 'make install'.
OKBRIDGE_DIR = /usr/local/games
OKBRIDGE_HELPFILE = /usr/local/games/okbridge.help
# If you are compiling this program on a machine which is
# running IBM's AIX operating system, then uncomment the
# next line:
#MACHINE_FLAGS = -DAIX
#
# If you are running on an HP/UX system, you may need to uncomment
# the following line:
#MACHINE_FLAGS = -DHPUX
#
# If you are compiling this program on a machine which does not
# have strcasecmp and strncasecmp, then you will need to uncomment
# the following line (this is not necessary if you are using
# SunOS or a recent version of Ultrix):
#STRCASECMP = -DNO_STRCASECMP
#
# The following flags may be useful if you have modified the okbridge
# program and you need assistance debugging it:
#
# Uncomment the following line to test the program in LOOPBACK_MODE.
# CFLAGS = -g -DLOGFILE -DLOOPBACK_MODE -DDEBUG $(STRCASECMP) $(MACHINE_FLAGS)
# CFLAGS = -g -DDEBUG -DLOGFILE $(STRCASECMP) $(MACHINE_FLAGS)
# CFLAGS = -g -DDEBUG $(STRCASECMP) $(MACHINE_FLAGS)
CFLAGS = -g $(STRCASECMP) $(MACHINE_FLAGS)
OBJ = bridge.o input.o display.o terminal.o network.o help.o ps.o socket.o\
scoring.o email.o code.o startup.o
SHUFFLEOBJ = okshuffle.o email.o code.o
TALLYOBJ = oktally.o email.o code.o
all: okbridge okshuffle oktally
okbridge: $(OBJ)
$(CC) -o okbridge $(OBJ) -lcurses -ltermcap
okshuffle: $(SHUFFLEOBJ) globals.h
$(CC) -o okshuffle $(SHUFFLEOBJ)
oktally: $(TALLYOBJ) globals.h
$(CC) -o oktally $(TALLYOBJ)
install: okbridge
install okbridge $(OKBRIDGE_DIR)
install okshuffle $(OKBRIDGE_DIR)
install oktally $(OKBRIDGE_DIR)
install -c -m 644 okbridge.help $(OKBRIDGE_HELPFILE)
clean:
rm -f *.o
rm -f tmp*
rm -f okbridge okshuffle oktally core tags TAGS
distrib: clean
rm -f helpfile.h
rm -f *~
csh -f < MakeDistrib
bridge.o: bridge.c globals.h ps.h display.h input.h network.h\
terminal.h help.h scoring.h
code.o: code.h code.c
display.o: display.h display.c globals.h terminal.h
email.o: email.h email.c code.h
help.o: help.h help.c globals.h ps.h input.h terminal.h helpfile.h
input.o: input.h input.c globals.h ps.h network.h terminal.h display.h\
help.h input.h
network.o: network.h network.c globals.h socket.c
ps.o: ps.h ps.c
socket.o: socket.c
scoring.o: scoring.h scoring.c globals.h
startup.o: globals.h
terminal.o: terminal.h terminal.c
helpfile.h:
echo 'char *help_file_name="'$(OKBRIDGE_HELPFILE)'";' \
> helpfile.h