Skip to content

Commit 3e83c78

Browse files
author
zhuxiaojing
committed
compatible with openssl 1.1.0
1 parent ffed52d commit 3e83c78

File tree

10 files changed

+1996
-1381
lines changed

10 files changed

+1996
-1381
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ Release
77
TAGS
88
tags
99
*.so
10+
tests/priv.pem
11+
tests/pub.pem
12+
tests/tmp.rnd
13+

Makefile

Lines changed: 169 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,178 @@
1-
T= crypto
2-
V= 0.2.0
3-
CONFIG= ./config
1+
# CMAKE generated file: DO NOT EDIT!
2+
# Generated by "Unix Makefiles" Generator, CMake Version 3.10
43

5-
include $(CONFIG)
4+
# Default target executed when no arguments are given to make.
5+
default_target: all
66

7-
OBJS= src/l$T.o
8-
SRCS= src/l$T.h src/l$T.c
9-
TESTS=tests/*.lua
7+
.PHONY : default_target
108

11-
lib: $(LIBNAME)
9+
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
10+
.NOTPARALLEL:
1211

13-
$(LIBNAME): $(OBJS)
14-
export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(OPENSSL_LIBS)
1512

16-
install: src/$(LIBNAME)
17-
mkdir -p $(LUA_LIBDIR)
18-
cp src/$(LIBNAME) $(LUA_LIBDIR)
13+
#=============================================================================
14+
# Special targets provided by cmake.
1915

16+
# Disable implicit rules so canonical targets will work.
17+
.SUFFIXES:
18+
19+
20+
# Remove some rules from gmake that .SUFFIXES does not remove.
21+
SUFFIXES =
22+
23+
.SUFFIXES: .hpux_make_needs_suffix_list
24+
25+
26+
# Suppress display of executed commands.
27+
$(VERBOSE).SILENT:
28+
29+
30+
# A target that is always out of date.
31+
cmake_force:
32+
33+
.PHONY : cmake_force
34+
35+
#=============================================================================
36+
# Set environment variables for the build.
37+
38+
# The shell in which to execute make rules.
39+
SHELL = /bin/sh
40+
41+
# The CMake executable.
42+
CMAKE_COMMAND = /usr/bin/cmake
43+
44+
# The command to remove a file.
45+
RM = /usr/bin/cmake -E remove -f
46+
47+
# Escaping for special characters.
48+
EQUALS = =
49+
50+
# The top-level source directory on which CMake was run.
51+
CMAKE_SOURCE_DIR = /home/drew/code/luacrypto
52+
53+
# The top-level build directory on which CMake was run.
54+
CMAKE_BINARY_DIR = /home/drew/code/luacrypto
55+
56+
#=============================================================================
57+
# Targets provided globally by CMake.
58+
59+
# Special rule for the target rebuild_cache
60+
rebuild_cache:
61+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
62+
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
63+
.PHONY : rebuild_cache
64+
65+
# Special rule for the target rebuild_cache
66+
rebuild_cache/fast: rebuild_cache
67+
68+
.PHONY : rebuild_cache/fast
69+
70+
# Special rule for the target edit_cache
71+
edit_cache:
72+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
73+
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
74+
.PHONY : edit_cache
75+
76+
# Special rule for the target edit_cache
77+
edit_cache/fast: edit_cache
78+
79+
.PHONY : edit_cache/fast
80+
81+
# The main all target
82+
all: cmake_check_build_system
83+
$(CMAKE_COMMAND) -E cmake_progress_start /home/drew/code/luacrypto/CMakeFiles /home/drew/code/luacrypto/CMakeFiles/progress.marks
84+
$(MAKE) -f CMakeFiles/Makefile2 all
85+
$(CMAKE_COMMAND) -E cmake_progress_start /home/drew/code/luacrypto/CMakeFiles 0
86+
.PHONY : all
87+
88+
# The main clean target
2089
clean:
21-
rm -f src/$(LIBNAME) $(OBJS) $(COMPAT_O)
90+
$(MAKE) -f CMakeFiles/Makefile2 clean
91+
.PHONY : clean
92+
93+
# The main clean target
94+
clean/fast: clean
95+
96+
.PHONY : clean/fast
97+
98+
# Prepare targets for installation.
99+
preinstall: all
100+
$(MAKE) -f CMakeFiles/Makefile2 preinstall
101+
.PHONY : preinstall
102+
103+
# Prepare targets for installation.
104+
preinstall/fast:
105+
$(MAKE) -f CMakeFiles/Makefile2 preinstall
106+
.PHONY : preinstall/fast
107+
108+
# clear depends
109+
depend:
110+
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
111+
.PHONY : depend
112+
113+
#=============================================================================
114+
# Target rules for targets named crypto
115+
116+
# Build rule for target.
117+
crypto: cmake_check_build_system
118+
$(MAKE) -f CMakeFiles/Makefile2 crypto
119+
.PHONY : crypto
120+
121+
# fast build rule for target.
122+
crypto/fast:
123+
$(MAKE) -f CMakeFiles/crypto.dir/build.make CMakeFiles/crypto.dir/build
124+
.PHONY : crypto/fast
125+
126+
src/lcrypto.o: src/lcrypto.c.o
127+
128+
.PHONY : src/lcrypto.o
129+
130+
# target to build an object file
131+
src/lcrypto.c.o:
132+
$(MAKE) -f CMakeFiles/crypto.dir/build.make CMakeFiles/crypto.dir/src/lcrypto.c.o
133+
.PHONY : src/lcrypto.c.o
134+
135+
src/lcrypto.i: src/lcrypto.c.i
136+
137+
.PHONY : src/lcrypto.i
138+
139+
# target to preprocess a source file
140+
src/lcrypto.c.i:
141+
$(MAKE) -f CMakeFiles/crypto.dir/build.make CMakeFiles/crypto.dir/src/lcrypto.c.i
142+
.PHONY : src/lcrypto.c.i
143+
144+
src/lcrypto.s: src/lcrypto.c.s
145+
146+
.PHONY : src/lcrypto.s
147+
148+
# target to generate assembly for a file
149+
src/lcrypto.c.s:
150+
$(MAKE) -f CMakeFiles/crypto.dir/build.make CMakeFiles/crypto.dir/src/lcrypto.c.s
151+
.PHONY : src/lcrypto.c.s
152+
153+
# Help Target
154+
help:
155+
@echo "The following are some of the valid targets for this Makefile:"
156+
@echo "... all (the default if no target is provided)"
157+
@echo "... clean"
158+
@echo "... depend"
159+
@echo "... rebuild_cache"
160+
@echo "... crypto"
161+
@echo "... edit_cache"
162+
@echo "... src/lcrypto.o"
163+
@echo "... src/lcrypto.i"
164+
@echo "... src/lcrypto.s"
165+
.PHONY : help
166+
167+
168+
169+
#=============================================================================
170+
# Special targets to cleanup operation of make.
22171

23-
tests: test
24-
test: $(TESTS) lib
25-
./tests/run-tests
172+
# Special rule to run CMake to check the build system integrity.
173+
# No rule that depends on this can have commands that come from listfiles
174+
# because they might be regenerated.
175+
cmake_check_build_system:
176+
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
177+
.PHONY : cmake_check_build_system
26178

27-
.PHONY: test tests

0 commit comments

Comments
 (0)