summaryrefslogtreecommitdiff
path: root/core/src/lua-cjson/makefile
blob: 8a95507ba1cbda5b4312a502e964c24f23f4a200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# prefix
include $(PRO_DIR)/prefix.mak

# module name
NAMES 					= lua-cjson

# module type
lua-cjson_TYPE 			= LIB

# config
lua-cjson_CONFIG 		= n

# core files
lua-cjson_C_FILES 		+= \
						lua-cjson/dtoa \
						lua-cjson/g_fmt \
						lua-cjson/strbuf \
						lua-cjson/lua_cjson

# cflags
# Use internal strtod() / g_fmt() code for performance and disable multi-thread
lua-cjson_CFLAGS 		+= -DNDEBUG -DUSE_INTERNAL_FPCONV

# includes
lua-cjson_INC_DIRS 		+= \
						../luajit/luajit/src

# use given lua-cjson library?
ifdef LUA_CJSON_LIBS
lua-cjson_C_FILES 		:=
lua-cjson_INC_DIRS 		:=
endif

# suffix
include $(PRO_DIR)/suffix.mak