mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-24 04:43:25 +03:00
dcaaed2060
We don't use it (the performance overhead is too much) so don't require it to be linked in.
30 lines
730 B
Makefile
30 lines
730 B
Makefile
RANLIB ?=ranlib
|
|
CFLAGS :=-O2 -Wall -std=c99 -pipe -fdata-sections -ffunction-sections -D_POSIX_C_SOURCE=200809L $(CFLAGS)
|
|
|
|
ifneq (, $(findstring bsd, $(MACHINE)))
|
|
GMP_INCLUDE_DIR :=
|
|
else
|
|
GMP_INCLUDE_DIR :=-I/usr/local/include
|
|
endif
|
|
|
|
MACHINE := $(shell $(CC) -dumpmachine)
|
|
ifneq (, $(findstring darwin, $(MACHINE)))
|
|
OS :=darwin
|
|
else ifneq (, $(findstring cygwin, $(MACHINE)))
|
|
OS :=windows
|
|
else ifneq (, $(findstring mingw, $(MACHINE)))
|
|
OS :=windows
|
|
else ifneq (, $(findstring windows, $(MACHINE)))
|
|
OS :=windows
|
|
else
|
|
OS :=unix
|
|
endif
|
|
|
|
ifeq ($(OS),darwin)
|
|
SHLIB_SUFFIX :=.dylib
|
|
else ifeq ($(OS),windows)
|
|
SHLIB_SUFFIX :=.DLL
|
|
else
|
|
SHLIB_SUFFIX :=.so
|
|
endif
|