https://github.com/EasyCrypt/easycrypt
Revision 3b4aeec1dbe36060f75b27e5dfa1b97f5fe1b3dd authored by Pierre-Yves Strub on 12 October 2017, 13:17:20 UTC, committed by Pierre-Yves Strub on 12 October 2017, 13:17:20 UTC
1 parent 8999c70
Raw File
Tip revision: 3b4aeec1dbe36060f75b27e5dfa1b97f5fe1b3dd authored by Pierre-Yves Strub on 12 October 2017, 13:17:20 UTC
New facts on lists
Tip revision: 3b4aeec
Makefile.system
# -*- Makefile -*-

# --------------------------------------------------------------------
OCAML    := $(shell ocamlbuild -which ocamlc 2>/dev/null || echo false)
CC       := gcc
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 mingw,$(MACHINE)))
EXE := .exe
endif

ifneq (,$(findstring cygwin,$(MACHINE)))
EXE := .exe
endif
back to top