summaryrefslogtreecommitdiff
path: root/MSVC/Tools/master.mak
diff options
context:
space:
mode:
authorpixel <pixel>2003-09-05 23:12:26 +0000
committerpixel <pixel>2003-09-05 23:12:26 +0000
commit23e2f62a8cc7b92826307fda62676b01d54bf9de (patch)
treeb9f38ad831ec0ef7adbe8bba123b61176d2d762f /MSVC/Tools/master.mak
parent343acb603be88ce4e9ac75de1d5ff64c086dfd77 (diff)
Still some more VC7++ port...
Diffstat (limited to 'MSVC/Tools/master.mak')
-rw-r--r--MSVC/Tools/master.mak10
1 files changed, 8 insertions, 2 deletions
diff --git a/MSVC/Tools/master.mak b/MSVC/Tools/master.mak
index bb12dce..5811ec5 100644
--- a/MSVC/Tools/master.mak
+++ b/MSVC/Tools/master.mak
@@ -4,7 +4,7 @@
#--------------------------------------------------------------------------
#needed so we can say foo.dll: foo.cpp and it will just work
-.SUFFIXES: .tlb .il .dll .cpp .js .cs .vb .rc .ocx .reg .resources .txt .resX .wsdl .asmx
+.SUFFIXES: .tlb .il .dll .cpp .js .cs .vb .rc .ocx .reg .resources .txt .resX .wsdl .asmx .lex
#--------------------------------------------------------------------------
#define the names of the compilers we ship
@@ -42,6 +42,7 @@ _RSC=rc.exe
_RESGEN=resgen.exe
_AL=al.exe
_SHAREDNAME=sn.exe
+_LEX=flex.exe
#IFDEF OS
@@ -133,12 +134,17 @@ _RMDIR=deltree /y
$(_LINK) $(_LDFLAGS) $(_LIBS) $*.obj
#default compile and link for c++ files building a exe
-#note: name.cpp and name.dll must match
+#note: name.cpp and name.exe must match
.cpp.exe:
if not exist $(_OUTDIR) md $(_OUTDIR)
$(_CL) $(_CDFLAGS) $*.cpp
$(_LINK) $(_LFLAGS) $(_LIBS) $*.obj
+.lex.exe:
+ if not exist $(_OUTDIR) md $(_OUTDIR)
+ $(_LEX) -o$*.c $*.lex
+ $(_CL) $(CDFLAGS) $*.c
+
#default compile and link for c++ files building an obj
#note: name.cpp and name.obj must match
.cpp.obj: