#
# Makefile -- For ndb (v. 1.0b)
#


CC = gcc

SRCS =	coup.c \
	data.c \
	death.c \
	detonate.c \
	dmessage.c \
	enter.c \
	findslot.c \
	getname.c \
	getship.c \
	inform.c \
	input.c \
	interface.c \
	newwin.c \
	orbit.c \
	planets.c \
	playerlist.c \
	redraw.c \
	sintab.c \
	smessage.c \
	socket.c \
	util.c \
	warning.c \
	sserial.c \
	varbuf.c \
        log.c \
	mac.c \
	main.c

OBJS =  coup.o \
	data.o \
	detonate.o \
	death.o \
	dmessage.o \
	enter.o \
	getname.o \
	findslot.o \
	getship.o \
	inform.o \
	interface.o \
	newwin.o \
	playerlist.o \
	orbit.o \
	planets.o \
	sintab.o \
	smessage.o \
	socket.o \
	warning.o \
	util.o \
	varbuf.o \
	sserial.o \
	log.o \
        input.o \
        mac.o \
        redraw.o \
	main.o

RSA_OBJS = rsa_utilmp.o rsa_key.o

RESERVED_OBJ = reserved.o

HEADERS = struct.h \
	  packets.h \
	  defs.h \
	  copyright.h \
	  copyright2.h \
	  modem.h \
	  data.h \
	  sserial.h \
	  varbuf.h \
          log.h \
	  Wlib.h

LIBS = -lmp -lm

#CFLAGS = -g -I/private/lib/mp -D__DEBUG__ -D__LOGFILE__
#CFLAGS = -D__LOGFILE__ -g
CFLAGS = -O

ndb:	$(OBJS) $(RSA_OBJS) $(RESERVED_OBJ)
	$(CC) -L/private/lib/mp $(RESERVED_OBJ) $(RSA_OBJS) $(OBJS) -o ndb $(LIBS)

backup:
	cp -f *.c *.h Makefile docs/README.* docs/*.txt BACKUP 

clean:
	rm -f $(OBJS) ndb core *~

tags: $(R_FILES)
	ctags $(R_FILES) $(INCLUDES)

tar:
	tar -cvf ndb.tar $(SRCS) $(HEADERS) INSTALL-README Makefile doc

depend:
	makedepend -- $(CFLAGS) -- $(SRCS)
#####
# DO NOT DELETE THIS LINE -- make depend depends on it.

coup.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
coup.o: /usr/include/sys/types.h Wlib.h copyright2.h defs.h struct.h data.h
data.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h Wlib.h
data.o: copyright2.h defs.h struct.h data.h
death.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
death.o: /usr/include/signal.h /usr/include/setjmp.h /usr/include/sys/types.h
death.o: /usr/include/sys/time.h Wlib.h copyright2.h defs.h struct.h data.h
death.o: sserial.h varbuf.h
detonate.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
detonate.o: /usr/include/sys/types.h Wlib.h copyright2.h defs.h struct.h
detonate.o: data.h
dmessage.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
dmessage.o: /usr/include/math.h Wlib.h copyright2.h defs.h struct.h data.h
dmessage.o: modem.h log.h /usr/include/limits.h /usr/include/sys/time.h
enter.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
enter.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/pwd.h
enter.o: /usr/include/string.h /usr/include/ctype.h Wlib.h copyright2.h
enter.o: defs.h struct.h data.h
findslot.o: copyright2.h /usr/include/stdio.h /usr/include/ansi_compat.h
findslot.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/pwd.h
findslot.o: /usr/include/string.h /usr/include/ctype.h Wlib.h defs.h
findslot.o: copyright.h struct.h data.h
getname.o: copyright2.h /usr/include/stdio.h /usr/include/ansi_compat.h
getname.o: /usr/include/sys/types.h /usr/include/sys/stat.h
getname.o: /usr/include/sys/file.h /usr/include/errno.h /usr/include/pwd.h
getname.o: /usr/include/string.h /usr/include/ctype.h Wlib.h defs.h
getname.o: copyright.h struct.h data.h
getship.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
getship.o: /usr/include/sys/types.h Wlib.h copyright2.h defs.h struct.h
getship.o: data.h
inform.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
inform.o: /usr/include/stdlib.h /usr/include/math.h /usr/include/signal.h
inform.o: Wlib.h copyright2.h defs.h struct.h data.h modem.h log.h
inform.o: /usr/include/limits.h /usr/include/sys/time.h
input.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
input.o: /usr/include/math.h /usr/include/sys/types.h /usr/include/sys/time.h
input.o: /usr/include/signal.h /usr/include/errno.h Wlib.h copyright2.h
input.o: defs.h struct.h data.h packets.h modem.h
interface.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
interface.o: /usr/include/math.h /usr/include/signal.h Wlib.h copyright2.h
interface.o: defs.h struct.h data.h packets.h
newwin.o: copyright.h modem.h /usr/include/stdio.h /usr/include/ansi_compat.h
newwin.o: /usr/include/math.h /usr/include/signal.h /usr/include/sys/types.h
newwin.o: /usr/include/sys/time.h Wlib.h copyright2.h defs.h struct.h data.h
newwin.o: packets.h sserial.h varbuf.h
orbit.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
orbit.o: /usr/include/math.h /usr/include/sys/types.h Wlib.h copyright2.h
orbit.o: defs.h struct.h data.h
planets.o: copyright2.h /usr/include/stdio.h /usr/include/ansi_compat.h
planets.o: /usr/include/math.h Wlib.h defs.h copyright.h struct.h data.h
playerlist.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
playerlist.o: Wlib.h copyright2.h defs.h struct.h data.h modem.h
redraw.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
redraw.o: /usr/include/signal.h /usr/include/math.h Wlib.h copyright2.h
redraw.o: modem.h defs.h struct.h data.h packets.h
sintab.o: copyright.h
smessage.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
smessage.o: /usr/include/math.h /usr/include/signal.h /usr/include/ctype.h
smessage.o: Wlib.h copyright2.h defs.h struct.h data.h packets.h
socket.o: copyright2.h /usr/include/stdio.h /usr/include/ansi_compat.h
socket.o: /usr/include/sys/types.h /usr/include/sys/socket.h
socket.o: /usr/include/sys/time.h /usr/include/netinet/in.h
socket.o: /usr/include/netdb.h /usr/include/errno.h Wlib.h defs.h copyright.h
socket.o: struct.h data.h packets.h
util.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
util.o: /usr/include/math.h /usr/include/signal.h Wlib.h copyright2.h defs.h
util.o: struct.h data.h
warning.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
warning.o: /usr/include/math.h /usr/include/signal.h Wlib.h copyright2.h
warning.o: defs.h struct.h data.h modem.h log.h /usr/include/limits.h
warning.o: /usr/include/sys/time.h
sserial.o: /usr/include/stdio.h /usr/include/ansi_compat.h
sserial.o: /usr/include/stdlib.h /usr/include/string.h sserial.h varbuf.h
sserial.o: log.h /usr/include/limits.h /usr/include/sys/time.h
varbuf.o: /usr/include/stdlib.h /usr/include/ansi_compat.h varbuf.h
log.o: /usr/include/stdio.h /usr/include/ansi_compat.h /usr/include/stdlib.h
log.o: /usr/include/time.h log.h /usr/include/limits.h
log.o: /usr/include/sys/time.h
mac.o: /usr/include/stdio.h /usr/include/ansi_compat.h /usr/include/assert.h
mac.o: /usr/include/sys/types.h /usr/include/sys/time.h Wlib.h copyright2.h
mac.o: modem.h defs.h copyright.h data.h packets.h sserial.h varbuf.h log.h
mac.o: /usr/include/limits.h
main.o: copyright.h /usr/include/stdio.h /usr/include/ansi_compat.h
main.o: /usr/include/string.h /usr/include/sys/types.h
main.o: /usr/include/sys/stat.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
main.o: /usr/include/sys/ttydev.h /usr/include/signal.h /usr/include/setjmp.h
main.o: /usr/include/pwd.h /usr/include/sys/time.h /usr/include/sys/wait.h
main.o: Wlib.h copyright2.h defs.h struct.h data.h packets.h sserial.h
main.o: varbuf.h log.h /usr/include/limits.h
