Idris2-boot/dist/config.mk
Edwin Brady c7f893f6aa Reorganise optimisation options for C
It should be -O2 for the rts, but -O2 takes ages for idris2.c so should
be saved for releases (also OPT should be able to be edited easily for
e.g. adding profiling)
Also default to clang (perhaps it would be better if we could check
whether clang was available first, but it does a better job as the
default overall).
2020-05-16 18:08:00 +01:00

18 lines
400 B
Makefile

include $(IDRIS2_CURDIR)/config.mk
CFLAGS += $(OPT) -std=c99 -pipe -fdata-sections -ffunction-sections -D_POSIX_C_SOURCE=200809L
ifeq ($(OS),bsd)
GMP_INCLUDE_DIR = -I/usr/local/include
GMP_LIB_DIR = -L/usr/local/lib
else ifeq ($(OS),darwin)
GMP_INCLUDE_DIR =
GMP_LIB_DIR =
else ifeq ($(OS),windows)
GMP_INCLUDE_DIR =
GMP_LIB_DIR =
else
GMP_INCLUDE_DIR =
GMP_LIB_DIR =
endif