Commit 647d843c by POTTIER Francois

Makefile fix: when determining whether the suffix `.exe` should be used, test…

Makefile fix: when determining whether the suffix `.exe` should be used, test whether the OS is Windows, not whether the compiler is MSVC.
parent 45374ab5
# Changes
## 2017/09/26
* `Makefile` fix: when determining whether the suffix `.exe` should be used,
one should test whether the OS is Windows,
not whether the compiler is MSVC.
(Suggested by Jonathan Protzenko.)
## 2017/07/12
* Include the LaTeX sources of the manual in the official `.tar.gz` archive.
......
......@@ -57,19 +57,25 @@ MLYLIB := src/standard.mly
# A few settings differ on Windows versus Unix.
# If the compiler is MSVC, then the name of the executable file ends in .exe,
# and object file names end in .obj instead of .o.
# If the compiler is MSVC, then object file names end in .obj instead of .o.
ifneq (,$(shell ocamlc -config | grep -E "ccomp_type: msvc"))
MENHIREXE := menhir.exe
OBJ := obj
# LIBSUFFIX := lib
else
MENHIREXE := menhir
OBJ := o
# LIBSUFFIX := a
endif
# If we are under Windows (regardless of whether we are using MSVC or mingw)
# then the name of the executable file ends in .exe.
ifeq ($(OS),Windows_NT)
MENHIREXE := menhir.exe
else
MENHIREXE := menhir
endif
# The path $(installation_libdir), which is recorded in src/installation.ml (see
# below), must sometimes be translated using cygpath.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment