diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
| @@ -15,13 +15,17 @@ LDFLAGS += -shared | |||
| 15 | LUA_INCLUDE_DIR ?= $(PREFIX)/include | 15 | LUA_INCLUDE_DIR ?= $(PREFIX)/include |
| 16 | LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION) | 16 | LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION) |
| 17 | 17 | ||
| 18 | # Some versions of Solaris are missing isinf(). Add -DMISSING_ISINF to | ||
| 19 | # CFLAGS to work around this bug. | ||
| 20 | |||
| 21 | #CFLAGS ?= -g -Wall -pedantic -fno-inline | 18 | #CFLAGS ?= -g -Wall -pedantic -fno-inline |
| 22 | CFLAGS ?= -g -O3 -Wall -pedantic | 19 | CFLAGS ?= -g -O3 -Wall -pedantic |
| 23 | override CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\" | 20 | override CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\" |
| 24 | 21 | ||
| 22 | ## Conditional work arounds | ||
| 23 | # Handle Solaris platforms that are missing isinf(). | ||
| 24 | #override CFLAGS += -DMISSING_ISINF | ||
| 25 | # Handle locales that use comma as a decimal separator on locale aware | ||
| 26 | # platforms. Requires POSIX-1.2008 support. | ||
| 27 | override CFLAGS += -DUSE_POSIX_LOCALE | ||
| 28 | |||
| 25 | INSTALL ?= install | 29 | INSTALL ?= install |
| 26 | 30 | ||
| 27 | .PHONY: all clean install package | 31 | .PHONY: all clean install package |
