# # make file for "flex" tool # @(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/Makefile,v 2.9 # 90/05/26 17:28:44 vern Exp $ (LBL) # # the first time around use "nmake f_flex" # # This makefile is specific for Microsoft's Visual C 2.0, & nmake # # - Stan Adermann # SKELFLAGS = -DDEFAULT_SKELETON_FILE=\"c:/src/flex/flex.skl\" CFLAGS = -nologo -W2 -F 8000 -Ox -DUSG LDFLAGS = /nologo /STACK:8000 FLEX_FLAGS = -8 FLEX = flex.exe CC = cl.exe YACC = byacc.exe MAKE = nmake /nologo FLEX_C_SOURCES = scan.c lexyOBJS = main.obj scan.obj parse.obj lexy: lexy.exe # # general inference rule # parse.h parse.c : scan.l parse.y -@del parse.c -@del parse.h $(YACC) -d parse.y scan.c : scan.l -@del scan.c -@del scan.h $(FLEX) $(FLEX_FLAGS) scan.l -@move lex.yy.c scan.c scan.obj : scan.c parse.h $(CC) -c $(CFLAGS) scan.c parse.obj : parse.c parse.h $(CC) -c $(CFLAGS) parse.c main.obj : main.c $(CC) -c $(CFLAGS) main.c lexy.exe : main.obj scan.obj parse.obj link $(LDFLAGS) $(lexyOBJS) -out:$*.exe del *.obj clean : del *.obj