Commit | Line | Data |
---|---|---|
2fda48e9 | 1 | # @(#)Makefile 5.2 (Berkeley) %G% |
a63f5c90 | 2 | |
2fda48e9 | 3 | PROG= sc |
a63f5c90 | 4 | |
2fda48e9 KB |
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\" | |
a63f5c90 | 11 | |
2fda48e9 KB |
12 | CFLAGS+=-I. -I${.CURDIR} -DBSD43 -DDFLT_PAGER=\"more\" -DSIGVOID |
13 | SRCS= 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 | |
15 | OBJS+= gram.o | |
16 | DPADD= ${LIBM} ${LIBCURSES} ${LIBTERMCAP} | |
17 | LDADD= -lm -lcurses -ltermcap | |
18 | CLEANFILES+=experres.h statres.h y.tab.h gram.c | |
a63f5c90 | 19 | |
2fda48e9 KB |
20 | experres.h: gram.y |
21 | sed -f ${.CURDIR}/eres.sed < ${.CURDIR}/gram.y > experres.h | |
a63f5c90 | 22 | |
2fda48e9 KB |
23 | statres.h: gram.y |
24 | sed -f ${.CURDIR}/sres.sed < ${.CURDIR}/gram.y > statres.h | |
a63f5c90 | 25 | |
2fda48e9 | 26 | .depend: experres.h statres.h |
a63f5c90 | 27 | |
2fda48e9 | 28 | .include <bsd.prog.mk> |