building separate lib and static linking it into mod_md

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/trunk-md@1804402 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Eissing
2017-08-08 11:37:48 +00:00
parent 30763980f9
commit 8349ec1561
3 changed files with 79 additions and 16 deletions

51
modules/md/Makefile Normal file
View File

@ -0,0 +1,51 @@
top_srcdir = /Users/sei/projects/httpd/trunk-md
top_builddir = /Users/sei/projects/httpd/trunk-md
srcdir = /Users/sei/projects/httpd/trunk-md/modules/md
builddir = /Users/sei/projects/httpd/trunk-md/modules/md
VPATH = /Users/sei/projects/httpd/trunk-md/modules/md
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# standard stuff
#
LTLIBRARY_NAME = libmd.la
LTLIBRARY_SOURCES = \
md_acme.c \
md_acme_acct.c \
md_acme_authz.c \
md_acme_drive.c \
md_core.c \
md_curl.c \
md_crypt.c \
md_http.c \
md_json.c \
md_jws.c \
md_log.c \
md_reg.c \
md_store.c \
md_store_fs.c \
md_util.c
LTLIBRARY_DEPENDENCIES = md.h
local-shared-build: $(LTLIBRARY_NAME) $(SHARED_TARGETS)
include $(top_srcdir)/build/library.mk
include $(top_srcdir)/build/special.mk

View File

@ -17,4 +17,30 @@
# standard stuff
#
LTLIBRARY_NAME = libmd.la
LTLIBRARY_SOURCES = \
md_acme.c \
md_acme_acct.c \
md_acme_authz.c \
md_acme_drive.c \
md_core.c \
md_curl.c \
md_crypt.c \
md_http.c \
md_json.c \
md_jws.c \
md_log.c \
md_reg.c \
md_store.c \
md_store_fs.c \
md_util.c
LTLIBRARY_DEPENDENCIES = md.h
local-shared-build: $(LTLIBRARY_NAME) $(SHARED_TARGETS)
include $(top_srcdir)/build/library.mk
include $(top_srcdir)/build/special.mk

View File

@ -246,25 +246,9 @@ dnl # list of module object files
md_objs="dnl
mod_md.lo dnl
md_config.lo dnl
md_core.lo dnl
md_crypt.lo dnl
md_curl.lo dnl
md_http.lo dnl
md_json.lo dnl
md_jws.lo dnl
md_log.lo dnl
md_os.lo dnl
md_reg.lo dnl
md_store.lo dnl
md_store_fs.lo dnl
md_util.lo dnl
md_acme.lo dnl
md_acme_acct.lo dnl
md_acme_authz.lo dnl
md_acme_drive.lo dnl
"
dnl # hook module into the Autoconf mechanism (--enable-md)
APACHE_MODULE(md, [Managed Domain handling], $md_objs, , most, [
APACHE_CHECK_OPENSSL
@ -284,6 +268,8 @@ APACHE_MODULE(md, [Managed Domain handling], $md_objs, , most, [
AC_MSG_WARN([libcurl not found])
enable_md=no
fi
APR_ADDTO(MOD_MD_LDADD, [ "libmd.la" ])
])
# Ensure that other modules can pick up mod_md.h