# Generated automatically from Makefile.in by configure.
# @(#) $Header: /usr/src/contrib/flex-2.4.6/RCS/Makefile.in,v 1.3 1994/01/05 00:30:25 vern Exp $ (LBL)
# If your version of "make" does not define $(MAKE), comment in the
# definition of "MAKE" below. (You only need to do this if you intend
# to do "make bigcheck" or "make dist".)
# Possible values for DEFS:
# For flex to always generate 8-bit scanners, add "-DDEFAULT_CSIZE=256"
# For Vax/VMS, add "-DVMS" to DEFS.
# For MS-DOS, add "-DMS_DOS" to DEFS. See the directory MISC/MSDOS for
DEFS
= -DSTDC_HEADERS
=1 -DHAVE_STRING_H
=1
# Installation targeting. Files will be installed under the tree
# rooted at prefix. flex will be installed in bindir, libfl.a in
# libdir, FlexLexer.h will be installed in includedir, and the manual
# pages will be installed in mandir with extension manext.
# Raw, unformatted troff source will be installed if INSTALLMAN=man,
# nroff preformatted versions will be installed if INSTALLMAN=cat.
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
includedir = $(prefix)/include
mandir = $(prefix)/share
/man
/cat
$(manext)
INSTALL
= /usr
/bin
/install -c
INSTALL_DATA
= $(INSTALL
) -m
644
INSTALL_PROGRAM
= $(INSTALL
)
# You normally do not need to modify anything below this point.
# ------------------------------------------------------------
CPPFLAGS
= -I.
-I
$(srcdir) $(DEFS
)
$(CC
) -c
$(CPPFLAGS
) $(CFLAGS
) $<
HEADERS
= flexdef.h version.h
SOURCES
= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y \
scan.l skel.c sym.c tblcmp.c yylex.c
OBJECTS
= ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o \
scan.o skel.o sym.o tblcmp.o yylex.o
LIBSRCS
= libmain.c libyywrap.c
LIBOBJS
= libmain.o libyywrap.o
LINTSRCS
= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c \
scan.c skel.c sym.c tblcmp.c yylex.c
DISTFILES
= README NEWS COPYING INSTALL FlexLexer.h \
configure.in Makefile.in mkskel.sh flex.skl \
$(HEADERS
) $(SOURCES
) $(LIBSRCS
) MISC \
scan.c
install.sh mkinstalldirs configure
# which "flex" to use to generate scan.c from scan.l
FLEX_FLAGS
= -ist
$(PERF_REPORT
)
lex: .bootstrap
$(OBJECTS
) $(FLEXLIB
)
$(CC
) $(CFLAGS
) -o
lex $(LDFLAGS
) $(OBJECTS
) $(FLEXLIB
) $(LIBS
)
cp
$(srcdir)/initscan.c scan.c
$(YACC
) -d
$(srcdir)/parse.y
@sed
'/extern char.*malloc/d' <y.tab.c
>parse.c
$(FLEX
) $(FLEX_FLAGS
) $(COMPRESSION
) $(srcdir)/scan.l
>scan.tmp
sed s
,\"$(srcdir)/scan.l
\",\"scan.l
\", <scan.tmp
>scan.c
scan.o
: scan.c parse.h flexdef.h
yylex.o
: yylex.c parse.h flexdef.h
skel.c
: flex.skl mkskel.sh
$(SHELL
) $(srcdir)/mkskel.sh
$(srcdir)/flex.skl
>skel.c
main.o
: main.c flexdef.h version.h
parse.o
: parse.c flexdef.h
tblcmp.o
: tblcmp.c flexdef.h
$(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-Dxmalloc
=yy_flex_xmalloc alloca.c
alloca.c
: $(srcdir)/MISC
/alloca.c
cp
$(srcdir)/MISC
/alloca.c .
$(FLEX
) $(FLEX_FLAGS
) $(COMPRESSION
) $(srcdir)/scan.l \
| sed s
,\"$(srcdir)/scan.l
\",\"scan.l
\", \
@echo
"Check successful, using COMPRESSION=\"$(COMPRESSION)\""
rm -f scan.c
; $(MAKE
) COMPRESSION
="-C" check
rm -f scan.c
; $(MAKE
) COMPRESSION
="-Ce" check
rm -f scan.c
; $(MAKE
) COMPRESSION
="-Cm" check
rm -f scan.c
; $(MAKE
) COMPRESSION
="-Cfea" check
rm -f scan.c
; $(MAKE
) COMPRESSION
="-CFer" check
rm -f scan.c
; $(MAKE
) COMPRESSION
="-l" PERF_REPORT
="" check
@echo
"All checks successful"
$(AR
) cru
$(FLEXLIB
) $(LIBOBJS
)
cd
$(srcdir); nroff
-man flex
.1 >flex.man
cd
$(srcdir); nroff
-man flexdoc
.1 >flexdoc.man
install: lex $(FLEXLIB
) install.
$(INSTALLMAN
)
install -s
-o bin
-g bin
-m
555 lex $(bindir)
install -o bin
-g bin
-m
444 $(FLEXLIB
) $(libdir)
ranlib
-t
/usr
/lib
/$(FLEXLIB
)
install.man
: flex
.1 flexdoc
.1
install $(srcdir)/flex
.1 $(mandir)/flex.
$(manext)
install $(srcdir)/flexdoc
.1 $(mandir)/flexdoc.
$(manext)
install.cat
: flex.man flexdoc.man
install $(srcdir)/flex.man
$(mandir)/lex.0
install $(srcdir)/flexdoc.man
$(mandir)/lexdoc
.0
$(SHELL
) $(srcdir)/mkinstalldirs \
$(bindir) $(libdir) $(includedir) $(mandir)
rm -f
$(bindir)/lex $(bindir)/flex
++
rm -f
$(includedir)/FlexLexer.h
rm -f
$(mandir)/flex.
$(manext) $(mandir)/flexdoc.
$(manext)
lint
-Dconst
= $(LINTSRCS
) > flex.lint
gcc
-Dlint
-Wall
$(LINTSRCS
) >flex.gcc-lint
2>&1
rm -f
*~ a.out
*.bak core errs scan.tmp
rm -f parse.c parse.h
*.o alloca.c
*.lint
lex.yy.c
lex.yy.
cc $(FLEXLIB
)
rm -f .bootstrap
lex scan.c
tags TAGS Makefile config.status
rm -f flex.man flexdoc.man flex
*.
tar.gz flex
*.
tar.Z
$(MAKE
) DIST_NAME
=flex-
`sed <version.h 's/[^"]*"//' | sed 's/"//'` dist2
@
rm -f
$(DIST_NAME
).
tar $(DIST_NAME
).
tar.Z
$(DIST_NAME
).
tar.gz
tar cf
- $(DISTFILES
) |
(cd
$(DIST_NAME
); tar xfB
-)
@mv
$(DIST_NAME
)/scan.c
$(DIST_NAME
)/initscan.c
@chmod
444 $(DIST_NAME
)/initscan.c
@chmod
+w
$(DIST_NAME
)/Makefile.in
tar chf
$(DIST_NAME
).
tar $(DIST_NAME
)
compress
<$(DIST_NAME
).
tar >$(DIST_NAME
).
tar.Z
gzip
<$(DIST_NAME
).
tar >$(DIST_NAME
).
tar.gz
Makefile
: Makefile.in config.status
$(SHELL
) config.status
--recheck
# Prevent GNU make v3 from overflowing arg limit on SysV.