https://github.com/EasyCrypt/easycrypt
Revision d229960f427b3cd5873f26e160d120eb25539564 authored by Antoine Séré on 05 October 2021, 16:07:58 UTC, committed by Antoine Séré on 05 October 2021, 16:07:58 UTC
1 parent 64d401f
Raw File
Tip revision: d229960f427b3cd5873f26e160d120eb25539564 authored by Antoine Séré on 05 October 2021, 16:07:58 UTC
Pre checkout
Tip revision: d229960
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