Files
b2txt25/language_model/srilm-1.7.3/common/Makefile.machine.msvc9
2025-07-02 12:18:09 -07:00

38 lines
1.4 KiB
Makefile

# Makefile to augment Makefile.machine.msvc for Visual Studio 2008.
# Please first set up your environment for Visual Studio 2008 by running
# the Microsoft .bat setup file:
# "c:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
#
# NOTE: The command above may fail if the regedit reg.exe program is not
# in your path as may be the default case on Windows 7. Typically, ensure
# C:\windows\system32 is in your path.
#
# This Makefile is essentially equivalent to running:
# make MACHINE_TYPE=msvc MSVCDir=$VCINSTALLDIR
# or
# make MACHINE_TYPE=msvc MSVCDir="C:\\Program Files\\Microsoft Visual Studio 9.0\\VC"
# *EXCEPT* will create binaries in "msvc9*" directories instead of "msvc*".
#
# Among others, the following two environment variables should be set:
# VCINSTALLDIR
# WindowsSdkDir (used to locate mt.exe)
# Use this default location unless overridden on command line
MSVCDir ?= C:\\Program Files\\Microsoft Visual Studio 9.0\\VC
# The casing we expect to find for Visual Studio 9 is
# WindowsSdkDir. But, if not set, will fall back on older
# all caps WINDOWSSDKDIR if set, or common default.
ifeq ($(WindowsSdkDir), )
ifeq ($(WINDOWSSDKDIR), )
WindowsSdkDir = C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\
else
WindowsSdkDir = $(WINDOWSSDKDIR)
endif
endif
# Note that Makefile.machine.msvc internally uses
# WINDOWSSDKDIR but will take the value from WindowsSdkDir if set.
include $(SRILM)/common/Makefile.machine.msvc