https://github.com/EasyCrypt/easycrypt
Raw File
Tip revision: 92c2f2a2704a5a228499fe9af7b8faec9861e286 authored by Pierre-Yves Strub on 09 May 2018, 11:25:50 UTC
Pragmas for printing pre/post as a list of their resp. conjunctions
Tip revision: 92c2f2a
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