# Makefile for mnet program.
# By elixir@wybbs.mi.org or elixir@therip.grand-rapids.mi.us
# Made for the  R.I.P.
#
# bank      = A way to store "credits" for use for many things...
#	      Let me know if you figure out something to use them for...
# banner    = A banner maker for online messages
# keirsey   = Find out things about your personality
# makematch = Match to a somewhat compatible person..

MBOXHOME=`./.MBOXHOME`
BIN=`./.MBOXHOME`
CC=gcc
OS_DEFS=`../.osdefs` 

CFLAGS= -O2 -s -traditional -D_POSIX_SOURCE \
	$(OS_DEFS) -DHOME="\"$(MBOXHOME)"\" \
	-DBIN="\"$(BIN)"\" -D_ANSI  -I/usr/include/ncurses


install: all
	chmod a+rx bank banner keirsey makematch 
	cp bank banner keirsey makematch  $(BIN)
	chown bbs $(MBOXHOME)/makematch
	chmod g+s $(MBOXHOME)/makematch

all:	bank banner keirsey makematch hanoi xmas

hanoi:	hanoi.o
	$(CC) $(CFLAGS) -s  hanoi.o -o hanoi -lncurses

xmas:	xmas.o
	$(CC) $(CFLAGS)  -s xmas.o -o xmas -lncurses

clean:
	rm -f *.o *~ bank banner keirsey makematch hanoi xmas

