summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscuri <scuri>2008-12-12 18:03:31 +0000
committerscuri <scuri>2008-12-12 18:03:31 +0000
commit73b849ed3ee5ec08b3d35a16b3c043d942e904a7 (patch)
tree7c42778a858304f24bd509844039780ee33fccd5
parent8d77d461cb1a472a33d9cac18ac77ec6d2944877 (diff)
*** empty log message ***
-rw-r--r--src/tecmake_compact.mak22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/tecmake_compact.mak b/src/tecmake_compact.mak
index 7a4a2ad..0fbdb03 100644
--- a/src/tecmake_compact.mak
+++ b/src/tecmake_compact.mak
@@ -5,7 +5,7 @@
#-------------------------------------------------------------------------#
# Tecmake Version
-VERSION = 3.16
+VERSION = 3.17
# First target
.PHONY: build
@@ -123,9 +123,13 @@ OBJROOT = $(PROJDIR)/obj
# Byte Order and Word Size
ifneq ($(findstring x86, $(TEC_SYSARCH)), )
- TEC_BYTEORDER = TEC_LITTLEENDIAN
+ TEC_BYTEORDER = TEC_LITTLEENDIAN
+else
+ifeq ($(TEC_SYSARCH), arm)
+ TEC_BYTEORDER = TEC_LITTLEENDIAN
else
- TEC_BYTEORDER = TEC_BIGENDIAN
+ TEC_BYTEORDER = TEC_BIGENDIAN
+endif
endif
ifeq ($(TEC_SYSARCH), x86_64)
@@ -591,19 +595,23 @@ ifdef USE_IUPLUA
endif
ifdef USE_LUA
+ LUALIB ?= $(LUA)/lib/$(TEC_UNAME)
ifdef USE_STATIC
ifndef NO_LUALIB
- SLIB += $(LUA)/lib/$(TEC_UNAME)/liblualib$(LUASUFX).a
+ SLIB += $(LUALIB)/liblualib$(LUASUFX).a
endif
- SLIB += $(LUA)/lib/$(TEC_UNAME)/liblua$(LUASUFX).a
+ SLIB += $(LUALIB)/liblua$(LUASUFX).a
else
ifndef NO_LUALIB
LIBS += lualib$(LUASUFX)
endif
LIBS += lua$(LUASUFX)
- LDIR += $(LUA)/lib/$(TEC_UNAME)
+ LDIR += $(LUALIB)
endif
- INCLUDES += $(LUA)/include
+
+ LUAINC ?= $(LUA)/include
+ INCLUDES += $(LUAINC)
+
LUABINDIR ?= $(LUA)/bin/$(TEC_UNAME)
BIN2C := $(LUABINDIR)/bin2c$(LUASUFX)
LUAC := $(LUABINDIR)/luac$(LUASUFX)