https://github.com/EasyCrypt/easycrypt
Revision 9e2c45ba8805b23f623126635c862dc4ec9388d0 authored by Alley Stoughton on 22 February 2018, 17:44:03 UTC, committed by Pierre-Yves Strub on 26 February 2018, 15:04:53 UTC
1 parent 1ca374d
Raw File
Tip revision: 9e2c45ba8805b23f623126635c862dc4ec9388d0 authored by Alley Stoughton on 22 February 2018, 17:44:03 UTC
Fixed poor spacing.
Tip revision: 9e2c45b
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