https://github.com/EasyCrypt/easycrypt
Revision 23b938ab423fa8b769be7e2faa1b59a3625e3869 authored by Pierre-Yves Strub on 09 June 2020, 11:32:57 UTC, committed by Pierre-Yves Strub on 09 June 2020, 11:33:32 UTC
Co-Authored-By: Benjamin Gregoire <benjamin.gregoire@inria.fr>
Co-Authored-By: Pierre-Yves Strub <pierre-yves@strub.nu>
1 parent f71bd6c
Raw File
Tip revision: 23b938ab423fa8b769be7e2faa1b59a3625e3869 authored by Pierre-Yves Strub on 09 June 2020, 11:32:57 UTC
Refactor & merge min/max & integer/real pow.
Tip revision: 23b938a
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