Idris2-boot/dist/config.mk
Ben Davies 93871c5fb9 Fix builds on *BSD
This makes it so gmake gets used instead of make on *BSD, refactors how
platforms are handled in general.
2020-04-22 11:09:05 -03:00

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