https://github.com/EasyCrypt/easycrypt
Revision d8fbd622de3cc2208ff9f0d6448c5d61705ee1e6 authored by Pierre-Yves Strub on 18 February 2021, 10:59:19 UTC, committed by Pierre-Yves Strub on 18 February 2021, 10:59:19 UTC
1 parent a7ca8c7
Raw File
Tip revision: d8fbd622de3cc2208ff9f0d6448c5d61705ee1e6 authored by Pierre-Yves Strub on 18 February 2021, 10:59:19 UTC
CRT: spec
Tip revision: d8fbd62
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