# Set FC unless it's defined by an environment variable
ifeq ($(origin FC),default)
  FC=gfortran
endif

# Set MBITS to the number of bits used by the system (used for Darwin)
MBITS := $(shell getconf LONG_BIT)
# Earlier versions of Mac OS X need to add -lSystemStubs to DARWINLIBS
DARWINLIBS=

FFLAGS += -std=legacy
CFLAGS += -Wno-implicit-function-declaration