Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-02 11:45:40 +0400
committerMark Pulford <mark@kyne.com.au>2012-01-02 11:45:40 +0400
commit3577e3548471da045a5198d2a9a64eba5383d8da (patch)
tree476d89cbd0bc6e865fbee972955f513152daae4a
parent2c9468f62b51f0fa32c9c79f6195f9df755be576 (diff)
Tidy Makefile sections and comments
-rw-r--r--Makefile33
1 files changed, 16 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index 1d389b2..57f2e1b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,12 @@
-LUA_VERSION = 5.1
-
-## Available defines for CJSON_CFLAGS
-#
-# USE_INTERNAL_ISINF: Workaround for Solaris platforms missing isinf().
-# DISABLE_CJSON_GLOBAL: Do not store module is "cjson" global.
-# DISABLE_INVALID_NUMBERS: Permanently disable invalid JSON numbers:
-# - NaN, Infinity, hex.
-
-## Build defaults
+##### Available defines for CJSON_CFLAGS #####
+##
+## USE_INTERNAL_ISINF: Workaround for Solaris platforms missing isinf().
+## DISABLE_CJSON_GLOBAL: Do not store module is "cjson" global.
+## DISABLE_INVALID_NUMBERS: Permanently disable invalid JSON numbers:
+## NaN, Infinity, hex.
+
+##### Build defaults #####
+LUA_VERSION = 5.1
TARGET = cjson.so
PREFIX = /usr/local
#CFLAGS = -g -Wall -pedantic -fno-inline
@@ -18,12 +17,12 @@ LUA_INCLUDE_DIR = $(PREFIX)/include
LUA_MODULE_DIR = $(PREFIX)/lib/lua/$(LUA_VERSION)
INSTALL_CMD = install
-## Platform overrides
-#
-# Tweak one of the platform sections below to suit your situation.
-#
-# See http://lua-users.org/wiki/BuildingModules for further platform
-# specific details.
+##### Platform overrides #####
+##
+## Tweak one of the platform sections below to suit your situation.
+##
+## See http://lua-users.org/wiki/BuildingModules for further platform
+## specific details.
## Linux
@@ -43,7 +42,7 @@ INSTALL_CMD = install
#CJSON_CFLAGS = -DDISABLE_INVALID_NUMBERS
#CJSON_LDFLAGS = -shared -L$(PREFIX)/lib -llua51
-## End platform specific section
+##### End customisable sections #####
BUILD_CFLAGS = -I$(LUA_INCLUDE_DIR) $(CJSON_CFLAGS)
OBJS := lua_cjson.o strbuf.o fpconv.o