# This may have to change on your system.
# You may have to fiddle with various combinations of curses, termcap,
# terminfo, etc.  Good luck!
INSTDIR	= /mit/watchmaker/`machtype`bin/
MANDIR	= /mit/watchmaker/man
LIBS	= -lcurses -ltermcap
#LIBS	= -ltermlib
#LIBS	= -lterminfo

# However you need getopt.
GETOPT	= 
# -lgetopt

# If you're running on a 4.[23] system, you probably want this.
WORK	= -DMOD_HAX

CFLAGS	= -O $(WORK)

bpatch:		bpatch.o
	$(CC) -o bpatch $(CFLAGS) bpatch.o $(GETOPT) $(LIBS)

install:
	install -s bpatch ${INSTDIR}
	cp bpatch.1 ${MANDIR}/man1/
#	@echo Use cp to put things where you want them

all:	bpatch

depend:

