https://github.com/EasyCrypt/easycrypt
Revision c750a581c3305c0d4c7a27205f9922ec3077de7b authored by François Dupressoir on 20 May 2021, 09:59:20 UTC, committed by François Dupressoir on 20 May 2021, 09:59:20 UTC
1 parent 82fd774
Raw File
Tip revision: c750a581c3305c0d4c7a27205f9922ec3077de7b authored by François Dupressoir on 20 May 2021, 09:59:20 UTC
FinType.FinType → FinType
Tip revision: c750a58
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