https://github.com/EasyCrypt/easycrypt
Revision 221e1b26b0d5d7cb2df1ea039e37088346088fae authored by François Dupressoir on 10 October 2020, 10:47:31 UTC, committed by François Dupressoir on 10 October 2020, 10:47:31 UTC
2 parent s 933e315 + 469a12a
Raw File
Tip revision: 221e1b26b0d5d7cb2df1ea039e37088346088fae authored by François Dupressoir on 10 October 2020, 10:47:31 UTC
Merge branch '1.0' into 1.0-preview
Tip revision: 221e1b2
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