#
#  Master makefile for the phone program         18 December 1985
#
#  You'll need to edit the makefile in each of the subdirectories
#  to change the compilation flags.
# 
SHELL   =       /bin/sh

DIRS	=	client master conv


OFLAG	= -O2

CC     = cc
#CC     = gcc

OSFLAGS=-DSIG_TYPE=void	-DSYSV -pipe -I/usr/include/ncurses
#OSFLAGS=-DSIG_TYPE=int

#LIBS   = -lcurses -ltermlib #-lresolv
LIBS=-lncurses -ltermcap

.DEFAULT:	
	for i in ${DIRS} ; do \
	    cd $$i ; \
	    make MFLAGS="${MFLAGS}" CC="${CC}" LIBS="${LIBS}" OSFLAGS="${OSFLAGS}" OFLAG=${OFLAG} $@ ; \
	    cd .. ; \
	done

default: all	

install-binaries:
	cp bin/phone /usr/local/bin
	cp bin/phoned bin/convd /usr/local/etc
