swh:1:snp:c3d73d28c91356fca26fea391889fee4d070c980
Tip revision: 3a626d5504b0d54870fb3a13830f3172b1fa302a authored by François Dupressoir on 30 March 2021, 13:09:44 UTC
Add a -no-eco option to disable .eco generation
Add a -no-eco option to disable .eco generation
Tip revision: 3a626d5
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