https://github.com/EasyCrypt/easycrypt
Revision 52bdbac7066388ad4f95e5958d7aaa214df3e5b0 authored by Benjamin Gregoire on 27 November 2019, 11:59:10 UTC, committed by Benjamin Gregoire on 27 November 2019, 11:59:10 UTC
1 parent 78e8f6e
Raw File
Tip revision: 52bdbac7066388ad4f95e5958d7aaa214df3e5b0 authored by Benjamin Gregoire on 27 November 2019, 11:59:10 UTC
some tests
Tip revision: 52bdbac
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