freebsd-src/usr.sbin/pcvt/vgaio/Makefile
Bruce Evans 691cda9ce1 Fix SRCS so that `make depend' works. There were some .l's and some .y's.
The filenames in SRCS must have one of the extensions .s, .S, .c, or .cc
if they are to be handled by bsd.dep.mk.  Lex and yacc files must be
converted to C files and kept around for everything to work.  This is
handled fairly automatically if the names of the generated C files are
put in SRCS.  Unfortunately these names must be put in CLEANFILES too.

pcvt Makefiles:
Fix DPADD.  It was missing.

Fix CLEANFILES.  Some temporary files were missing.

Fix CFLAGS.  There were some `-I dir' options.

There must be no whitespace separating -I and -D options from the
corresponding args if these options are to be handled by bsd.dep.mk.
1995-09-28 18:23:44 +00:00

38 lines
740 B
Makefile

.if !exists(${.CURDIR}/../Makefile.inc)
error:
@echo
@echo " You MUST link/copy"
@echo
@echo " ../Makefile.inc.NetBSD or ../Makefile.inc.FreeBSD"
@echo
@echo " to ../Makefile.inc before you can proceed !"
@echo
.else
PROG= vgaio
MAN8= vgaio.${MAN8EXT}
SRCS= vgaio.c lex.c
YACC= yacc
#YFLAGS+= -yd # Bison
#YFLAGS+= -v # verbose
LFLAGS+= -I
DPADD= ${LIBM} ${LIBY} ${LIBL}
LDADD= -lm -ly -ll
CFLAGS= -O2 # due to a gcc bug, it compiles only with -O2!
CFLAGS+= -I${.CURDIR}/obj -I${.CURDIR} -g
CLEANFILES+= lex.c lex.yy.c vgaio.c y.tab.[ch]
CLEANFILES+= y.output # comment file from bison
install:
@${ECHO} "vgaio is not installed automatically ...."
.include <bsd.prog.mk>
.endif