https://github.com/EasyCrypt/easycrypt
Revision ef6f0bab485d519e1e1571f22787967c9b5952a3 authored by Pierre-Yves Strub on 09 October 2020, 15:44:59 UTC, committed by Pierre-Yves Strub on 09 October 2020, 15:44:59 UTC
1 parent 6d31cc5
Raw File
Tip revision: ef6f0bab485d519e1e1571f22787967c9b5952a3 authored by Pierre-Yves Strub on 09 October 2020, 15:44:59 UTC
README: add --full-config option (why3 config)
Tip revision: ef6f0ba
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