https://github.com/EasyCrypt/easycrypt
Revision 4e72a78663de85db9130c65e25b924a903c17bbe authored by Antoine Séré on 26 February 2021, 23:06:36 UTC, committed by Antoine Séré on 26 February 2021, 23:06:36 UTC
1 parent be9057b
Raw File
Tip revision: 4e72a78663de85db9130c65e25b924a903c17bbe authored by Antoine Séré on 26 February 2021, 23:06:36 UTC
Advanced proof
Tip revision: 4e72a78
Makefile.system
# -*- Makefile -*-

# --------------------------------------------------------------------
OCAML    := $(shell ocamlbuild -which ocamlc 2>/dev/null || echo false)
CC       := gcc
TAR      := tar
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 Darwin,$(UNAME)))
  TAR := gtar
endif

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

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