Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Iniparser
提交
a8d6e6bf
T
Third Party Iniparser
项目概览
OpenHarmony
/
Third Party Iniparser
大约 1 年 前同步成功
通知
0
Star
24
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Iniparser
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a8d6e6bf
编写于
9月 12, 2013
作者:
N
Nicolas D
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #14 from kevin-dot-pyle/master
Build system improvements
上级
2e01cec4
fd8ca4b7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
36 addition
and
12 deletion
+36
-12
Makefile
Makefile
+20
-12
src/dictionary.h
src/dictionary.h
+8
-0
src/iniparser.h
src/iniparser.h
+8
-0
未找到文件。
Makefile
浏览文件 @
a8d6e6bf
...
...
@@ -3,32 +3,40 @@
#
# Compiler settings
CC
=
gcc
CFLAGS
=
-O2
-fPIC
-Wall
-ansi
-pedantic
CC
?=
gcc
CFLAGS
?=
-O2
CFLAGS
+=
-fPIC
-Wall
-ansi
-pedantic
# Ar settings to build the library
AR
=
ar
AR
?
=
ar
ARFLAGS
=
rcv
SHLD
=
${CC}
${CFLAGS}
LDSHFLAGS
=
-shared
-Wl
,-Bsymbolic
-Wl
,-rpath
-Wl
,/usr/lib
-Wl
,-rpath,/usr/lib
LDFLAGS
=
-Wl
,-rpath
-Wl
,/usr/lib
-Wl
,-rpath,/usr/lib
LDSHFLAGS
=
-shared
-Wl
,-Bsymbolic
LDFLAGS
+
=
-Wl
,-rpath
-Wl
,/usr/lib
-Wl
,-rpath,/usr/lib
# Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX)
# RANLIB = ranlib
RANLIB
=
true
RM
=
rm
-f
RM
?
=
rm
-f
# Implicit rules
SUFFIXES
=
.o .c .h .a .so .sl
COMPILE.c
=
$(CC)
$(CFLAGS)
-c
COMPILE.c
?=
$(CC)
$(CFLAGS)
$(CPPFLAGS)
$(TARGET_ARCH)
-c
ifndef
V
QUIET_AR
=
@echo
"AR
$@
"
;
QUIET_CC
=
@echo
"CC
$@
"
;
QUIET_LINK
=
@echo
"LINK
$@
"
;
QUIET_RANLIB
=
@echo
"RANLIB
$@
"
;
endif
.c.o
:
@
(
echo
"compiling
$<
..."
)
@
(
$(COMPILE.c)
-o
$@
$<
)
$(QUIET_CC)$(COMPILE.c)
$(OUTPUT_OPTION)
$<
SRCS
=
src/iniparser.c
\
...
...
@@ -40,11 +48,11 @@ OBJS = $(SRCS:.c=.o)
default
:
libiniparser.a libiniparser.so
libiniparser.a
:
$(OBJS)
@
(
$(AR)
$(ARFLAGS)
libiniparser.a
$(OBJS)
)
@
(
$(RANLIB)
libiniparser.a
)
$(QUIET_AR)$(AR)
$(ARFLAGS)
$@
$<
$(QUIET_RANLIB)$(RANLIB)
$@
libiniparser.so
:
$(OBJS)
@
$(SHLD)
$(LDSHFLAGS)
-o
$@
.0
$(OBJS)
$(LDFLAG
S)
\
$(QUIET_LINK)$(SHLD)
$(LDSHFLAGS)
$(LDFLAGS)
-o
$@
.0
$(OBJ
S)
\
-Wl
,-soname
=
`
basename
$@
`
.0
clean
:
...
...
src/dictionary.h
浏览文件 @
a8d6e6bf
...
...
@@ -23,6 +23,10 @@
#include <string.h>
#include <unistd.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/*---------------------------------------------------------------------------
New types
---------------------------------------------------------------------------*/
...
...
@@ -162,4 +166,8 @@ void dictionary_unset(dictionary * d, const char * key);
/*--------------------------------------------------------------------------*/
void
dictionary_dump
(
dictionary
*
d
,
FILE
*
out
);
#ifdef __cplusplus
}
#endif
#endif
src/iniparser.h
浏览文件 @
a8d6e6bf
...
...
@@ -27,6 +27,10 @@
#include "dictionary.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/*-------------------------------------------------------------------------*/
/**
@brief Get number of sections in a dictionary
...
...
@@ -304,4 +308,8 @@ dictionary * iniparser_load(const char * ininame);
/*--------------------------------------------------------------------------*/
void
iniparser_freedict
(
dictionary
*
d
);
#ifdef __cplusplus
}
#endif
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录