summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJiaojinxing <jiaojinxing1987@gmail.com>2016-12-09 04:31:43 (GMT)
committer Jiaojinxing <jiaojinxing1987@gmail.com>2016-12-09 04:31:43 (GMT)
commit17cba18181833d142a1abd5faafad8c2d9f4df06 (patch)
tree02a89377a8ef45ef0e8cc62188ce233bc9880aef
parent08ff353da7cd841460b231f033d737b624f9bdea (diff)
downloadlibxemail-17cba18181833d142a1abd5faafad8c2d9f4df06.zip
libxemail-17cba18181833d142a1abd5faafad8c2d9f4df06.tar.gz
libxemail-17cba18181833d142a1abd5faafad8c2d9f4df06.tar.bz2
Converted to RealEvo-IDE 3.0.0 project.
-rw-r--r--.cproject65
-rw-r--r--.gitignore4
-rw-r--r--.project77
-rw-r--r--.reproject13
-rw-r--r--.template/Makefile.arch4
-rw-r--r--.template/config.mk41
-rw-r--r--Makefile87
-rw-r--r--Makefile.arm263
-rw-r--r--Makefile.mips263
-rw-r--r--Makefile.ppc263
-rw-r--r--Makefile.x860
-rw-r--r--config.mk17
-rw-r--r--libxemail.mk84
-rw-r--r--sendemail.mk89
14 files changed, 356 insertions, 914 deletions
diff --git a/.cproject b/.cproject
index 4c8256e..4efa57f 100644
--- a/.cproject
+++ b/.cproject
@@ -1,61 +1,28 @@
<?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.realevo.toolChain.armsylixeabi.473637203">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.sylixos.realevo.toolChain.armsylixeabi.473637203" 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"/>
- <stringMacro name="SYLIXOS_TOOLCHAIN_VER" type="VALUE_TEXT" value="4.9.3"/>
- <stringMacro name="SYLIXOS_TOOLCHAIN_PREFIX" type="VALUE_TEXT" value="arm-sylixos-eabi"/>
- <stringMacro name="SYLIXOS_BASE_PATH" type="VALUE_PATH_DIR" value="D:/workspace/sylixos-base"/>
- <stringMacro name="SYLIXOS_TEMPLATE_NAME" type="VALUE_TEXT"/>
- </macros>
+ <cconfiguration id="org.eclipse.cdt.core.default.config.354104544">
+ <storageModule buildSystemId="org.eclipse.cdt.core.defaultConfigDataProvider" id="org.eclipse.cdt.core.default.config.354104544" moduleId="org.eclipse.cdt.core.settings" name="Configuration">
<externalSettings/>
<extensions>
- <extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
</extensions>
</storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactName="${ProjName}" buildProperties="" description="" id="com.sylixos.realevo.toolChain.armsylixeabi.473637203" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
- <folderInfo id="com.sylixos.realevo.toolChain.armsylixeabi.473637203.651897656" name="/" resourcePath="">
- <toolChain id="com.sylixos.realevo.toolChain.armsylixeabi.1963403761" 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.445728806" isAbstract="false" name="SylixOS TagetPlagform" osList="win32" superClass="com.sylixos.realevo.targetPlatform.armsylixoseabi"/>
- <builder id="com.sylixos.realevo.builder.armsylixeabi.2065597485" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="SylixOS Builder" superClass="com.sylixos.realevo.builder.armsylixeabi"/>
- <tool id="com.sylixos.realevo.tool.armsylixeabi.1389178635" name="arm-sylixos-eabi-gcc" superClass="com.sylixos.realevo.tool.armsylixeabi">
- <option id="com.sylixos.realevo.option.armsylixoseabi.include.1875611234" 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.realevo.option.armsylixoseabi.DefinedSymbols.285935813" 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.realevo.inputType.armnsylixeabic.321381997" name="SylixOS Input C" superClass="com.sylixos.realevo.inputType.armnsylixeabic"/>
- <inputType id="com.sylixos.realevo.inputType.armnsylixeabicpp.1705532603" name="SylixOS Input CPP" superClass="com.sylixos.realevo.inputType.armnsylixeabicpp"/>
- </tool>
- </toolChain>
- </folderInfo>
- </configuration>
- </storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <project id="libxemail.null.1663442566" name="libxemail"/>
- </storageModule>
- <storageModule moduleId="scannerConfiguration">
- <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
- </storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
+ <storageModule moduleId="org.eclipse.cdt.core.pathentry">
+ <pathentry kind="mac" name="__GNUC__" path="" value="4"/>
+ <pathentry kind="mac" name="SYLIXOS" path="" value=""/>
+ <pathentry kind="mac" name="__arm__" path="" value=""/>
+ <pathentry base-ref="libxemail" include="D:/SylixOSDev/workspace/sylixos-base-arm9/libsylixos/SylixOS" kind="inc" path="" system="true"/>
+ <pathentry base-ref="libxemail" include="D:/SylixOSDev/workspace/sylixos-base-arm9/libsylixos/SylixOS/include" kind="inc" path="" system="true"/>
+ <pathentry base-ref="libxemail" include="D:/SylixOSDev/workspace/sylixos-base-arm9/libsylixos/SylixOS/include/network" kind="inc" path="" system="true"/>
+ <pathentry base-ref="libxemail" include="D:/SylixOSDev/workspace/sylixos-base-arm9/libcextern/libcextern/include" kind="inc" path="" system="true"/>
+ <pathentry base-ref="libxemail" include="C:/ACOINFO/RealEvo/compiler/arm-sylixos-toolchain/arm-sylixos-eabi/include" kind="inc" path="" system="true"/>
+ <pathentry base-ref="libxemail" include="C:/ACOINFO/RealEvo/compiler/arm-sylixos-toolchain/lib/gcc/arm-sylixos-eabi/4.9.3/include" kind="inc" path="" system="true"/>
+ <pathentry base-ref="libxemail" include="include" kind="inc" path="" system="true"/>
+ <pathentry base-ref="libxemail" include="../libcurl/curl-7.40.0/include" kind="inc" path="" system="true"/>
+ </storageModule>
</cproject>
diff --git a/.gitignore b/.gitignore
index 1b8c7c6..00d9390 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-/Debug
-/Release
+Release
+Debug
/.settings
/.rcsetting
diff --git a/.project b/.project
index 45b3a87..50a9d09 100644
--- a/.project
+++ b/.project
@@ -6,27 +6,74 @@
</projects>
<buildSpec>
<buildCommand>
- <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <name>com.sylixos.realevo.projectmgr.SylixOSBuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
- <triggers>full,incremental,</triggers>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.sylixos.realevo.SylixOSBuilder</name>
- <arguments>
+ <dictionary>
+ <key>org.eclipse.cdt.core.errorOutputParser</key>
+ <value>org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GmakeErrorParser;org.eclipse.cdt.core.VCErrorParser;org.eclipse.cdt.core.CWDLocator;org.eclipse.cdt.core.MakeErrorParser;</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.build.arguments</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.build.command</key>
+ <value>make</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.build.location</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.build.target.auto</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.build.target.clean</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.build.target.inc</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>false</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enabledIncrementalBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.environment</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>true</value>
+ </dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<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.realevo.SylixOSProject</nature>
+ <nature>com.sylixos.realevo.projectmgr.SylixOSNature</nature>
</natures>
</projectDescription>
diff --git a/.reproject b/.reproject
new file mode 100644
index 0000000..ba6240f
--- /dev/null
+++ b/.reproject
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="GB2312" standalone="no"?>
+<SylixOSSetting>
+<BaseSetting ProjectType="SylixOSSoProject" RealEvoVer="3.0.6 Experience"/>
+<BuildSetting CoustomCfgMakefile="true" NotScanSourceFile="false"/>
+<OutputSetting>
+<OutputPath Name="Output" Path="Release:Debug" TreeNode="Output"/>
+<OutputPath Name="Debug" Path="Debug" TreeNode="Debug"/>
+<OutputPath Name="Release" Path="Release" TreeNode="Release"/>
+</OutputSetting>
+<UploadPath>
+<PairItem key="$(WORKSPACE_libxemail)\$(Output)\strip\libxemail.so" value="/lib/libxemail.so"/>
+</UploadPath>
+</SylixOSSetting>
diff --git a/.template/Makefile.arch b/.template/Makefile.arch
deleted file mode 100644
index 3e593bd..0000000
--- a/.template/Makefile.arch
+++ /dev/null
@@ -1,4 +0,0 @@
-#*********************************************************************************************************
-# include architecture related Makefile
-#*********************************************************************************************************
-include Makefile.$(SylixOS_Arch)
diff --git a/.template/config.mk b/.template/config.mk
deleted file mode 100644
index ebc46ca..0000000
--- a/.template/config.mk
+++ /dev/null
@@ -1,41 +0,0 @@
-#*********************************************************************************************************
-#
-# 中国软件开源组织
-#
-# 嵌入式实时操作系统
-#
-# SylixOS(TM) LW : long wing
-#
-# Copyright All Rights Reserved
-#
-#--------------文件信息--------------------------------------------------------------------------------
-#
-# 文 件 名: config.mk
-#
-# 创 建 人: RealEvo-IDE
-#
-# 文件创建日期: $(Create_Date)
-#
-# 描 述: 本文件由 RealEvo-IDE 生成,用于配置 Makefile 功能,请勿手动修改
-#*********************************************************************************************************
-#*********************************************************************************************************
-# SylixOS Base Project path
-#*********************************************************************************************************
-SYLIXOS_BASE_PATH = $(SylixOS_Base_Path)
-
-#*********************************************************************************************************
-# Toolchain prefix
-#*********************************************************************************************************
-TOOLCHAIN_PREFIX = $(SylixOS_Toolchain)-
-
-#*********************************************************************************************************
-# Debug options (debug or release)
-#*********************************************************************************************************
-DEBUG_LEVEL = $(SylixOS_Debug_Level)
-
-#*********************************************************************************************************
-# NOTICE: libsylixos, BSP and other kernel modules projects CAN NOT use vfp!
-#*********************************************************************************************************
-FPUFLAGS = $(SylixOS_Fpu_Type)
-CPUFLAGS = $(SylixOS_Cpu_Type) $(FPUFLAGS)
-
diff --git a/Makefile b/Makefile
index 4fdfaf0..9a1f949 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,87 @@
#*********************************************************************************************************
-# include architecture related Makefile
+#
+# 中国软件开源组织
+#
+# 嵌入式实时操作系统
+#
+# SylixOS(TM) LW : long wing
+#
+# Copyright All Rights Reserved
+#
+#--------------文件信息--------------------------------------------------------------------------------
+#
+# 文 件 名: Makefile
+#
+# 创 建 人: RealEvo-IDE
+#
+# 文件创建日期: 2016 年 12 月 09 日
+#
+# 描 述: 本文件由 RealEvo-IDE 生成,用于配置 Makefile 功能,请勿手动修改
+#*********************************************************************************************************
+
+#*********************************************************************************************************
+# Include config.mk
+#*********************************************************************************************************
+CONFIG_MK_EXIST = $(shell if [ -f ../config.mk ]; then echo exist; else echo notexist; fi;)
+ifeq ($(CONFIG_MK_EXIST), exist)
+include ../config.mk
+else
+CONFIG_MK_EXIST = $(shell if [ -f config.mk ]; then echo exist; else echo notexist; fi;)
+ifeq ($(CONFIG_MK_EXIST), exist)
+include config.mk
+else
+CONFIG_MK_EXIST =
+endif
+endif
+
+#*********************************************************************************************************
+# Include sylixos base config.mk
+#*********************************************************************************************************
+EMPTY =
+SPACE = $(EMPTY) $(EMPTY)
+
+SYLIXOS_BASE_PATH_BAK := $(SYLIXOS_BASE_PATH)
+TOOLCHAIN_PREFIX_BAK := $(TOOLCHAIN_PREFIX)
+DEBUG_LEVEL_BAK := $(DEBUG_LEVEL)
+CPU_TYPE_BAK := $(CPU_TYPE)
+FPU_TYPE_BAK := $(FPU_TYPE)
+
+SYLIXOS_BASE_CONFIGMK = $(subst $(SPACE),\ ,$(SYLIXOS_BASE_PATH))/config.mk
+include $(SYLIXOS_BASE_CONFIGMK)
+
+SYLIXOS_BASE_PATH := $(SYLIXOS_BASE_PATH_BAK)
+DEBUG_LEVEL := $(DEBUG_LEVEL_BAK)
+
+ifneq ($(TOOLCHAIN_PREFIX_BAK),)
+TOOLCHAIN_PREFIX := $(TOOLCHAIN_PREFIX_BAK)
+endif
+
+ifneq ($(CPU_TYPE_BAK),)
+CPU_TYPE := $(CPU_TYPE_BAK)
+endif
+
+ifneq ($(FPU_TYPE_BAK),)
+FPU_TYPE := $(FPU_TYPE_BAK)
+endif
+
+#*********************************************************************************************************
+# Include header.mk
+#*********************************************************************************************************
+MKTEMP = $(subst $(SPACE),\ ,$(SYLIXOS_BASE_PATH))/libsylixos/SylixOS/mktemp
+
+include $(MKTEMP)/header.mk
+
+#*********************************************************************************************************
+# Include targets makefiles
+#*********************************************************************************************************
+include libxemail.mk
+include sendemail.mk
+
+#*********************************************************************************************************
+# Include end.mk
+#*********************************************************************************************************
+include $(END_MK)
+
+#*********************************************************************************************************
+# End
#*********************************************************************************************************
-include Makefile.arm
diff --git a/Makefile.arm b/Makefile.arm
deleted file mode 100644
index 325f244..0000000
--- a/Makefile.arm
+++ /dev/null
@@ -1,263 +0,0 @@
-#*********************************************************************************************************
-# libxemail Makefile
-# target -> libxemail.a
-# libxemail.so
-# sendemail
-#*********************************************************************************************************
-
-#*********************************************************************************************************
-# include config.mk
-#*********************************************************************************************************
-CONFIG_MK_EXIST = $(shell if [ -f ../config.mk ]; then echo exist; else echo notexist; fi;)
-ifeq ($(CONFIG_MK_EXIST), exist)
-include ../config.mk
-else
-CONFIG_MK_EXIST = $(shell if [ -f config.mk ]; then echo exist; else echo notexist; fi;)
-ifeq ($(CONFIG_MK_EXIST), exist)
-include config.mk
-else
-CONFIG_MK_EXIST =
-endif
-endif
-
-#*********************************************************************************************************
-# check configure
-#*********************************************************************************************************
-check_defined = \
- $(foreach 1,$1,$(__check_defined))
-__check_defined = \
- $(if $(value $1),, \
- $(error Undefined $1$(if $(value 2), ($(strip $2)))))
-
-$(call check_defined, CONFIG_MK_EXIST, Please configure this project in RealEvo-IDE or \
-create a config.mk file!)
-$(call check_defined, SYLIXOS_BASE_PATH, SylixOS base project path)
-$(call check_defined, TOOLCHAIN_PREFIX, the prefix name of toolchain)
-$(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++
-STRIP = $(TOOLCHAIN_PREFIX)strip
-
-#*********************************************************************************************************
-# do not change the following code
-# buildin internal application source
-#*********************************************************************************************************
-#*********************************************************************************************************
-# src(s) file
-#*********************************************************************************************************
-SRCS = \
-src/xemail.c
-
-EXAMPLE_SRCS = \
-example/sendemail.c
-
-#*********************************************************************************************************
-# build path
-#*********************************************************************************************************
-ifeq ($(DEBUG_LEVEL), debug)
-OUTDIR = Debug
-else
-OUTDIR = Release
-endif
-
-OUTPATH = ./$(OUTDIR)
-OBJPATH = $(OUTPATH)/obj
-DEPPATH = $(OUTPATH)/dep
-
-#*********************************************************************************************************
-# target
-#*********************************************************************************************************
-LIB = $(OUTPATH)/libxemail.a
-DLL = $(OUTPATH)/libxemail.so
-STRIP_DLL = $(OUTPATH)/strip/libxemail.so
-
-EXE = $(OUTPATH)/sendemail
-STRIP_EXE = $(OUTPATH)/strip/sendemail
-
-#*********************************************************************************************************
-# objects
-#*********************************************************************************************************
-OBJS = $(addprefix $(OBJPATH)/, $(addsuffix .o, $(basename $(SRCS))))
-DEPS = $(addprefix $(DEPPATH)/, $(addsuffix .d, $(basename $(SRCS))))
-
-E_OBJS = $(addprefix $(OBJPATH)/, $(addsuffix .o, $(basename $(EXAMPLE_SRCS))))
-E_DEPS = $(addprefix $(DEPPATH)/, $(addsuffix .d, $(basename $(EXAMPLE_SRCS))))
-
-#*********************************************************************************************************
-# include path
-#*********************************************************************************************************
-INCDIR = -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS"
-INCDIR += -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS/include"
-INCDIR += -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS/include/inet"
-
-INCDIR += -I"include"
-INCDIR += -I"../libcurl/curl-7.40.0/include"
-
-#*********************************************************************************************************
-# compiler preprocess
-#*********************************************************************************************************
-DSYMBOL = -DSYLIXOS
-DSYMBOL += -DSYLIXOS_LIB
-
-#*********************************************************************************************************
-# depend dynamic library
-#*********************************************************************************************************
-DEPEND_DLL = -lcurl
-SYS_DEPEND_DLL = -lvpmpdm -ldsohandle -lxemail
-
-#*********************************************************************************************************
-# depend dynamic library search path
-#*********************************************************************************************************
-DEPEND_DLL_PATH = -L"../libcurl/$(OUTDIR)"
-
-SYS_DEPEND_DLL_PATH = -L"$(SYLIXOS_BASE_PATH)/libsylixos/$(OUTDIR)"
-SYS_DEPEND_DLL_PATH += -L"$(OUTDIR)"
-
-#*********************************************************************************************************
-# compiler optimize
-#*********************************************************************************************************
-ifeq ($(DEBUG_LEVEL), debug)
-OPTIMIZE = -O0 -g3 -gdwarf-2
-else
-OPTIMIZE = -O2 -g1 -gdwarf-2 # Do NOT use -O3 and -Os
-endif # -Os is not align for function
- # loop and jump.
-#*********************************************************************************************************
-# depends and compiler parameter (cplusplus in kernel MUST NOT use exceptions and rtti)
-#*********************************************************************************************************
-DEPENDFLAG = -MM
-CXX_EXCEPT = -fno-exceptions -fno-rtti
-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
-ARFLAGS = -r
-
-#*********************************************************************************************************
-# define some useful variable
-#*********************************************************************************************************
-DEPEND = $(CC) $(DEPENDFLAG) $(CFLAGS)
-DEPEND.d = $(subst -g ,,$(DEPEND))
-COMPILE.S = $(AS) $(ASFLAGS)
-COMPILE_VFP.S = $(AS) $(ASFLAGS)
-COMPILE.c = $(CC) $(CFLAGS)
-COMPILE.cxx = $(CXX) $(CXXFLAGS)
-
-#*********************************************************************************************************
-# target
-#*********************************************************************************************************
-all: $(LIB) $(DLL) $(EXE) $(STRIP_DLL) $(STRIP_EXE)
- @echo create "$(LIB) $(DLL) $(EXE) $(STRIP_DLL) $(STRIP_EXE)" success.
-
-#*********************************************************************************************************
-# include depends
-#*********************************************************************************************************
-ifneq ($(MAKECMDGOALS), clean)
-ifneq ($(MAKECMDGOALS), clean_project)
-sinclude $(DEPS) $(E_DEPS)
-endif
-endif
-
-#*********************************************************************************************************
-# create depends files
-#*********************************************************************************************************
-$(DEPPATH)/%.d: %.c
- @echo creating $@
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@; \
- echo -n '$@ $(addprefix $(OBJPATH)/, $(dir $<))' > $@; \
- $(DEPEND.d) $< >> $@ || rm -f $@; exit;
-
-$(DEPPATH)/%.d: %.cpp
- @echo creating $@
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@; \
- echo -n '$@ $(addprefix $(OBJPATH)/, $(dir $<))' > $@; \
- $(DEPEND.d) $< >> $@ || rm -f $@; exit;
-
-#*********************************************************************************************************
-# compile source files
-#*********************************************************************************************************
-$(OBJPATH)/%.o: %.S
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.S) $< -o $@
-
-$(OBJPATH)/%.o: %.c
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.c) $< -o $@
-
-$(OBJPATH)/%.o: %.cpp
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.cxx) $< -o $@
-
-#*********************************************************************************************************
-# link libxemail.a object files
-#*********************************************************************************************************
-$(LIB): $(OBJS)
- $(AR) $(ARFLAGS) $(LIB) $(OBJS)
-
-#*********************************************************************************************************
-# link libxemail.so object files
-#*********************************************************************************************************
-$(DLL): $(OBJS)
- $(LD) $(CPUFLAGS) -nostdlib -fPIC -shared -o $(DLL) $(OBJS) \
- $(DEPEND_DLL_PATH) $(DEPEND_DLL) -lm -lgcc
-
-#*********************************************************************************************************
-# link sendemail object files
-#*********************************************************************************************************
-$(EXE): $(E_OBJS)
- $(LD) $(CPUFLAGS) -nostdlib -fPIC -shared -o $(EXE) $(E_OBJS) \
- $(SYS_DEPEND_DLL_PATH) $(SYS_DEPEND_DLL) -lm -lgcc
-
-#*********************************************************************************************************
-# strip libxemail.so
-#*********************************************************************************************************
-$(STRIP_DLL): $(DLL)
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@
- $(STRIP) $(DLL) -o $(STRIP_DLL)
-
-#*********************************************************************************************************
-# strip sendemail
-#*********************************************************************************************************
-$(STRIP_EXE): $(EXE)
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@
- $(STRIP) $(EXE) -o $(STRIP_EXE)
-
-#*********************************************************************************************************
-# clean
-#*********************************************************************************************************
-.PHONY: clean
-.PHONY: clean_project
-
-#*********************************************************************************************************
-# clean objects
-#*********************************************************************************************************
-clean:
- -rm -rf $(LIB)
- -rm -rf $(DLL)
- -rm -rf $(EXE)
- -rm -rf $(STRIP_DLL)
- -rm -rf $(STRIP_EXE)
- -rm -rf $(OBJS)
- -rm -rf $(OBJPATH)
- -rm -rf $(DEPPATH)
-
-#*********************************************************************************************************
-# clean project
-#*********************************************************************************************************
-clean_project:
- -rm -rf $(OUTPATH)
-
-#*********************************************************************************************************
-# END
-#*********************************************************************************************************
diff --git a/Makefile.mips b/Makefile.mips
deleted file mode 100644
index 3bf5c44..0000000
--- a/Makefile.mips
+++ /dev/null
@@ -1,263 +0,0 @@
-#*********************************************************************************************************
-# libxemail Makefile
-# target -> libxemail.a
-# libxemail.so
-# sendemail
-#*********************************************************************************************************
-
-#*********************************************************************************************************
-# include config.mk
-#*********************************************************************************************************
-CONFIG_MK_EXIST = $(shell if [ -f ../config.mk ]; then echo exist; else echo notexist; fi;)
-ifeq ($(CONFIG_MK_EXIST), exist)
-include ../config.mk
-else
-CONFIG_MK_EXIST = $(shell if [ -f config.mk ]; then echo exist; else echo notexist; fi;)
-ifeq ($(CONFIG_MK_EXIST), exist)
-include config.mk
-else
-CONFIG_MK_EXIST =
-endif
-endif
-
-#*********************************************************************************************************
-# check configure
-#*********************************************************************************************************
-check_defined = \
- $(foreach 1,$1,$(__check_defined))
-__check_defined = \
- $(if $(value $1),, \
- $(error Undefined $1$(if $(value 2), ($(strip $2)))))
-
-$(call check_defined, CONFIG_MK_EXIST, Please configure this project in RealEvo-IDE or \
-create a config.mk file!)
-$(call check_defined, SYLIXOS_BASE_PATH, SylixOS base project path)
-$(call check_defined, TOOLCHAIN_PREFIX, the prefix name of toolchain)
-$(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++
-STRIP = $(TOOLCHAIN_PREFIX)strip
-
-#*********************************************************************************************************
-# do not change the following code
-# buildin internal application source
-#*********************************************************************************************************
-#*********************************************************************************************************
-# src(s) file
-#*********************************************************************************************************
-SRCS = \
-src/xemail.c
-
-EXAMPLE_SRCS = \
-example/sendemail.c
-
-#*********************************************************************************************************
-# build path
-#*********************************************************************************************************
-ifeq ($(DEBUG_LEVEL), debug)
-OUTDIR = Debug
-else
-OUTDIR = Release
-endif
-
-OUTPATH = ./$(OUTDIR)
-OBJPATH = $(OUTPATH)/obj
-DEPPATH = $(OUTPATH)/dep
-
-#*********************************************************************************************************
-# target
-#*********************************************************************************************************
-LIB = $(OUTPATH)/libxemail.a
-DLL = $(OUTPATH)/libxemail.so
-STRIP_DLL = $(OUTPATH)/strip/libxemail.so
-
-EXE = $(OUTPATH)/sendemail
-STRIP_EXE = $(OUTPATH)/strip/sendemail
-
-#*********************************************************************************************************
-# objects
-#*********************************************************************************************************
-OBJS = $(addprefix $(OBJPATH)/, $(addsuffix .o, $(basename $(SRCS))))
-DEPS = $(addprefix $(DEPPATH)/, $(addsuffix .d, $(basename $(SRCS))))
-
-E_OBJS = $(addprefix $(OBJPATH)/, $(addsuffix .o, $(basename $(EXAMPLE_SRCS))))
-E_DEPS = $(addprefix $(DEPPATH)/, $(addsuffix .d, $(basename $(EXAMPLE_SRCS))))
-
-#*********************************************************************************************************
-# include path
-#*********************************************************************************************************
-INCDIR = -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS"
-INCDIR += -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS/include"
-INCDIR += -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS/include/inet"
-
-INCDIR += -I"include"
-INCDIR += -I"../libcurl/curl-7.40.0/include"
-
-#*********************************************************************************************************
-# compiler preprocess
-#*********************************************************************************************************
-DSYMBOL = -DSYLIXOS
-DSYMBOL += -DSYLIXOS_LIB
-
-#*********************************************************************************************************
-# depend dynamic library
-#*********************************************************************************************************
-DEPEND_DLL = -lcurl
-SYS_DEPEND_DLL = -lvpmpdm -lxemail
-
-#*********************************************************************************************************
-# depend dynamic library search path
-#*********************************************************************************************************
-DEPEND_DLL_PATH = -L"../libcurl/$(OUTDIR)"
-
-SYS_DEPEND_DLL_PATH = -L"$(SYLIXOS_BASE_PATH)/libsylixos/$(OUTDIR)"
-SYS_DEPEND_DLL_PATH += -L"$(OUTDIR)"
-
-#*********************************************************************************************************
-# compiler optimize
-#*********************************************************************************************************
-ifeq ($(DEBUG_LEVEL), debug)
-OPTIMIZE = -O0 -g3 -gdwarf-2
-else
-OPTIMIZE = -O2 -g1 -gdwarf-2 # Do NOT use -O3 and -Os
-endif # -Os is not align for function
- # loop and jump.
-#*********************************************************************************************************
-# depends and compiler parameter (cplusplus in kernel MUST NOT use exceptions and rtti)
-#*********************************************************************************************************
-DEPENDFLAG = -MM
-CXX_EXCEPT = -fno-exceptions -fno-rtti
-COMMONFLAGS = $(CPUFLAGS) $(OPTIMIZE) -Wall -fmessage-length=0 -fsigned-char -fno-short-enums
-ASFLAGS = -x assembler-with-cpp $(DSYMBOL) $(INCDIR) $(COMMONFLAGS) -mabicalls -c
-CFLAGS = $(DSYMBOL) $(INCDIR) $(COMMONFLAGS) -fPIC -mabicalls -c
-CXXFLAGS = $(DSYMBOL) $(INCDIR) $(CXX_EXCEPT) $(COMMONFLAGS) -fPIC -mabicalls -c
-ARFLAGS = -r
-
-#*********************************************************************************************************
-# define some useful variable
-#*********************************************************************************************************
-DEPEND = $(CC) $(DEPENDFLAG) $(CFLAGS)
-DEPEND.d = $(subst -g ,,$(DEPEND))
-COMPILE.S = $(AS) $(ASFLAGS)
-COMPILE_VFP.S = $(AS) $(ASFLAGS) -mhard-float
-COMPILE.c = $(CC) $(CFLAGS)
-COMPILE.cxx = $(CXX) $(CXXFLAGS)
-
-#*********************************************************************************************************
-# target
-#*********************************************************************************************************
-all: $(LIB) $(DLL) $(EXE) $(STRIP_DLL) $(STRIP_EXE)
- @echo create "$(LIB) $(DLL) $(EXE) $(STRIP_DLL) $(STRIP_EXE)" success.
-
-#*********************************************************************************************************
-# include depends
-#*********************************************************************************************************
-ifneq ($(MAKECMDGOALS), clean)
-ifneq ($(MAKECMDGOALS), clean_project)
-sinclude $(DEPS) $(E_DEPS)
-endif
-endif
-
-#*********************************************************************************************************
-# create depends files
-#*********************************************************************************************************
-$(DEPPATH)/%.d: %.c
- @echo creating $@
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@; \
- echo -n '$@ $(addprefix $(OBJPATH)/, $(dir $<))' > $@; \
- $(DEPEND.d) $< >> $@ || rm -f $@; exit;
-
-$(DEPPATH)/%.d: %.cpp
- @echo creating $@
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@; \
- echo -n '$@ $(addprefix $(OBJPATH)/, $(dir $<))' > $@; \
- $(DEPEND.d) $< >> $@ || rm -f $@; exit;
-
-#*********************************************************************************************************
-# compile source files
-#*********************************************************************************************************
-$(OBJPATH)/%.o: %.S
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.S) $< -o $@
-
-$(OBJPATH)/%.o: %.c
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.c) $< -o $@
-
-$(OBJPATH)/%.o: %.cpp
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.cxx) $< -o $@
-
-#*********************************************************************************************************
-# link libxemail.a object files
-#*********************************************************************************************************
-$(LIB): $(OBJS)
- $(AR) $(ARFLAGS) $(LIB) $(OBJS)
-
-#*********************************************************************************************************
-# link libxemail.so object files
-#*********************************************************************************************************
-$(DLL): $(OBJS)
- $(LD) $(CPUFLAGS) -fPIC -mabicalls -shared -o $(DLL) $(OBJS) \
- $(DEPEND_DLL_PATH) $(DEPEND_DLL) -lm -lgcc
-
-#*********************************************************************************************************
-# link sendemail object files
-#*********************************************************************************************************
-$(EXE): $(E_OBJS)
- $(LD) $(CPUFLAGS) -mabicalls -fPIC -shared -o $(EXE) $(E_OBJS) \
- $(SYS_DEPEND_DLL_PATH) $(SYS_DEPEND_DLL) -lm -lgcc
-
-#*********************************************************************************************************
-# strip libxemail.so
-#*********************************************************************************************************
-$(STRIP_DLL): $(DLL)
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@
- $(STRIP) $(DLL) -o $(STRIP_DLL)
-
-#*********************************************************************************************************
-# strip sendemail
-#*********************************************************************************************************
-$(STRIP_EXE): $(EXE)
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@
- $(STRIP) $(EXE) -o $(STRIP_EXE)
-
-#*********************************************************************************************************
-# clean
-#*********************************************************************************************************
-.PHONY: clean
-.PHONY: clean_project
-
-#*********************************************************************************************************
-# clean objects
-#*********************************************************************************************************
-clean:
- -rm -rf $(LIB)
- -rm -rf $(DLL)
- -rm -rf $(EXE)
- -rm -rf $(STRIP_DLL)
- -rm -rf $(STRIP_EXE)
- -rm -rf $(OBJS)
- -rm -rf $(OBJPATH)
- -rm -rf $(DEPPATH)
-
-#*********************************************************************************************************
-# clean project
-#*********************************************************************************************************
-clean_project:
- -rm -rf $(OUTPATH)
-
-#*********************************************************************************************************
-# END
-#*********************************************************************************************************
diff --git a/Makefile.ppc b/Makefile.ppc
deleted file mode 100644
index 493e843..0000000
--- a/Makefile.ppc
+++ /dev/null
@@ -1,263 +0,0 @@
-#*********************************************************************************************************
-# libxemail Makefile
-# target -> libxemail.a
-# libxemail.so
-# sendemail
-#*********************************************************************************************************
-
-#*********************************************************************************************************
-# include config.mk
-#*********************************************************************************************************
-CONFIG_MK_EXIST = $(shell if [ -f ../config.mk ]; then echo exist; else echo notexist; fi;)
-ifeq ($(CONFIG_MK_EXIST), exist)
-include ../config.mk
-else
-CONFIG_MK_EXIST = $(shell if [ -f config.mk ]; then echo exist; else echo notexist; fi;)
-ifeq ($(CONFIG_MK_EXIST), exist)
-include config.mk
-else
-CONFIG_MK_EXIST =
-endif
-endif
-
-#*********************************************************************************************************
-# check configure
-#*********************************************************************************************************
-check_defined = \
- $(foreach 1,$1,$(__check_defined))
-__check_defined = \
- $(if $(value $1),, \
- $(error Undefined $1$(if $(value 2), ($(strip $2)))))
-
-$(call check_defined, CONFIG_MK_EXIST, Please configure this project in RealEvo-IDE or \
-create a config.mk file!)
-$(call check_defined, SYLIXOS_BASE_PATH, SylixOS base project path)
-$(call check_defined, TOOLCHAIN_PREFIX, the prefix name of toolchain)
-$(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++
-STRIP = $(TOOLCHAIN_PREFIX)strip
-
-#*********************************************************************************************************
-# do not change the following code
-# buildin internal application source
-#*********************************************************************************************************
-#*********************************************************************************************************
-# src(s) file
-#*********************************************************************************************************
-SRCS = \
-src/xemail.c
-
-EXAMPLE_SRCS = \
-example/sendemail.c
-
-#*********************************************************************************************************
-# build path
-#*********************************************************************************************************
-ifeq ($(DEBUG_LEVEL), debug)
-OUTDIR = Debug
-else
-OUTDIR = Release
-endif
-
-OUTPATH = ./$(OUTDIR)
-OBJPATH = $(OUTPATH)/obj
-DEPPATH = $(OUTPATH)/dep
-
-#*********************************************************************************************************
-# target
-#*********************************************************************************************************
-LIB = $(OUTPATH)/libxemail.a
-DLL = $(OUTPATH)/libxemail.so
-STRIP_DLL = $(OUTPATH)/strip/libxemail.so
-
-EXE = $(OUTPATH)/sendemail
-STRIP_EXE = $(OUTPATH)/strip/sendemail
-
-#*********************************************************************************************************
-# objects
-#*********************************************************************************************************
-OBJS = $(addprefix $(OBJPATH)/, $(addsuffix .o, $(basename $(SRCS))))
-DEPS = $(addprefix $(DEPPATH)/, $(addsuffix .d, $(basename $(SRCS))))
-
-E_OBJS = $(addprefix $(OBJPATH)/, $(addsuffix .o, $(basename $(EXAMPLE_SRCS))))
-E_DEPS = $(addprefix $(DEPPATH)/, $(addsuffix .d, $(basename $(EXAMPLE_SRCS))))
-
-#*********************************************************************************************************
-# include path
-#*********************************************************************************************************
-INCDIR = -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS"
-INCDIR += -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS/include"
-INCDIR += -I"$(SYLIXOS_BASE_PATH)/libsylixos/SylixOS/include/inet"
-
-INCDIR += -I"include"
-INCDIR += -I"../libcurl/curl-7.40.0/include"
-
-#*********************************************************************************************************
-# compiler preprocess
-#*********************************************************************************************************
-DSYMBOL = -DSYLIXOS
-DSYMBOL += -DSYLIXOS_LIB
-
-#*********************************************************************************************************
-# depend dynamic library
-#*********************************************************************************************************
-DEPEND_DLL = -lcurl
-SYS_DEPEND_DLL = -lvpmpdm -ldsohandle -lxemail
-
-#*********************************************************************************************************
-# depend dynamic library search path
-#*********************************************************************************************************
-DEPEND_DLL_PATH = -L"../libcurl/$(OUTDIR)"
-
-SYS_DEPEND_DLL_PATH = -L"$(SYLIXOS_BASE_PATH)/libsylixos/$(OUTDIR)"
-SYS_DEPEND_DLL_PATH += -L"$(OUTDIR)"
-
-#*********************************************************************************************************
-# compiler optimize
-#*********************************************************************************************************
-ifeq ($(DEBUG_LEVEL), debug)
-OPTIMIZE = -O0 -g3 -gdwarf-2
-else
-OPTIMIZE = -O2 -g1 -gdwarf-2 # Do NOT use -O3 and -Os
-endif # -Os is not align for function
- # loop and jump.
-#*********************************************************************************************************
-# depends and compiler parameter (cplusplus in kernel MUST NOT use exceptions and rtti)
-#*********************************************************************************************************
-DEPENDFLAG = -MM
-CXX_EXCEPT = -fno-exceptions -fno-rtti
-COMMONFLAGS = $(CPUFLAGS) $(OPTIMIZE) -Wall -fmessage-length=0 -fsigned-char -fno-short-enums
-ASFLAGS = -x assembler-with-cpp $(DSYMBOL) $(INCDIR) $(COMMONFLAGS) -c
-CFLAGS = $(DSYMBOL) $(INCDIR) $(COMMONFLAGS) -fPIC -c
-CXXFLAGS = $(DSYMBOL) $(INCDIR) $(CXX_EXCEPT) $(COMMONFLAGS) -fPIC -c
-ARFLAGS = -r
-
-#*********************************************************************************************************
-# define some useful variable
-#*********************************************************************************************************
-DEPEND = $(CC) $(DEPENDFLAG) $(CFLAGS)
-DEPEND.d = $(subst -g ,,$(DEPEND))
-COMPILE.S = $(AS) $(ASFLAGS)
-COMPILE_VFP.S = $(AS) $(ASFLAGS)
-COMPILE.c = $(CC) $(CFLAGS)
-COMPILE.cxx = $(CXX) $(CXXFLAGS)
-
-#*********************************************************************************************************
-# target
-#*********************************************************************************************************
-all: $(LIB) $(DLL) $(EXE) $(STRIP_DLL) $(STRIP_EXE)
- @echo create "$(LIB) $(DLL) $(EXE) $(STRIP_DLL) $(STRIP_EXE)" success.
-
-#*********************************************************************************************************
-# include depends
-#*********************************************************************************************************
-ifneq ($(MAKECMDGOALS), clean)
-ifneq ($(MAKECMDGOALS), clean_project)
-sinclude $(DEPS) $(E_DEPS)
-endif
-endif
-
-#*********************************************************************************************************
-# create depends files
-#*********************************************************************************************************
-$(DEPPATH)/%.d: %.c
- @echo creating $@
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@; \
- echo -n '$@ $(addprefix $(OBJPATH)/, $(dir $<))' > $@; \
- $(DEPEND.d) $< >> $@ || rm -f $@; exit;
-
-$(DEPPATH)/%.d: %.cpp
- @echo creating $@
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@; \
- echo -n '$@ $(addprefix $(OBJPATH)/, $(dir $<))' > $@; \
- $(DEPEND.d) $< >> $@ || rm -f $@; exit;
-
-#*********************************************************************************************************
-# compile source files
-#*********************************************************************************************************
-$(OBJPATH)/%.o: %.S
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.S) $< -o $@
-
-$(OBJPATH)/%.o: %.c
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.c) $< -o $@
-
-$(OBJPATH)/%.o: %.cpp
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- $(COMPILE.cxx) $< -o $@
-
-#*********************************************************************************************************
-# link libxemail.a object files
-#*********************************************************************************************************
-$(LIB): $(OBJS)
- $(AR) $(ARFLAGS) $(LIB) $(OBJS)
-
-#*********************************************************************************************************
-# link libxemail.so object files
-#*********************************************************************************************************
-$(DLL): $(OBJS)
- $(LD) $(CPUFLAGS) -fPIC -shared -o $(DLL) $(OBJS) \
- $(DEPEND_DLL_PATH) $(DEPEND_DLL) -lm -lgcc
-
-#*********************************************************************************************************
-# link sendemail object files
-#*********************************************************************************************************
-$(EXE): $(E_OBJS)
- $(LD) $(CPUFLAGS) -fPIC -shared -o $(EXE) $(E_OBJS) \
- $(SYS_DEPEND_DLL_PATH) $(SYS_DEPEND_DLL) -lm -lgcc
-
-#*********************************************************************************************************
-# strip libxemail.so
-#*********************************************************************************************************
-$(STRIP_DLL): $(DLL)
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@
- $(STRIP) $(DLL) -o $(STRIP_DLL)
-
-#*********************************************************************************************************
-# strip sendemail
-#*********************************************************************************************************
-$(STRIP_EXE): $(EXE)
- @if [ ! -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
- @rm -f $@
- $(STRIP) $(EXE) -o $(STRIP_EXE)
-
-#*********************************************************************************************************
-# clean
-#*********************************************************************************************************
-.PHONY: clean
-.PHONY: clean_project
-
-#*********************************************************************************************************
-# clean objects
-#*********************************************************************************************************
-clean:
- -rm -rf $(LIB)
- -rm -rf $(DLL)
- -rm -rf $(EXE)
- -rm -rf $(STRIP_DLL)
- -rm -rf $(STRIP_EXE)
- -rm -rf $(OBJS)
- -rm -rf $(OBJPATH)
- -rm -rf $(DEPPATH)
-
-#*********************************************************************************************************
-# clean project
-#*********************************************************************************************************
-clean_project:
- -rm -rf $(OUTPATH)
-
-#*********************************************************************************************************
-# END
-#*********************************************************************************************************
diff --git a/Makefile.x86 b/Makefile.x86
deleted file mode 100644
index e69de29..0000000
--- a/Makefile.x86
+++ /dev/null
diff --git a/config.mk b/config.mk
index be3ee29..5c23f37 100644
--- a/config.mk
+++ b/config.mk
@@ -14,28 +14,21 @@
#
# 创 建 人: RealEvo-IDE
#
-# 文件创建日期: 2016 年06 月06 日
+# 文件创建日期: 2016 年 12 月 09 日
#
# 描 述: 本文件由 RealEvo-IDE 生成,用于配置 Makefile 功能,请勿手动修改
#*********************************************************************************************************
-#*********************************************************************************************************
-# SylixOS Base Project path
-#*********************************************************************************************************
-SYLIXOS_BASE_PATH = D:/workspace/sylixos-base
#*********************************************************************************************************
-# Toolchain prefix
+# SylixOS Base Project path
#*********************************************************************************************************
-TOOLCHAIN_PREFIX = arm-sylixos-eabi-
+SYLIXOS_BASE_PATH := D:\SylixOSDev\workspace\sylixos-base-arm9
#*********************************************************************************************************
# Debug options (debug or release)
#*********************************************************************************************************
-DEBUG_LEVEL = debug
+DEBUG_LEVEL := debug
#*********************************************************************************************************
-# NOTICE: libsylixos, BSP and other kernel modules projects CAN NOT use vfp!
+# End
#*********************************************************************************************************
-FPUFLAGS =
-CPUFLAGS = -mcpu=arm920t $(FPUFLAGS)
-
diff --git a/libxemail.mk b/libxemail.mk
new file mode 100644
index 0000000..d0b11d2
--- /dev/null
+++ b/libxemail.mk
@@ -0,0 +1,84 @@
+#*********************************************************************************************************
+#
+# 中国软件开源组织
+#
+# 嵌入式实时操作系统
+#
+# SylixOS(TM) LW : long wing
+#
+# Copyright All Rights Reserved
+#
+#--------------文件信息--------------------------------------------------------------------------------
+#
+# 文 件 名: libxemail.mk
+#
+# 创 建 人: RealEvo-IDE
+#
+# 文件创建日期: 2016 年 12 月 09 日
+#
+# 描 述: 本文件由 RealEvo-IDE 生成,用于配置 Makefile 功能,请勿手动修改
+#*********************************************************************************************************
+
+#*********************************************************************************************************
+# Clear setting
+#*********************************************************************************************************
+include $(CLEAR_VARS_MK)
+
+#*********************************************************************************************************
+# Target
+#*********************************************************************************************************
+LOCAL_TARGET_NAME := libxemail.so
+
+#*********************************************************************************************************
+# Source list
+#*********************************************************************************************************
+LOCAL_SRCS := \
+src/xemail.c
+
+#*********************************************************************************************************
+# Header file search path (eg. LOCAL_INC_PATH := -I"Your hearder files search path")
+#*********************************************************************************************************
+LOCAL_INC_PATH := -I"include"
+LOCAL_INC_PATH += -I"../libcurl/curl-7.40.0/include"
+
+#*********************************************************************************************************
+# Pre-defined macro (eg. -DYOUR_MARCO=1)
+#*********************************************************************************************************
+LOCAL_DSYMBOL :=
+
+#*********************************************************************************************************
+# Compiler flags
+#*********************************************************************************************************
+LOCAL_CFLAGS :=
+LOCAL_CXXFLAGS :=
+
+#*********************************************************************************************************
+# Depend library (eg. LOCAL_DEPEND_LIB := -la LOCAL_DEPEND_LIB_PATH := -L"Your library search path")
+#*********************************************************************************************************
+LOCAL_DEPEND_LIB :=
+LOCAL_DEPEND_LIB_PATH :=
+
+#*********************************************************************************************************
+# C++ config
+#*********************************************************************************************************
+LOCAL_USE_CXX := no
+LOCAL_USE_CXX_EXCEPT := no
+
+#*********************************************************************************************************
+# Code coverage config
+#*********************************************************************************************************
+LOCAL_USE_GCOV := no
+
+#*********************************************************************************************************
+# User link command
+#*********************************************************************************************************
+LOCAL_PRE_LINK_CMD :=
+LOCAL_POST_LINK_CMD :=
+LOCAL_PRE_STRIP_CMD :=
+LOCAL_POST_STRIP_CMD :=
+
+include $(LIBRARY_MK)
+
+#*********************************************************************************************************
+# End
+#*********************************************************************************************************
diff --git a/sendemail.mk b/sendemail.mk
new file mode 100644
index 0000000..e5e79e3
--- /dev/null
+++ b/sendemail.mk
@@ -0,0 +1,89 @@
+#*********************************************************************************************************
+#
+# 中国软件开源组织
+#
+# 嵌入式实时操作系统
+#
+# SylixOS(TM) LW : long wing
+#
+# Copyright All Rights Reserved
+#
+#--------------文件信息--------------------------------------------------------------------------------
+#
+# 文 件 名: sendemail.mk
+#
+# 创 建 人: RealEvo-IDE
+#
+# 文件创建日期: 2016 年 12 月 09 日
+#
+# 描 述: 本文件由 RealEvo-IDE 生成,用于配置 Makefile 功能,请勿手动修改
+#*********************************************************************************************************
+
+#*********************************************************************************************************
+# Clear setting
+#*********************************************************************************************************
+include $(CLEAR_VARS_MK)
+
+#*********************************************************************************************************
+# Target
+#*********************************************************************************************************
+LOCAL_TARGET_NAME := sendemail
+
+#*********************************************************************************************************
+# Source list
+#*********************************************************************************************************
+LOCAL_SRCS := \
+example/sendemail.c
+
+#*********************************************************************************************************
+# Header file search path (eg. LOCAL_INC_PATH := -I"Your hearder files search path")
+#*********************************************************************************************************
+LOCAL_INC_PATH := -I"include"
+LOCAL_INC_PATH += -I"../libcurl/curl-7.40.0/include"
+
+#*********************************************************************************************************
+# Pre-defined macro (eg. -DYOUR_MARCO=1)
+#*********************************************************************************************************
+LOCAL_DSYMBOL :=
+
+#*********************************************************************************************************
+# Compiler flags
+#*********************************************************************************************************
+LOCAL_CFLAGS :=
+LOCAL_CXXFLAGS :=
+
+#*********************************************************************************************************
+# Depend library (eg. LOCAL_DEPEND_LIB := -la LOCAL_DEPEND_LIB_PATH := -L"Your library search path")
+#*********************************************************************************************************
+LOCAL_DEPEND_LIB := -lxemail
+LOCAL_DEPEND_LIB_PATH := -L"./$(OUTDIR)"
+
+#*********************************************************************************************************
+# C++ config
+#*********************************************************************************************************
+LOCAL_USE_CXX := no
+LOCAL_USE_CXX_EXCEPT := no
+
+#*********************************************************************************************************
+# Code coverage config
+#*********************************************************************************************************
+LOCAL_USE_GCOV := no
+
+#*********************************************************************************************************
+# User link command
+#*********************************************************************************************************
+LOCAL_PRE_LINK_CMD :=
+LOCAL_POST_LINK_CMD :=
+LOCAL_PRE_STRIP_CMD :=
+LOCAL_POST_STRIP_CMD :=
+
+#*********************************************************************************************************
+# Depend target
+#*********************************************************************************************************
+LOCAL_DEPEND_TARGET = ./$(OUTDIR)/libxemail.so
+
+include $(APPLICATION_MK)
+
+#*********************************************************************************************************
+# End
+#*********************************************************************************************************