summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJiaojinxing <jiaojinxing1987@gmail.com>2016-06-06 06:07:53 (GMT)
committer Jiaojinxing <jiaojinxing1987@gmail.com>2016-06-06 06:07:53 (GMT)
commit577756c9ce0343d6ab9e08349cf33add85e6453f (patch)
tree0f598d4c00c58cdb801cd4043bbe6b6343ecd8ef
parentc6b2d39e719342ef3e2325b77fdd6de1c7d31885 (diff)
downloadUnQLite-577756c9ce0343d6ab9e08349cf33add85e6453f.zip
UnQLite-577756c9ce0343d6ab9e08349cf33add85e6453f.tar.gz
UnQLite-577756c9ce0343d6ab9e08349cf33add85e6453f.tar.bz2
Updated makefiles, added strip targets.
-rw-r--r--.cproject24
-rw-r--r--.project4
-rw-r--r--Makefile.arm27
-rw-r--r--Makefile.mips25
-rw-r--r--Makefile.ppc25
-rw-r--r--config.mk2
6 files changed, 70 insertions, 37 deletions
diff --git a/.cproject b/.cproject
index b64b79e..e3fbf7a 100644
--- a/.cproject
+++ b/.cproject
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
- <cconfiguration id="com.sylixos.realcoder.toolChain.armsylixeabi.876606152">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.sylixos.realcoder.toolChain.armsylixeabi.876606152" moduleId="org.eclipse.cdt.core.settings" name="Default">
+ <cconfiguration id="com.sylixos.realevo.toolChain.armsylixeabi.876606152">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.sylixos.realevo.toolChain.armsylixeabi.876606152" moduleId="org.eclipse.cdt.core.settings" name="Default">
<macros>
<stringMacro name="SYLIXOS_TOOLCHAIN_PATH" type="VALUE_PATH_DIR" value="C:\ACOINFO\arm-sylixos-toolchain"/>
<stringMacro name="SYLIXOS_TEMPLATE_ARCH" type="VALUE_TEXT"/>
@@ -24,25 +24,25 @@
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactName="${ProjName}" buildProperties="" description="" id="com.sylixos.realcoder.toolChain.armsylixeabi.876606152" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
- <folderInfo id="com.sylixos.realcoder.toolChain.armsylixeabi.876606152.1559469393" name="/" resourcePath="">
- <toolChain id="com.sylixos.realcoder.toolChain.armsylixeabi.1323020600" name="SylixOS Toolchain" superClass="com.sylixos.realcoder.toolChain.armsylixeabi">
- <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.GNU_ELF" id="com.sylixos.realcoder.targetPlatform.armsylixoseabi.209859886" isAbstract="false" name="SylixOS TagetPlagform" osList="win32" superClass="com.sylixos.realcoder.targetPlatform.armsylixoseabi"/>
- <builder id="com.sylixos.realcoder.builder.armsylixeabi.2098924711" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="SylixOS Builder" superClass="com.sylixos.realcoder.builder.armsylixeabi"/>
- <tool id="com.sylixos.realcoder.tool.armsylixeabi.779893987" name="arm-sylixos-eabi-gcc" superClass="com.sylixos.realcoder.tool.armsylixeabi">
- <option id="com.sylixos.realcoder.option.armsylixoseabi.include.1399654969" name="Include paths (-I)" superClass="com.sylixos.realcoder.option.armsylixoseabi.include" valueType="includePath">
+ <configuration artifactName="${ProjName}" buildProperties="" description="" id="com.sylixos.realevo.toolChain.armsylixeabi.876606152" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.sylixos.realevo.toolChain.armsylixeabi.876606152.1559469393" name="/" resourcePath="">
+ <toolChain id="com.sylixos.realevo.toolChain.armsylixeabi.1323020600" name="SylixOS Toolchain" superClass="com.sylixos.realevo.toolChain.armsylixeabi">
+ <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.GNU_ELF" id="com.sylixos.realevo.targetPlatform.armsylixoseabi.209859886" isAbstract="false" name="SylixOS TagetPlagform" osList="win32" superClass="com.sylixos.realevo.targetPlatform.armsylixoseabi"/>
+ <builder id="com.sylixos.realevo.builder.armsylixeabi.2098924711" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="SylixOS Builder" superClass="com.sylixos.realevo.builder.armsylixeabi"/>
+ <tool id="com.sylixos.realevo.tool.armsylixeabi.779893987" name="arm-sylixos-eabi-gcc" superClass="com.sylixos.realevo.tool.armsylixeabi">
+ <option id="com.sylixos.realevo.option.armsylixoseabi.include.1399654969" name="Include paths (-I)" superClass="com.sylixos.realevo.option.armsylixoseabi.include" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${SYLIXOS_BASE_PATH}/libsylixos/SylixOS&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SYLIXOS_BASE_PATH}/libsylixos/SylixOS/include&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SYLIXOS_BASE_PATH}/libsylixos/SylixOS/include/inet&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SYLIXOS_TOOLCHAIN_PATH}/${SYLIXOS_TOOLCHAIN_PREFIX}/include&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SYLIXOS_TOOLCHAIN_PATH}/lib/gcc/${SYLIXOS_TOOLCHAIN_PREFIX}/${SYLIXOS_TOOLCHAIN_VER}/include&quot;"/>
</option>
- <option id="com.sylixos.realcoder.option.armsylixoseabi.DefinedSymbols.1575331726" name="Defined symbols(-D)" superClass="com.sylixos.realcoder.option.armsylixoseabi.DefinedSymbols" valueType="definedSymbols">
+ <option id="com.sylixos.realevo.option.armsylixoseabi.DefinedSymbols.1575331726" name="Defined symbols(-D)" superClass="com.sylixos.realevo.option.armsylixoseabi.DefinedSymbols" valueType="definedSymbols">
<listOptionValue builtIn="false" value="__GNUC__=4"/>
<listOptionValue builtIn="false" value="SYLIXOS"/>
</option>
- <inputType id="com.sylixos.realcoder.inputType.armnsylixeabic.1119833453" name="SylixOS Input C" superClass="com.sylixos.realcoder.inputType.armnsylixeabic"/>
- <inputType id="com.sylixos.realcoder.inputType.armnsylixeabicpp.1270202312" name="SylixOS Input CPP" superClass="com.sylixos.realcoder.inputType.armnsylixeabicpp"/>
+ <inputType id="com.sylixos.realevo.inputType.armnsylixeabic.1119833453" name="SylixOS Input C" superClass="com.sylixos.realevo.inputType.armnsylixeabic"/>
+ <inputType id="com.sylixos.realevo.inputType.armnsylixeabicpp.1270202312" name="SylixOS Input CPP" superClass="com.sylixos.realevo.inputType.armnsylixeabicpp"/>
</tool>
</toolChain>
</folderInfo>
diff --git a/.project b/.project
index cc1f176..c3bb70b 100644
--- a/.project
+++ b/.project
@@ -18,7 +18,7 @@
</arguments>
</buildCommand>
<buildCommand>
- <name>com.sylixos.realcoder.SylixOSBuilder</name>
+ <name>com.sylixos.realevo.SylixOSBuilder</name>
<arguments>
</arguments>
</buildCommand>
@@ -27,6 +27,6 @@
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
- <nature>com.sylixos.realcoder.SylixOSProject</nature>
+ <nature>com.sylixos.realevo.SylixOSProject</nature>
</natures>
</projectDescription>
diff --git a/Makefile.arm b/Makefile.arm
index cb2b05a..129f7ab 100644
--- a/Makefile.arm
+++ b/Makefile.arm
@@ -37,11 +37,12 @@ $(call check_defined, DEBUG_LEVEL, debug level(debug or release))
#*********************************************************************************************************
# toolchain select
#*********************************************************************************************************
-CC = $(TOOLCHAIN_PREFIX)gcc
-CXX = $(TOOLCHAIN_PREFIX)g++
-AS = $(TOOLCHAIN_PREFIX)gcc
-AR = $(TOOLCHAIN_PREFIX)ar
-LD = $(TOOLCHAIN_PREFIX)g++
+CC = $(TOOLCHAIN_PREFIX)gcc
+CXX = $(TOOLCHAIN_PREFIX)g++
+AS = $(TOOLCHAIN_PREFIX)gcc
+AR = $(TOOLCHAIN_PREFIX)ar
+LD = $(TOOLCHAIN_PREFIX)g++
+STRIP = $(TOOLCHAIN_PREFIX)strip
#*********************************************************************************************************
# do not change the following code
@@ -71,6 +72,7 @@ DEPPATH = $(OUTPATH)/dep
#*********************************************************************************************************
LIB = $(OUTPATH)/libunqlite.a
DLL = $(OUTPATH)/libunqlite.so
+STRIP_DLL = $(OUTPATH)/strip/libunqlite.so
#*********************************************************************************************************
# libunqlite objects
@@ -115,7 +117,7 @@ endif # -Os is not align for function
#*********************************************************************************************************
DEPENDFLAG = -MM
CXX_EXCEPT = -fno-exceptions -fno-rtti
-COMMONFLAGS = $(CPUFLAGS) $(OPTIMIZE) -Wall -fmessage-length=0 -fsigned-char -fno-short-enums
+COMMONFLAGS = $(CPUFLAGS) $(OPTIMIZE) -Wall -fmessage-length=0 -fsigned-char -fno-short-enums -mno-unaligned-access
ASFLAGS = -x assembler-with-cpp $(DSYMBOL) $(INCDIR) $(COMMONFLAGS) -c
CFLAGS = $(DSYMBOL) $(INCDIR) $(COMMONFLAGS) -fPIC -c
CXXFLAGS = $(DSYMBOL) $(INCDIR) $(CXX_EXCEPT) $(COMMONFLAGS) -fPIC -c
@@ -134,8 +136,8 @@ COMPILE.cxx = $(CXX) $(CXXFLAGS)
#*********************************************************************************************************
# target
#*********************************************************************************************************
-all: $(LIB) $(DLL)
- @echo create "$(LIB) $(DLL)" success.
+all: $(LIB) $(DLL) $(STRIP_DLL)
+ @echo create "$(LIB) $(DLL) $(STRIP_DLL)" success.
#*********************************************************************************************************
# include depends
@@ -190,6 +192,14 @@ $(LIB): $(OBJS)
$(DLL): $(OBJS)
$(LD) $(CPUFLAGS) -nostdlib -fPIC -shared -o $(DLL) $(OBJS) \
$(DEPEND_DLL_PATH) $(DEPEND_DLL) -lm -lgcc
+
+#*********************************************************************************************************
+# strip libunqlite.so
+#*********************************************************************************************************
+$(STRIP_DLL): $(DLL)
+ @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
+ @rm -f $@
+ $(STRIP) $(DLL) -o $(STRIP_DLL)
#*********************************************************************************************************
# clean
@@ -203,6 +213,7 @@ $(DLL): $(OBJS)
clean:
-rm -rf $(LIB)
-rm -rf $(DLL)
+ -rm -rf $(STRIP_DLL)
-rm -rf $(OBJS)
-rm -rf $(OBJPATH)
-rm -rf $(DEPPATH)
diff --git a/Makefile.mips b/Makefile.mips
index 980734d..6ded384 100644
--- a/Makefile.mips
+++ b/Makefile.mips
@@ -37,11 +37,12 @@ $(call check_defined, DEBUG_LEVEL, debug level(debug or release))
#*********************************************************************************************************
# toolchain select
#*********************************************************************************************************
-CC = $(TOOLCHAIN_PREFIX)gcc
-CXX = $(TOOLCHAIN_PREFIX)g++
-AS = $(TOOLCHAIN_PREFIX)gcc
-AR = $(TOOLCHAIN_PREFIX)ar
-LD = $(TOOLCHAIN_PREFIX)g++
+CC = $(TOOLCHAIN_PREFIX)gcc
+CXX = $(TOOLCHAIN_PREFIX)g++
+AS = $(TOOLCHAIN_PREFIX)gcc
+AR = $(TOOLCHAIN_PREFIX)ar
+LD = $(TOOLCHAIN_PREFIX)g++
+STRIP = $(TOOLCHAIN_PREFIX)strip
#*********************************************************************************************************
# do not change the following code
@@ -71,6 +72,7 @@ DEPPATH = $(OUTPATH)/dep
#*********************************************************************************************************
LIB = $(OUTPATH)/libunqlite.a
DLL = $(OUTPATH)/libunqlite.so
+STRIP_DLL = $(OUTPATH)/strip/libunqlite.so
#*********************************************************************************************************
# libunqlite objects
@@ -134,8 +136,8 @@ COMPILE.cxx = $(CXX) $(CXXFLAGS)
#*********************************************************************************************************
# target
#*********************************************************************************************************
-all: $(LIB) $(DLL)
- @echo create "$(LIB) $(DLL)" success.
+all: $(LIB) $(DLL) $(STRIP_DLL)
+ @echo create "$(LIB) $(DLL) $(STRIP_DLL)" success.
#*********************************************************************************************************
# include depends
@@ -190,6 +192,14 @@ $(LIB): $(OBJS)
$(DLL): $(OBJS)
$(LD) $(CPUFLAGS) -fPIC -mabicalls -shared -o $(DLL) $(OBJS) \
$(DEPEND_DLL_PATH) $(DEPEND_DLL) -lm -lgcc
+
+#*********************************************************************************************************
+# strip libunqlite.so
+#*********************************************************************************************************
+$(STRIP_DLL): $(DLL)
+ @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
+ @rm -f $@
+ $(STRIP) $(DLL) -o $(STRIP_DLL)
#*********************************************************************************************************
# clean
@@ -203,6 +213,7 @@ $(DLL): $(OBJS)
clean:
-rm -rf $(LIB)
-rm -rf $(DLL)
+ -rm -rf $(STRIP_DLL)
-rm -rf $(OBJS)
-rm -rf $(OBJPATH)
-rm -rf $(DEPPATH)
diff --git a/Makefile.ppc b/Makefile.ppc
index 7222bda..92a5be8 100644
--- a/Makefile.ppc
+++ b/Makefile.ppc
@@ -37,11 +37,12 @@ $(call check_defined, DEBUG_LEVEL, debug level(debug or release))
#*********************************************************************************************************
# toolchain select
#*********************************************************************************************************
-CC = $(TOOLCHAIN_PREFIX)gcc
-CXX = $(TOOLCHAIN_PREFIX)g++
-AS = $(TOOLCHAIN_PREFIX)gcc
-AR = $(TOOLCHAIN_PREFIX)ar
-LD = $(TOOLCHAIN_PREFIX)g++
+CC = $(TOOLCHAIN_PREFIX)gcc
+CXX = $(TOOLCHAIN_PREFIX)g++
+AS = $(TOOLCHAIN_PREFIX)gcc
+AR = $(TOOLCHAIN_PREFIX)ar
+LD = $(TOOLCHAIN_PREFIX)g++
+STRIP = $(TOOLCHAIN_PREFIX)strip
#*********************************************************************************************************
# do not change the following code
@@ -71,6 +72,7 @@ DEPPATH = $(OUTPATH)/dep
#*********************************************************************************************************
LIB = $(OUTPATH)/libunqlite.a
DLL = $(OUTPATH)/libunqlite.so
+STRIP_DLL = $(OUTPATH)/strip/libunqlite.so
#*********************************************************************************************************
# libunqlite objects
@@ -134,8 +136,8 @@ COMPILE.cxx = $(CXX) $(CXXFLAGS)
#*********************************************************************************************************
# target
#*********************************************************************************************************
-all: $(LIB) $(DLL)
- @echo create "$(LIB) $(DLL)" success.
+all: $(LIB) $(DLL) $(STRIP_DLL)
+ @echo create "$(LIB) $(DLL) $(STRIP_DLL)" success.
#*********************************************************************************************************
# include depends
@@ -190,6 +192,14 @@ $(LIB): $(OBJS)
$(DLL): $(OBJS)
$(LD) $(CPUFLAGS) -fPIC -shared -o $(DLL) $(OBJS) \
$(DEPEND_DLL_PATH) $(DEPEND_DLL) -lm -lgcc
+
+#*********************************************************************************************************
+# strip libunqlite.so
+#*********************************************************************************************************
+$(STRIP_DLL): $(DLL)
+ @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
+ @rm -f $@
+ $(STRIP) $(DLL) -o $(STRIP_DLL)
#*********************************************************************************************************
# clean
@@ -203,6 +213,7 @@ $(DLL): $(OBJS)
clean:
-rm -rf $(LIB)
-rm -rf $(DLL)
+ -rm -rf $(STRIP_DLL)
-rm -rf $(OBJS)
-rm -rf $(OBJPATH)
-rm -rf $(DEPPATH)
diff --git a/config.mk b/config.mk
index fa4e82d..be3ee29 100644
--- a/config.mk
+++ b/config.mk
@@ -14,7 +14,7 @@
#
# 创 建 人: RealEvo-IDE
#
-# 文件创建日期: 2016 年02 月27 日
+# 文件创建日期: 2016 年06 月06 日
#
# 描 述: 本文件由 RealEvo-IDE 生成,用于配置 Makefile 功能,请勿手动修改
#*********************************************************************************************************