# Make mancomp and mandisp
# The redefinition of strchr() and strrchr() is needed for
# Ultrix-32, Unix 4.2 bsd (and maybe some other Unices).
#
BSDDEFINES = -Dstrchr=index -Dstrrchr=rindex
#
# On certain systems, such as Unix System III, you may need to define
# $(LINTFLAGS) in the make command line to set system-specific lint flags.
#

CFLAGS = -O $(BSDDEFINES)

all	: mancomp mandisp

#
# ** Compile mancomp and mandisp
#
MANCOMP_SRCS	=	mancomp.c manscreen.c
MANCOMP_OBJS	=	mancomp.o manscreen.o
mancomp:	$(MANCOMP_OBJS)
		$(CC) $(CFLAGS) $(MANCOMP_OBJS) -o mancomp

MANDISP_SRCS	=	mandisp.c manscreen.c manregis.c
MANDISP_OBJS	=	mandisp.o manscreen.o manregis.o
mandisp:	$(MANDISP_OBJS)
		$(CC) $(CFLAGS) $(MANDISP_OBJS) -o mandisp

#
# ** Lint the code
#
lint:	$(MANCOMP_SRCS) $(MANDISPP_SRCS)
	lint $(LINTFLAGS) $(DEFINES) $(MANCOMP_SRCS)
	lint $(LINTFLAGS) $(DEFINES) $(MANDISP_SRCS)

mancomp.o	:	mancomp.c

mandisp.o	:	mandisp.c

manscreen.o	:	manscreen.c

manregis.o	:	manregis.c

