https://github.com/EasyCrypt/easycrypt
Revision ab62416f4004818d42e0ed033d31d1633258e353 authored by Christian Doczkal on 24 October 2021, 10:45:16 UTC, committed by Pierre-Yves Strub on 16 November 2021, 17:35:04 UTC
1 parent 15946aa
Raw File
Tip revision: ab62416f4004818d42e0ed033d31d1633258e353 authored by Christian Doczkal on 24 October 2021, 10:45:16 UTC
adapt to consistent use of mu1
Tip revision: ab62416
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