Skip to content

Commit

Permalink
compatible with openssl 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xjdrew committed Aug 7, 2018
1 parent ffed52d commit b8b2c1c
Show file tree
Hide file tree
Showing 10 changed files with 1,996 additions and 1,381 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ Release
TAGS
tags
*.so
tests/priv.pem
tests/pub.pem
tests/tmp.rnd

187 changes: 169 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,178 @@
T= crypto
V= 0.2.0
CONFIG= ./config
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.10

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

OBJS= src/l$T.o
SRCS= src/l$T.h src/l$T.c
TESTS=tests/*.lua
.PHONY : default_target

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

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

install: src/$(LIBNAME)
mkdir -p $(LUA_LIBDIR)
cp src/$(LIBNAME) $(LUA_LIBDIR)
#=============================================================================
# Special targets provided by cmake.

# Disable implicit rules so canonical targets will work.
.SUFFIXES:


# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =

.SUFFIXES: .hpux_make_needs_suffix_list


# Suppress display of executed commands.
$(VERBOSE).SILENT:


# A target that is always out of date.
cmake_force:

.PHONY : cmake_force

#=============================================================================
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh

# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake

# The command to remove a file.
RM = /usr/bin/cmake -E remove -f

# Escaping for special characters.
EQUALS = =

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/drew/code/luacrypto

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/drew/code/luacrypto

#=============================================================================
# Targets provided globally by CMake.

# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache

# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache

.PHONY : rebuild_cache/fast

# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
.PHONY : edit_cache

# Special rule for the target edit_cache
edit_cache/fast: edit_cache

.PHONY : edit_cache/fast

# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/drew/code/luacrypto/CMakeFiles /home/drew/code/luacrypto/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /home/drew/code/luacrypto/CMakeFiles 0
.PHONY : all

# The main clean target
clean:
rm -f src/$(LIBNAME) $(OBJS) $(COMPAT_O)
$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean

# The main clean target
clean/fast: clean

.PHONY : clean/fast

# Prepare targets for installation.
preinstall: all
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall

# Prepare targets for installation.
preinstall/fast:
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast

# clear depends
depend:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend

#=============================================================================
# Target rules for targets named crypto

# Build rule for target.
crypto: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 crypto
.PHONY : crypto

# fast build rule for target.
crypto/fast:
$(MAKE) -f CMakeFiles/crypto.dir/build.make CMakeFiles/crypto.dir/build
.PHONY : crypto/fast

src/lcrypto.o: src/lcrypto.c.o

.PHONY : src/lcrypto.o

# target to build an object file
src/lcrypto.c.o:
$(MAKE) -f CMakeFiles/crypto.dir/build.make CMakeFiles/crypto.dir/src/lcrypto.c.o
.PHONY : src/lcrypto.c.o

src/lcrypto.i: src/lcrypto.c.i

.PHONY : src/lcrypto.i

# target to preprocess a source file
src/lcrypto.c.i:
$(MAKE) -f CMakeFiles/crypto.dir/build.make CMakeFiles/crypto.dir/src/lcrypto.c.i
.PHONY : src/lcrypto.c.i

src/lcrypto.s: src/lcrypto.c.s

.PHONY : src/lcrypto.s

# target to generate assembly for a file
src/lcrypto.c.s:
$(MAKE) -f CMakeFiles/crypto.dir/build.make CMakeFiles/crypto.dir/src/lcrypto.c.s
.PHONY : src/lcrypto.c.s

# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... rebuild_cache"
@echo "... crypto"
@echo "... edit_cache"
@echo "... src/lcrypto.o"
@echo "... src/lcrypto.i"
@echo "... src/lcrypto.s"
.PHONY : help



#=============================================================================
# Special targets to cleanup operation of make.

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

.PHONY: test tests
Loading

0 comments on commit b8b2c1c

Please sign in to comment.