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.
This commit is contained in:
Bruce Evans 1995-09-28 18:23:44 +00:00
parent 2b326c58f6
commit 691cda9ce1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11052
3 changed files with 14 additions and 13 deletions

View File

@ -1,13 +1,13 @@
# $Id: Makefile,v 1.2 1995/05/01 12:10:35 ache Exp $
# $Id: Makefile,v 1.3 1995/06/19 22:15:35 asami Exp $
PROG = colldef
LFLAGS = -8 -i
YFLAGS = -d
CFLAGS += -I. -I${.CURDIR}/../../lib/libc/locale
SRCS = parse.y scan.l
SRCS = parse.c scan.c
LDADD = -ll
DPADD = ${LIBL}
CLEANFILES = y.tab.[ch] lex.yy.c
CLEANFILES += lex.yy.c parse.c scan.c y.tab.[ch]
LOCALES= ru_SU.KOI8-R ru_SU.CP866 lt_LN.ISO_8859-1
LOCALEDIR= ${DESTDIR}/usr/share/locale

View File

@ -1,4 +1,3 @@
.if !exists(${.CURDIR}/../Makefile.inc)
error:
@echo
@ -11,21 +10,24 @@ error:
.else
PROG= kbdio
SRCS= kbdio.y lex.l
SRCS= kbdio.c lex.c
#YACC= bison
#YFLAGS+= -yd # Bison only
YFLAGS+= -v # verbose
LFLAGS+= -I
DPADD= ${LIBM} ${LIBY} ${LIBL}
LDADD= -lm -ly -ll
NOMAN=
NOSHARED= no shared linkage
CFLAGS+= -I ${.CURDIR}/obj -I ${.CURDIR} #-g
CFLAGS+= -I${.CURDIR}/obj -I${.CURDIR} #-g
CLEANFILES+= y.tab.h
CLEANFILES+= kbdio.c lex.c lex.yy.c y.tab.[ch]
CLEANFILES+= y.output # comment file from bison
install:
@ -33,6 +35,4 @@ install:
.include <bsd.prog.mk>
lex.o: y.tab.h lex.l
.endif

View File

@ -1,4 +1,3 @@
.if !exists(${.CURDIR}/../Makefile.inc)
error:
@echo
@ -13,19 +12,21 @@ error:
PROG= vgaio
MAN8= vgaio.${MAN8EXT}
SRCS= vgaio.y lex.l
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
CFLAGS+= -I${.CURDIR}/obj -I${.CURDIR} -g
CLEANFILES+= y.tab.h
CLEANFILES+= lex.c lex.yy.c vgaio.c y.tab.[ch]
CLEANFILES+= y.output # comment file from bison
install: