mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 10:21:39 +03:00
93871c5fb9
This makes it so gmake gets used instead of make on *BSD, refactors how platforms are handled in general.
21 lines
482 B
Makefile
21 lines
482 B
Makefile
RANLIB ?=ranlib
|
|
CFLAGS :=-O2 -Wall -std=c99 -pipe -fdata-sections -ffunction-sections -D_POSIX_C_SOURCE=200809L $(CFLAGS)
|
|
|
|
ifeq ($(OS),bsd)
|
|
GMP_INCLUDE_DIR =-I/usr/local/include
|
|
GMP_LIB_DIR =-L/usr/local/lib
|
|
SHLIB_SUFFIX =.so
|
|
else ifeq ($(OS),darwin)
|
|
GMP_INCLUDE_DIR =
|
|
GMP_LIB_DIR =
|
|
SHLIB_SUFFIX =.dylib
|
|
else ifeq ($(OS),windows)
|
|
GMP_INCLUDE_DIR =
|
|
GMP_LIB_DIR =
|
|
SHLIB_SUFFIX =.DLL
|
|
else
|
|
GMP_INCLUDE_DIR =
|
|
GMP_LIB_DIR =
|
|
SHLIB_SUFFIX =.so
|
|
endif
|