https://github.com/EasyCrypt/easycrypt
Revision 489ff1728c70bb1ca06f3bba914ec7d3b1a9b3d5 authored by Benjamin Gregoire on 30 June 2021, 09:54:24 UTC, committed by Benjamin Gregoire on 30 June 2021, 10:01:04 UTC
1 parent 410f882
Raw File
Tip revision: 489ff1728c70bb1ca06f3bba914ec7d3b1a9b3d5 authored by Benjamin Gregoire on 30 June 2021, 09:54:24 UTC
default.nix
Tip revision: 489ff17
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