# in an '86 environment this better be compiled in large model
SHELL=/bin/sh

# defines for curses that needs termcap BSD,  xenix,  etc....
# CURSNAME  = -lcurses -ltermlib
# CURSNAME	= -lcurses -ltermcap
# defines for sysV curses needs cbreak() function call.
# if yours has crmode() instead, you will have to hack defs.h
# CURSNAME	= -lcurses 

# if your machine has strchr
# DEFINES=-DSTRCHR=strchr
# if your machine has index / rindex
# DEFINES=-DSTRCHR=index

 
# for 286 uncomment the line below
# CFLAGS	=	-O -AL $(DEFINES)
# LDFLAGS =	-AL -i
# for most other systems
# CFLAGS	=	-O $(DEFINES)
# LDFLAGS	=	-n
OBJECTS =	globals.o main.o mem.o command.o edit.o input.o stuff.o \
		find.o multi.o
CC=/bin/cc

all: rsed

rsed:	${OBJECTS}
		$(CC) ${LDFLAGS} ${OBJECTS} -o rsed $(CURSNAME)

tags: *.h *.c
	ctags *.h *.c

shar:
	shar -n 1 -e 1 -t 'Now read the README file and edit the Makefile for your system' \
		README rsedhelp Makefile *.h *.c > rsed.shar
