https://github.com/EasyCrypt/easycrypt
Revision 943b847475a55d975920eaf565ff158698e98ab7 authored by Benjamin Gregoire on 10 December 2019, 14:36:33 UTC, committed by Benjamin Gregoire on 10 December 2019, 14:36:33 UTC
2 parent s 3acf93f + 47c0851
Raw File
Tip revision: 943b847475a55d975920eaf565ff158698e98ab7 authored by Benjamin Gregoire on 10 December 2019, 14:36:33 UTC
Merge remote-tracking branch 'origin/1.0' into deploy-simple-stuff
Tip revision: 943b847
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