https://github.com/EasyCrypt/easycrypt
Revision 8ae369b30cfe1a6cb61b3dee0b5b265ed3f94fb1 authored by Pierre-Yves Strub on 04 January 2016, 14:33:06 UTC, committed by Pierre-Yves Strub on 04 January 2016, 14:57:12 UTC
1 parent 675c6bd
Raw File
Tip revision: 8ae369b30cfe1a6cb61b3dee0b5b265ed3f94fb1 authored by Pierre-Yves Strub on 04 January 2016, 14:33:06 UTC
license: do not create trailing whitespaces
Tip revision: 8ae369b
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