https://github.com/EasyCrypt/easycrypt
Revision cefe8724fd3bb4d89718351df9951ab5cb437a13 authored by François Dupressoir on 20 April 2018, 09:50:15 UTC, committed by Pierre-Yves Strub on 20 April 2018, 16:27:35 UTC
1 parent 61fef31
Raw File
Tip revision: cefe8724fd3bb4d89718351df9951ab5cb437a13 authored by François Dupressoir on 20 April 2018, 09:50:15 UTC
porting example Upto
Tip revision: cefe872
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