https://github.com/EasyCrypt/easycrypt
Revision 4bcb388f5a4dc17615363b80cd5aadc4eaeadf46 authored by Pierre-Yves Strub on 20 December 2017, 13:51:13 UTC, committed by Pierre-Yves Strub on 20 December 2017, 13:51:13 UTC
1 parent ee3d6a1
Raw File
Tip revision: 4bcb388f5a4dc17615363b80cd5aadc4eaeadf46 authored by Pierre-Yves Strub on 20 December 2017, 13:51:13 UTC
Tip revision: 4bcb388
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