Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
2e0fc875
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
9 个月 前同步成功
通知
8
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2e0fc875
编写于
7月 27, 1999
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use correct CFLAG definition for makefile.one builds.
上级
488c0657
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
51 addition
and
6 deletion
+51
-6
CHANGES
CHANGES
+4
-3
Configure
Configure
+2
-0
crypto/.cvsignore
crypto/.cvsignore
+1
-0
crypto/Makefile.ssl
crypto/Makefile.ssl
+2
-2
crypto/cversion.c
crypto/cversion.c
+6
-1
util/mk1mf.pl
util/mk1mf.pl
+36
-0
未找到文件。
CHANGES
浏览文件 @
2e0fc875
...
@@ -30,9 +30,10 @@
...
@@ -30,9 +30,10 @@
*) The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
*) The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
(both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
(both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
problems not only on Windows, but also on some Unix platforms.
problems not only on Windows, but also on some Unix platforms.
To avoid problematic command lines, these definitions are now made
To avoid problematic command lines, these definitions are now in an
in auto-generated file crypto/buildinf.h, which also defines DATE
auto-generated file, which also defines DATE and thus replaces
and thus replaces crypto/date.h.
crypto/date.h. Standard "make" builds use crypto/buildinf.h,
mk1mf.pl builds use crypto/mk1mfinf.h (created by mk1mf.pl).
[Bodo Moeller]
[Bodo Moeller]
*) MIPS III/IV assembler module is reimplemented.
*) MIPS III/IV assembler module is reimplemented.
...
...
Configure
浏览文件 @
2e0fc875
...
@@ -710,11 +710,13 @@ if($IsWindows) {
...
@@ -710,11 +710,13 @@ if($IsWindows) {
printf OUT <<EOF;
printf OUT <<EOF;
/* auto-generated by Configure for crypto/cversion.c */
/* auto-generated by Configure for crypto/cversion.c */
/* (Unix builds: auto-generated by crypto/Makefile.ssl) */
/* (Unix builds: auto-generated by crypto/Makefile.ssl) */
/* mk1mf builds use mk1mfinf.h instead, so this file is probably never needed */
#define CFLAGS "$cc $cflags"
#define CFLAGS "$cc $cflags"
#define PLATFORM "$target"
#define PLATFORM "$target"
EOF
EOF
printf OUT "#define DATE \"%s\"\n", scalar gmtime();
printf OUT "#define DATE \"%s\"\n", scalar gmtime();
close(OUT);
close(OUT);
system "perl crypto/objects/obj_dat.pl <crypto/objects/objects.h >crypto/objects/obj_dat.h";
system "perl crypto/objects/obj_dat.pl <crypto/objects/objects.h >crypto/objects/obj_dat.h";
} else {
} else {
(system "make -f Makefile.ssl PERL=\'$perl\' links") == 0 or exit $?;
(system "make -f Makefile.ssl PERL=\'$perl\' links") == 0 or exit $?;
...
...
crypto/.cvsignore
浏览文件 @
2e0fc875
lib
lib
buildinf.h
buildinf.h
mk1mfinf.h
opensslconf.h
opensslconf.h
Makefile.save
Makefile.save
crypto/Makefile.ssl
浏览文件 @
2e0fc875
...
@@ -51,7 +51,7 @@ all: buildinf.h lib subdirs
...
@@ -51,7 +51,7 @@ all: buildinf.h lib subdirs
buildinf.h
:
../Makefile.ssl
buildinf.h
:
../Makefile.ssl
(
echo
"/* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"
;
\
(
echo
"/* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"
;
\
echo
"/* (
Windows builds: auto-generated by Configure
) */"
;
\
echo
"/* (
mk1mf builds use mk1mfinf.h instead
) */"
;
\
echo
"#define CFLAGS
\"
$(CC)
$(CFLAG)
\"
"
;
\
echo
"#define CFLAGS
\"
$(CC)
$(CFLAG)
\"
"
;
\
echo
"#define PLATFORM
\"
$(PLATFORM)
\"
"
;
\
echo
"#define PLATFORM
\"
$(PLATFORM)
\"
"
;
\
echo
"#define DATE
\"
`
date
`
\"
"
)
>
buildinf.h
echo
"#define DATE
\"
`
date
`
\"
"
)
>
buildinf.h
...
@@ -129,7 +129,7 @@ depend:
...
@@ -129,7 +129,7 @@ depend:
done
;
done
;
clean
:
clean
:
rm
-f
buildinf.h
*
.o
*
/
*
.o
*
.obj lib tags core .pure .nfs
*
*
.old
*
.bak fluff
rm
-f
buildinf.h
mk1mfinf.h
*
.o
*
/
*
.o
*
.obj lib tags core .pure .nfs
*
*
.old
*
.bak fluff
@
for
i
in
$(SDIRS)
;
\
@
for
i
in
$(SDIRS)
;
\
do
\
do
\
(
cd
$$
i
;
echo
"making clean in crypto/
$$
i..."
;
\
(
cd
$$
i
;
echo
"making clean in crypto/
$$
i..."
;
\
...
...
crypto/cversion.c
浏览文件 @
2e0fc875
...
@@ -60,7 +60,12 @@
...
@@ -60,7 +60,12 @@
#include <string.h>
#include <string.h>
#include "cryptlib.h"
#include "cryptlib.h"
#include <openssl/crypto.h>
#include <openssl/crypto.h>
#include "buildinf.h"
#ifdef MK1MF_BUILD
# include "mk1mfinf.h"
#else
# include "buildinf.h"
#endif
const
char
*
SSLeay_version
(
int
t
)
const
char
*
SSLeay_version
(
int
t
)
{
{
...
...
util/mk1mf.pl
浏览文件 @
2e0fc875
...
@@ -401,6 +401,41 @@ vclean:
...
@@ -401,6 +401,41 @@ vclean:
\$(RM) \$(OUT_D)$o*.*
\$(RM) \$(OUT_D)$o*.*
EOF
EOF
my
$platform_cpp_symbol
=
"
MK1MF_PLATFORM_
$platform
";
$platform_cpp_symbol
=~
s/-/_/
;
if
(
open
(
IN
,"
crypto/mk1mfinf.h
"))
{
# Remove entry for this platform in existing file mk1mfinf.h.
my
$old_mk1mfinf_h
=
"";
while
(
<
IN
>
)
{
if
(
/^\#ifdef $platform_cpp_symbol$/
)
{
while
(
<
IN
>
)
{
last
if
(
/^\#endif/
);
}
}
else
{
$old_mk1mfinf_h
.=
$_
;
}
}
open
(
OUT
,"
>crypto/mk1mfinf.h
")
||
die
"
Can't open mk1mfinf.h
";
print
OUT
$old_mk1mfinf_h
;
}
open
(
OUT
,"
>>crypto/mk1mfinf.h
")
||
die
"
Can't open mk1mfinf.h
";
printf
OUT
<<EOF;
#ifdef $platform_cpp_symbol
/* auto-generated and updated by util/mk1mf.pl for crypto/cversion.c */
/* (used in place of crypto/buildinf.h by mk1mf builds) */
#define CFLAGS "$cc $cflags"
#define PLATFORM "$platform"
EOF
printf
OUT
"
#define DATE
\"
%s
\"\n
",
scalar
gmtime
();
printf
OUT
"
#endif
\n
";
close
(
OUT
);
#############################################
#############################################
# We parse in input file and 'store' info for later printing.
# We parse in input file and 'store' info for later printing.
...
@@ -730,6 +765,7 @@ sub cc_compile_target
...
@@ -730,6 +765,7 @@ sub cc_compile_target
local
(
$target
,
$source
,
$ex_flags
)
=
@_
;
local
(
$target
,
$source
,
$ex_flags
)
=
@_
;
local
(
$ret
);
local
(
$ret
);
$ex_flags
.=
"
-DMK1MF_BUILD -D
$platform_cpp_symbol
"
if
(
$source
=~
/cversion/
);
$target
=~
s/\//$o/g
if
$o
ne
"
/
";
$target
=~
s/\//$o/g
if
$o
ne
"
/
";
$source
=~
s/\//$o/g
if
$o
ne
"
/
";
$source
=~
s/\//$o/g
if
$o
ne
"
/
";
$ret
=
"
$target
:
\$
(SRC_D)
$o$source
\n\t
";
$ret
=
"
$target
:
\$
(SRC_D)
$o$source
\n\t
";
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录