https://github.com/EasyCrypt/easycrypt
Revision dd27d32e6cd796cf3c0518969f3b3dfd80c2ca53 authored by François Dupressoir on 22 February 2018, 10:57:52 UTC, committed by François Dupressoir on 22 February 2018, 10:57:52 UTC
1 parent 850f427
Raw File
Tip revision: dd27d32e6cd796cf3c0518969f3b3dfd80c2ca53 authored by François Dupressoir on 22 February 2018, 10:57:52 UTC
whitespace
Tip revision: dd27d32
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