diff options
author | marha <marha@users.sourceforge.net> | 2009-07-29 09:17:47 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-07-29 09:17:47 +0000 |
commit | 437bca524595d1007f37988e862db8bfeff329b0 (patch) | |
tree | da106b22babce6ccd53c7dd9c3040aed4a52f455 /tools/mhmake/makebison.bat | |
parent | 6f45caf0fe3e94a83835fa1f5d04233b9e936efc (diff) | |
download | vcxsrv-437bca524595d1007f37988e862db8bfeff329b0.tar.gz vcxsrv-437bca524595d1007f37988e862db8bfeff329b0.tar.bz2 vcxsrv-437bca524595d1007f37988e862db8bfeff329b0.zip |
Added mhmake GNU make compatible (with extensions) make utility.
Diffstat (limited to 'tools/mhmake/makebison.bat')
-rw-r--r-- | tools/mhmake/makebison.bat | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/mhmake/makebison.bat b/tools/mhmake/makebison.bat new file mode 100644 index 000000000..5ee3dee50 --- /dev/null +++ b/tools/mhmake/makebison.bat @@ -0,0 +1,21 @@ +setlocal
+if not isdir src\parser mkdir src\parser
+
+bison++ -d -Ssrc\bison.cc -Hsrc\bison.h -hsrc\parser\mhmakeparser.h -osrc\parser\mhmakeparser.cpp src\mhmakeparser.y
+
+set file=src\parser\mhmakeparser.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
+
|