blob: 967810aadb25df10f3ec84f7827f9f263c5a6938 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
setlocal
if not isdir src\parser mkdir src\parser
flex++ -8 -Ssrc\flexskel.cc -Hsrc\flexskel.h -hsrc\parser\mhmakelexer.h -osrc\parser\mhmakelexer.cpp src\mhmakelexer.l
set file=src\parser\mhmakelexer.cpp
set tempfile=src\parser\temp12345.5678
GOSUB AddStdAfx
goto END
:AddStdAfx
rename /q %file %tempfile
echo #include "StdAfx.h" > %file
type %tempfile >> %file
del /q %tempfile
RETURN
:END
endlocal
|