home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-06-03 | 2.4 KB | 99 lines |
- # @(#) $Header: Makefile.in,v 1.2 94/01/04 14:33:19 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".)
- # MAKE = make
-
- # Possible values for DEFS:
- #
- # For flex to always generate 8-bit scanners, add "-DDEFAULT_CSIZE=256"
- # to DEFS.
- #
- # For Vax/VMS, add "-DVMS" to DEFS.
- #
- # For MS-DOS, add "-DMS_DOS" to DEFS. See the directory MISC/MSDOS for
- # additional info.
-
- CFLAGS = -Wd -throwback
- DEFS =
- LDFLAGS =
- LIBS = C:o.Utils C:o.Stubs
-
- # 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.
-
- YACC = bison
- CC = cc
- AR = libfile
- LD = link
-
- # You normally do not need to modify anything below this point.
- # ------------------------------------------------------------
-
- CPPFLAGS = -IC:, $(DEFS)
-
- .c.o:
- $(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 alloca.o
-
- LIBSRCS = libmain.c libyywrap.c
- LIBOBJS = libmain.o libyywrap.o
-
- DIST_NAME = flex
-
- # which "flex" to use to generate scan.c from scan.l
- FLEX = flex
- FLEX_FLAGS = -ist $(PERF_REPORT)
- COMPRESSION =
- PERF_REPORT = -p
-
- FLEXLIB = libfl
-
-
- all: flex
-
- flex: $(OBJECTS) $(FLEXLIB)
- $(LD) -o flex $(LDFLAGS) $(OBJECTS) $(FLEXLIB) $(LIBS)
- Squeeze flex
-
- parse.c: y.parse
- $(YACC) -d y.parse -o c.parse
-
- parse.h: parse.c
-
- scan.c: scan.l
- $(FLEX) $(FLEX_FLAGS) $(COMPRESSION) l.scan > c.scan
-
- scan.o: scan.c parse.h flexdef.h
- yylex.o: yylex.c parse.h flexdef.h
-
- main.o: main.c flexdef.h version.h
- ccl.o: ccl.c flexdef.h
- dfa.o: dfa.c flexdef.h
- ecs.o: ecs.c flexdef.h
- gen.o: gen.c flexdef.h
- misc.o: misc.c flexdef.h
- nfa.o: nfa.c flexdef.h
- parse.o: parse.c flexdef.h
- skel.o: skel.c flexdef.h
- sym.o: sym.c flexdef.h
- tblcmp.o: tblcmp.c flexdef.h
-
- alloca.o: alloca.c
- $(CC) $(CPPFLAGS) $(CFLAGS) -c -Dxmalloc=yy_flex_xmalloc alloca.c
-
- $(FLEXLIB): $(LIBOBJS)
- $(AR) -co $(FLEXLIB) $(LIBOBJS)
-