https://github.com/EasyCrypt/easycrypt
Revision 0d55fac6a88ba3c22eb7ed09be1e85ceb220159c authored by Alley Stoughton on 04 April 2021, 17:25:21 UTC, committed by Alley Stoughton on 04 April 2021, 17:25:21 UTC
2 parent s bb6d218 + 748c9ef
Raw File
Tip revision: 0d55fac6a88ba3c22eb7ed09be1e85ceb220159c authored by Alley Stoughton on 04 April 2021, 17:25:21 UTC
Merge branch '1.0' into aprhl
Tip revision: 0d55fac
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