https://github.com/EasyCrypt/easycrypt
Revision f16cb24e9e342d7b211473db5d18b18efbf20442 authored by François Dupressoir on 30 July 2021, 13:03:11 UTC, committed by François Dupressoir on 30 July 2021, 13:03:11 UTC
1 parent 719a12d
Raw File
Tip revision: f16cb24e9e342d7b211473db5d18b18efbf20442 authored by François Dupressoir on 30 July 2021, 13:03:11 UTC
Narrow the gap at the top
Tip revision: f16cb24
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