https://github.com/EasyCrypt/easycrypt
Revision 6857723e50824c94d127066a0cb93e913485f738 authored by Benjamin Gregoire on 24 November 2020, 13:48:55 UTC, committed by Benjamin Gregoire on 24 November 2020, 13:49:28 UTC
1 parent fcdfcbd
Raw File
Tip revision: 6857723e50824c94d127066a0cb93e913485f738 authored by Benjamin Gregoire on 24 November 2020, 13:48:55 UTC
simplify user reduction
Tip revision: 6857723
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