https://github.com/EasyCrypt/easycrypt
Revision 960a7db2e3973354c5230047b57011db5ac285e0 authored by Pierre-Yves Strub on 27 April 2018, 11:50:55 UTC, committed by Pierre-Yves Strub on 27 April 2018, 11:50:55 UTC
1 parent 7f33e2a
Raw File
Tip revision: 960a7db2e3973354c5230047b57011db5ac285e0 authored by Pierre-Yves Strub on 27 April 2018, 11:50:55 UTC
Tip revision: 960a7db
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