https://github.com/EasyCrypt/easycrypt
Revision f4f3f9422544a6c5f253fbd87b37d0d0c08017ae authored by Pierre-Yves Strub on 04 January 2021, 10:26:56 UTC, committed by Pierre-Yves Strub on 04 January 2021, 10:26:56 UTC
1 parent 3671d46
Raw File
Tip revision: f4f3f9422544a6c5f253fbd87b37d0d0c08017ae authored by Pierre-Yves Strub on 04 January 2021, 10:26:56 UTC
implement -R flag
Tip revision: f4f3f94
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