https://github.com/EasyCrypt/easycrypt
Revision 67392e160a50ddf0b2778179546fafda8c9b6da6 authored by Cécile BARITEL-RUET on 16 September 2019, 12:54:52 UTC, committed by Cécile BARITEL-RUET on 16 September 2019, 12:56:20 UTC
1 parent a8e2f10
Raw File
Tip revision: 67392e160a50ddf0b2778179546fafda8c9b6da6 authored by Cécile BARITEL-RUET on 16 September 2019, 12:54:52 UTC
RndProd : random oracle of a dprod
Tip revision: 67392e1
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