summaryrefslogtreecommitdiff
path: root/Makefile (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Work around Solaris make limitationsMark Pulford2012-03-041-5/+8
| | | | | Remove ?= and := assignment operators from the Makefile since they are not supported by Solaris make.
* Remove ENABLE_CJSON_GLOBAL optionMark Pulford2012-03-041-1/+0
| | | | | Remove ENABLE_CJSON_GLOBAL option since it is not recommended or necessary and doesn't need to be discussed in the manual.
* Rename USE_INTERNAL_DTOA to USE_INTERNAL_FPCONVMark Pulford2012-03-041-2/+2
|
* Convert perf results to HTML and update for 2.0.0Mark Pulford2012-03-041-6/+10
|
* Add MULTIPLE_THREADS to Makefile #define listMark Pulford2012-03-041-1/+3
|
* Disable registration of cjson global variableMark Pulford2012-03-041-1/+1
| | | | | | | Disable registration of cjson module table global variable in the default build. Automatically creating a variable in the global namespace can cause issues for other software and is no longer recommended with Lua.
* Add make target for cjson.util and scriptsMark Pulford2012-03-041-5/+27
| | | | | | | Add install-extra make target to install cjson.util module, extra scripts and tests. Use "cp" / "chmod" instead of "install" since they are more portable.
* Use internal dtoa/strtod for double conversionMark Pulford2012-03-041-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | The internal Lua CJSON dtoa/strtod routines have locale support disabled. This avoids problems under locales with comma decimal separators. Build changes: - CMake: Check for big endian architectures - Makefile: Provide option to build with dtoa.c Modifications to dtoa.c: - Include locale dtoa_config.h configuration - Rename Infinity/NaN to inf/nan to match common C libraries - Rename strtod() -> internal_strtod() to prevent conflict with libc function Modifications to g_fmt.c: - Return output string length (instead of original buffer pointer) - Provide precision as an argument to g_fmt() - Silence compilations warnings from vendor source - while(a = b) - Unused label "done:" - Only swap to scientific notation when once the number of decimal digits required exceeds the precision available. This matches standard printf format %g. - Display a "0" in front of numbers < 1.
* Tidy Makefile sections and commentsMark Pulford2012-01-021-17/+16
|
* Fix Windows TARGET modificationsMark Pulford2012-01-021-3/+3
|
* Add build option to disable invalid numbersMark Pulford2012-01-011-3/+5
| | | | | Windows MinGW doesn't convert Infinity/NaN/hexadecimal numbers. Add DISABLE_INVALID_NUMBERS build option option to disable invalid numbers.
* Add Windows MinGW target to MakefileMark Pulford2012-01-011-4/+12
|
* Add NDEBUG to performance CFLAGSMark Pulford2011-12-311-1/+1
|
* Add support for Lua 5.2 and cjson.newMark Pulford2011-12-301-1/+2
| | | | | | | | | | | | | | Update all Lua scripts to use new module init style everywhere: local json = require "cjson" Lua CJSON does not register a global table under Lua 5.2. The global table can be disabled under Lua 5.1 with DISABLE_CJSON_GLOBAL. Other changes: - Store CJSON configuration as an upvalue for each function. - Add "cjson.new" function to create another module table with a separate configuration. - Add _NAME and _VERSION variables.
* Add fpconv to work around comma decimal pointsMark Pulford2011-12-301-1/+1
| | | | | | | | Create a separate buffer and translate comma <> dot before calling strtod(), and after calling sprintf() as required. - Add "update_locale" Lua API call and init locale on module load. - Move sprintf format string to fpconv
* Remove POSIX locale workaroundMark Pulford2011-12-291-12/+2
|
* Automate package releases with build-packages.shMark Pulford2011-12-151-7/+0
| | | | | | build-packages.sh has several advantages: - Automatically bumps version numbers - Builds HTML documentation on the fly
* Remove external VERSION #define for lua_cjson.cMark Pulford2011-12-131-1/+1
| | | | | The external #define complicates compilation but is only used in lua_cjson.c and Makefile.
* Fix RPM buildMark Pulford2011-12-131-2/+2
| | | | | Previously the the RPM build would overwrite CJSON_CFLAGS but didn't provide the necessary default CFLAGS (-fpic -DVERSION ..).
* Convert documentation to AsciiDocMark Pulford2011-12-121-1/+6
| | | | | | | - Rename README to manual.txt and add AsciiDoc markup - Rewrite some sections of documentation (more outstanding) - Add "doc" Makefile target - Update RPM spec file to include HTML output
* Fix Makefile for use with non-GNU makeMark Pulford2011-12-081-22/+23
| | | | | | | | | | | | - Remove GNU make "override" statements. - Add OBJS variable since there is no portable way to specify all targets for linking. Also: - Put build defaults at the top to avoid potential confusion. - Don't assume a Linux platform. Default to USE_POSIX_SETLOCALE. - Change "install -d" to mkdir/install since the former isn't available on some platforms (Solaris).
* Add common platform defaults/overrides to MakefileMark Pulford2011-11-291-19/+19
|
* Improve build documentation and layoutMark Pulford2011-11-291-20/+38
|
* Update version to 1.0.4Mark Pulford2011-11-271-1/+1
|
* Add USE_POSIX_SETLOCALE optionMark Pulford2011-10-071-2/+6
| | | | | | | | | | Add USE_POSIX_SETLOCALE option for platforms missing uselocale(). Document locale options in README, Makefile & rockspec. Also: - Rename USE_POSIX_LOCALE define to USE_POSIX_USELOCALE. - Use uselocale() by default through Makefile (Linux, OSX). - Use setlocale() by default through rockspec (other platforms).
* Rename MISSING_ISINF to USE_INTERNAL_ISINFMark Pulford2011-10-071-2/+2
|
* Support locales which use comma decimal separatorsMark Pulford2011-10-051-3/+7
| | | | | | | | | | | | | Some locales (cs_CZ, de_DE,..) use a comma as their decimal separator. This causes CJSON to generate incorrect JSON (Eg, [10,1]), and fail when parsing some valid JSON (Eg, [10,"test"]). Added USE_POSIX_LOCALE #define which harnesses the thread-safe POSIX.1-2008 locale support (newlocale(), uselocale(), freelocale()) to temporarily use the POSIX locale during JSON conversion. Some older POSIX operating systems with xlocale.h (MacOSX) are also supported.
* Add work around for missing isinf() on SolarisMark Pulford2011-08-111-0/+3
| | | | | | | Some versions of Solaris (Eg, Solaris 11 / GCC 3.4.3) are missing isinf(). Provide a work around when MISSING_ISINF is defined. Reported by: Zhang "agentzh" Yichun <agentzh@gmail.com>
* Update version to 1.0.3Mark Pulford2011-08-101-1/+1
|
* Update version to 1.0.2Mark Pulford2011-05-291-1/+1
|
* Use .zip format with LuaRocksMark Pulford2011-05-291-0/+2
| | | | Windows has poor support for "tar.gz", but all platforms support "zip".
* Change version number for developmentMark Pulford2011-05-161-1/+1
|
* Add rockspec to build under LuaRocksMark Pulford2011-05-151-1/+0
| | | | | | Remove "-lm" from LDFLAGS in Makefile since it breaks the build under Windows and isn't required under Linux. Math lib fix suggested by: Steve Donovan <steve.j.donovan@gmail.com>
* Add runtime option for persistent encode bufferMark Pulford2011-05-101-1/+1
|
* Update version to 1.0.1Mark Pulford2011-05-101-1/+1
|
* Add build support for Mac OSXMark Pulford2011-05-101-1/+11
|
* Add build and package supportMark Pulford2011-05-011-0/+31
- Add Makefile and RPM spec file - Add cjson.version variable