https://github.com/EasyCrypt/easycrypt
Revision 49d7ad3b6738e58bc37acc3e68f02ccbc9922e94 authored by François Dupressoir on 14 April 2021, 15:32:51 UTC, committed by François Dupressoir on 14 April 2021, 15:32:51 UTC
1 parent d809ef8
Raw File
Tip revision: 49d7ad3b6738e58bc37acc3e68f02ccbc9922e94 authored by François Dupressoir on 14 April 2021, 15:32:51 UTC
'Cleanup' but it's mostly shifting things around
Tip revision: 49d7ad3
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