mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-23 20:22:34 +03:00
c7f893f6aa
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).
18 lines
400 B
Makefile
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
|