home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / gnu / flex / Makefile < prev    next >
Encoding:
Makefile  |  1995-06-03  |  2.4 KB  |  99 lines

  1. # @(#) $Header: Makefile.in,v 1.2 94/01/04 14:33:19 vern Exp $ (LBL)
  2.  
  3. # If your version of "make" does not define $(MAKE), comment in the
  4. # definition of "MAKE" below.  (You only need to do this if you intend
  5. # to do "make bigcheck" or "make dist".)
  6. # MAKE = make
  7.  
  8. # Possible values for DEFS:
  9. #
  10. # For flex to always generate 8-bit scanners, add "-DDEFAULT_CSIZE=256"
  11. # to DEFS.
  12. #
  13. # For Vax/VMS, add "-DVMS" to DEFS.
  14. #
  15. # For MS-DOS, add "-DMS_DOS" to DEFS.  See the directory MISC/MSDOS for
  16. # additional info.
  17.  
  18. CFLAGS = -Wd -throwback
  19. DEFS = 
  20. LDFLAGS = 
  21. LIBS = C:o.Utils C:o.Stubs
  22.  
  23. # Installation targeting.  Files will be installed under the tree
  24. # rooted at prefix.  flex will be installed in bindir, libfl.a in
  25. # libdir, FlexLexer.h will be installed in includedir, and the manual
  26. # pages will be installed in mandir with extension manext.
  27. # Raw, unformatted troff source will be installed if INSTALLMAN=man,
  28. # nroff preformatted versions will be installed if INSTALLMAN=cat.
  29.  
  30. YACC = bison
  31. CC = cc
  32. AR = libfile
  33. LD = link
  34.  
  35. # You normally do not need to modify anything below this point.
  36. # ------------------------------------------------------------
  37.  
  38. CPPFLAGS = -IC:, $(DEFS)
  39.  
  40. .c.o:
  41.     $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
  42.  
  43. HEADERS = flexdef.h version.h
  44.  
  45. SOURCES = ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y \
  46.     scan.l skel.c sym.c tblcmp.c yylex.c
  47. OBJECTS = ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o \
  48.     scan.o skel.o sym.o tblcmp.o yylex.o alloca.o
  49.  
  50. LIBSRCS = libmain.c libyywrap.c
  51. LIBOBJS = libmain.o libyywrap.o
  52.  
  53. DIST_NAME = flex
  54.  
  55. # which "flex" to use to generate scan.c from scan.l
  56. FLEX = flex
  57. FLEX_FLAGS = -ist $(PERF_REPORT)
  58. COMPRESSION =
  59. PERF_REPORT = -p
  60.  
  61. FLEXLIB = libfl
  62.  
  63.  
  64. all: flex
  65.  
  66. flex: $(OBJECTS) $(FLEXLIB)
  67.     $(LD) -o flex $(LDFLAGS) $(OBJECTS) $(FLEXLIB) $(LIBS)
  68.     Squeeze flex
  69.  
  70. parse.c: y.parse
  71.     $(YACC) -d y.parse -o c.parse
  72.  
  73. parse.h: parse.c
  74.  
  75. scan.c: scan.l
  76.     $(FLEX) $(FLEX_FLAGS) $(COMPRESSION) l.scan > c.scan
  77.  
  78. scan.o: scan.c parse.h flexdef.h
  79. yylex.o: yylex.c parse.h flexdef.h
  80.  
  81. main.o: main.c flexdef.h version.h
  82. ccl.o: ccl.c flexdef.h
  83. dfa.o: dfa.c flexdef.h
  84. ecs.o: ecs.c flexdef.h
  85. gen.o: gen.c flexdef.h
  86. misc.o: misc.c flexdef.h
  87. nfa.o: nfa.c flexdef.h
  88. parse.o: parse.c flexdef.h
  89. skel.o: skel.c flexdef.h
  90. sym.o: sym.c flexdef.h
  91. tblcmp.o: tblcmp.c flexdef.h
  92.  
  93. alloca.o: alloca.c
  94.     $(CC) $(CPPFLAGS) $(CFLAGS) -c -Dxmalloc=yy_flex_xmalloc alloca.c
  95.  
  96. $(FLEXLIB): $(LIBOBJS)
  97.     $(AR) -co $(FLEXLIB) $(LIBOBJS)
  98.