https://github.com/EasyCrypt/easycrypt
Revision d7f94f28ec160f1aad2a5c7a221c10b896a64d4e authored by Pierre-Yves Strub on 15 September 2015, 09:01:07 UTC, committed by Pierre-Yves Strub on 15 September 2015, 09:01:07 UTC
1 parent aa8a78e
Raw File
Tip revision: d7f94f28ec160f1aad2a5c7a221c10b896a64d4e authored by Pierre-Yves Strub on 15 September 2015, 09:01:07 UTC
build-linux: nits.
Tip revision: d7f94f2
Makefile.system
# -*- Makefile -*-

# --------------------------------------------------------------------
OCAML    := $(shell ocamlbuild -which ocamlc 2>/dev/null || echo false)
CC       := gcc
MACHINE  := $(shell $(OCAML) -ccopt -dumpmachine dummy.c 2>/dev/null)
UNAME    := $(shell uname -s)
EXE      :=

ifneq (,$(findstring CYGWIN,$(UNAME)))
  CC = $(MACHINE)-gcc
endif

ifneq (,$(findstring mingw,$(MACHINE)))
EXE := .exe
endif

ifneq (,$(findstring cygwin,$(MACHINE)))
EXE := .exe
endif
back to top