38 lines
737 B
Makefile
38 lines
737 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}
|
|
|
|
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
|