diff options
author | Gerald Combs <gerald@wireshark.org> | 2009-03-15 22:40:29 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2009-03-15 22:40:29 +0000 |
commit | be943c84190a9437c3f882496d2151dd02db7b52 (patch) | |
tree | d8d461954ff55eb568cde84861f841a7159b9f06 /tools | |
parent | 26d30411b60beee52a53b2c21597322403836759 (diff) |
Go a little deeper into the Win64 rabbit-hole. Add tools/native-nmake.cmd
and use it as a wrapper to compile a native version of lemon.
Untested on Win32.
svn path=/trunk/; revision=27734
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile.nmake | 2 | ||||
-rwxr-xr-x | tools/native-nmake.cmd | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/tools/Makefile.nmake b/tools/Makefile.nmake index 243f26f764..d1a490b03d 100644 --- a/tools/Makefile.nmake +++ b/tools/Makefile.nmake @@ -29,5 +29,5 @@ maintainer-clean: maintainer-clean-local lemon:: cd lemon - $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake + ..\native-nmake $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake cd .. diff --git a/tools/native-nmake.cmd b/tools/native-nmake.cmd new file mode 100755 index 0000000000..b185a35f0d --- /dev/null +++ b/tools/native-nmake.cmd @@ -0,0 +1,13 @@ +@echo off
+
+rem
+set WIRESHARK_TARGET_PLATFORM=
+
+if NOT DEFINED VCINSTALLDIR goto RUN_NMAKE
+
+if NOT EXIST "%VCINSTALLDIR%\vcvarsall.bat" goto RUN_NMAKE
+
+call "%VCINSTALLDIR%\vcvarsall.bat"
+
+:RUN_NMAKE
+%1 %2 %3 %4 %5 %6 %7 %8 %9
|