2020-04-22 16:14:11 +03:00
|
|
|
RANLIB ?=ranlib
|
|
|
|
CFLAGS :=-O2 -Wall -std=c99 -pipe -fdata-sections -ffunction-sections -D_POSIX_C_SOURCE=200809L $(CFLAGS)
|
2020-02-24 13:31:24 +03:00
|
|
|
|
2020-04-22 16:14:11 +03:00
|
|
|
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
|
2020-02-24 13:31:24 +03:00
|
|
|
else ifeq ($(OS),windows)
|
2020-04-22 16:14:11 +03:00
|
|
|
GMP_INCLUDE_DIR =
|
|
|
|
GMP_LIB_DIR =
|
|
|
|
SHLIB_SUFFIX =.DLL
|
2020-02-24 13:31:24 +03:00
|
|
|
else
|
2020-04-22 16:14:11 +03:00
|
|
|
GMP_INCLUDE_DIR =
|
|
|
|
GMP_LIB_DIR =
|
|
|
|
SHLIB_SUFFIX =.so
|
2020-02-24 13:31:24 +03:00
|
|
|
endif
|