#
# new makefile for modem.
#
# if your lockfile is:
# /usr/spool/uucp/LCK..<system>		No defines needed.
# /usr/spool/locks/LCK..<system>	-DOL3B2
# /usr/spool/locks/LCK.L.<system>	-DHDB
#
# New definitions:
#	HDB:		If you have Honey-Danber UUCP (Thanks Rick)
#	OL3B2:		If you have an Olivetti 3B2
#	SPEEDCONFIG:	If you have a modem that tells you the speed of incoming
#			calls (In ASCII - 300(or \r), 1200, 2400, 1275, 7512)
#			If your modem says different things, hack the code
#	WATCHIT:	If you want "who" and "ps" run periodically to check
#			what's going on.
#	HAYES		If you have a Hayes-type modem.
#	JSET:		If you have an AT&T Aztec modem (Thanks Rick).
#	DEBUG:		See what's going on.
#	SLOW:		Wait 1 sec between each character written to the modem. 
#	STATES		If you want to use Jack's state-changing stuff.
#
# check "modem.h" for additional options on default modem speed and timezone.
#
CFLAGS = -DOL3B2 -DSPEEDCONFIG -DWATCHIT -DHAYES 
PARTS = modem.o uchange.o sendex.o io.o line.o statelook.o
# LIBS = -lg

modem: ${PARTS}
	rm -f modem
	cc ${PARTS} -o modem ${LIBS}

install: modem
	mv /etc/modem /etc/modem.old
	cp modem /etc
	
lint:
	lint ${CFLAGS} ${PARTS:.o=.c}
	
${PARTS}: modem.h Makefile

shar:
	shar -cv README modem.1 Makefile modem.h ${PARTS:.o=.c} > modem.shar


man:
	nroff -man modem.1 > modem.man
