https://github.com/EasyCrypt/easycrypt
Revision 2c5203d09a4022c686708c3495df4e9c32106939 authored by Pierre-Yves Strub on 13 September 2019, 11:01:05 UTC, committed by Pierre-Yves Strub on 13 September 2019, 11:01:20 UTC
1 parent 13b7bdd
Raw File
Tip revision: 2c5203d09a4022c686708c3495df4e9c32106939 authored by Pierre-Yves Strub on 13 September 2019, 11:01:05 UTC
more on lists (assoc, onth) + some facts on fmap/assoc
Tip revision: 2c5203d
Makefile.system
# -*- Makefile -*-

# --------------------------------------------------------------------
OCAML    := $(shell ocamlbuild -which ocamlc 2>/dev/null || echo false)
CC       := gcc
TAR      := tar
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 Darwin,$(UNAME)))
  TAR := gtar
endif

ifneq (,$(findstring mingw,$(MACHINE)))
EXE := .exe
endif

ifneq (,$(findstring cygwin,$(MACHINE)))
EXE := .exe
endif
back to top