xref: /original-bsd/contrib/sc/Makefile (revision e718337e)
1#	@(#)Makefile	5.2 (Berkeley) 10/11/90
2
3PROG=	sc
4
5#DOBACKUPS		backup copy of source files on save
6#IEEE_MATH		need setsticky() calls in your signal handlers
7#INTERNATIONAL		8-bit characters
8#SIGVOID		signal routines are type void
9#SIMPLE			no arrow keys, or lex.c blows up
10#DFLT_PAGER=\"more\"
11
12CFLAGS+=-I. -I${.CURDIR} -DBSD43 -DDFLT_PAGER=\"more\" -DSIGVOID
13SRCS=	cmds.c crypt.c gram.c help.c interp.c lex.c range.c sc.c \
14	version.c vi.c vmtbl.c xmalloc.c
15OBJS+=	gram.o
16DPADD=	${LIBM} ${LIBCURSES} ${LIBTERMCAP}
17LDADD=	-lm -lcurses -ltermcap
18CLEANFILES+=experres.h statres.h y.tab.h gram.c
19
20experres.h: gram.y
21	sed -f ${.CURDIR}/eres.sed < ${.CURDIR}/gram.y > experres.h
22
23statres.h: gram.y
24	sed -f ${.CURDIR}/sres.sed < ${.CURDIR}/gram.y > statres.h
25
26.depend: experres.h statres.h
27
28.include <bsd.prog.mk>
29