https://github.com/EasyCrypt/easycrypt
Revision fd804d654e4cf813ed9b7e462025312f94758752 authored by Emilio Jesus Gallego Arias on 22 August 2019, 15:33:19 UTC, committed by Pierre-Yves Strub on 16 November 2021, 17:35:04 UTC
Add experimental support for buidling `ec` using dune. Use

```
dune build
```

We don't add support for building the stdlib yet.
1 parent 743a247
Raw File
Tip revision: fd804d654e4cf813ed9b7e462025312f94758752 authored by Emilio Jesus Gallego Arias on 22 August 2019, 15:33:19 UTC
[build] Add basic dune support
Tip revision: fd804d6
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