Blame modules/http2/NWGNUmod_http2

Packit 90a5c9
#
Packit 90a5c9
# This Makefile requires the environment var NGH2SRC
Packit 90a5c9
# pointing to the base directory of nghttp2 source tree.
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Declare the sub-directories to be built here
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
SUBDIRS = \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Get the 'head' of the build environment.  This includes default targets and
Packit 90a5c9
# paths to tools
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
include $(AP_WORK)/build/NWGNUhead.inc
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# build this level's files
Packit 90a5c9
#
Packit 90a5c9
# Make sure all needed macro's are defined
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These directories will be at the beginning of the include list, followed by
Packit 90a5c9
# INCDIRS
Packit 90a5c9
#
Packit 90a5c9
XINCDIRS	+= \
Packit 90a5c9
			$(APR)/include \
Packit 90a5c9
			$(APRUTIL)/include \
Packit 90a5c9
			$(SRC)/include \
Packit 90a5c9
			$(NGH2SRC)/lib/ \
Packit 90a5c9
			$(NGH2SRC)/lib/includes \
Packit 90a5c9
			$(SERVER)/mpm/NetWare \
Packit 90a5c9
			$(STDMOD)/ssl \
Packit 90a5c9
			$(NWOS) \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These flags will come after CFLAGS
Packit 90a5c9
#
Packit 90a5c9
XCFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These defines will come after DEFINES
Packit 90a5c9
#
Packit 90a5c9
XDEFINES	+= \
Packit 90a5c9
			-DHAVE_CONFIG_H \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These flags will be added to the link.opt file
Packit 90a5c9
#
Packit 90a5c9
XLFLAGS		+= \
Packit 90a5c9
			-L$(OBJDIR) \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These values will be appended to the correct variables based on the value of
Packit 90a5c9
# RELEASE
Packit 90a5c9
#
Packit 90a5c9
ifeq "$(RELEASE)" "debug"
Packit 90a5c9
XINCDIRS	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XCFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XDEFINES	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XLFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
endif
Packit 90a5c9
Packit 90a5c9
ifeq "$(RELEASE)" "noopt"
Packit 90a5c9
XINCDIRS	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XCFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XDEFINES	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XLFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
endif
Packit 90a5c9
Packit 90a5c9
ifeq "$(RELEASE)" "release"
Packit 90a5c9
XINCDIRS	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XCFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XDEFINES	+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
Packit 90a5c9
XLFLAGS		+= \
Packit 90a5c9
			$(EOLIST)
Packit 90a5c9
endif
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are used by the link target if an NLM is being generated
Packit 90a5c9
# This is used by the link 'name' directive to name the nlm.  If left blank
Packit 90a5c9
# TARGET_nlm (see below) will be used.
Packit 90a5c9
#
Packit 90a5c9
NLM_NAME	= mod_http2
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# This is used by the link '-desc ' directive.
Packit 90a5c9
# If left blank, NLM_NAME will be used.
Packit 90a5c9
#
Packit 90a5c9
NLM_DESCRIPTION	= Apache $(VERSION_STR) HTTP2 Support module (w/ NGHTTP2 Lib)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# This is used by the '-threadname' directive.  If left blank,
Packit 90a5c9
# NLM_NAME Thread will be used.
Packit 90a5c9
#
Packit 90a5c9
NLM_THREAD_NAME	= $(NLM_NAME)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified, it will override VERSION value in
Packit 90a5c9
# $(AP_WORK)/build/NWGNUenvironment.inc
Packit 90a5c9
#
Packit 90a5c9
NLM_VERSION	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified, it will override the default of 64K
Packit 90a5c9
#
Packit 90a5c9
NLM_STACK_SIZE	= 65536
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be used by the link '-entry' directive
Packit 90a5c9
#
Packit 90a5c9
NLM_ENTRY_SYM	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be used by the link '-exit' directive
Packit 90a5c9
#
Packit 90a5c9
NLM_EXIT_SYM	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be used by the link '-check' directive
Packit 90a5c9
#
Packit 90a5c9
NLM_CHECK_SYM	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be used by the link '-flags' directive
Packit 90a5c9
#
Packit 90a5c9
NLM_FLAGS	=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified it will be linked in with the XDCData option in the def
Packit 90a5c9
# file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
Packit 90a5c9
# by setting APACHE_UNIPROC in the environment
Packit 90a5c9
#
Packit 90a5c9
XDCDATA		=
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Declare all target files (you must add your files here)
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If there is an NLM target, put it here
Packit 90a5c9
#
Packit 90a5c9
TARGET_nlm = \
Packit 90a5c9
	$(OBJDIR)/$(NLM_NAME).nlm \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If there is an LIB target, put it here
Packit 90a5c9
#
Packit 90a5c9
TARGET_lib = \
Packit 90a5c9
	$(OBJDIR)/nghttp2.lib \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are the OBJ files needed to create the NLM target above.
Packit 90a5c9
# Paths must all use the '/' character
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_objs = \
Packit 90a5c9
	$(OBJDIR)/h2_alt_svc.o \
Packit 90a5c9
	$(OBJDIR)/h2_bucket_beam.o \
Packit 90a5c9
	$(OBJDIR)/h2_bucket_eos.o \
Packit 90a5c9
	$(OBJDIR)/h2_config.o \
Packit 90a5c9
	$(OBJDIR)/h2_conn.o \
Packit 90a5c9
	$(OBJDIR)/h2_conn_io.o \
Packit 90a5c9
	$(OBJDIR)/h2_ctx.o \
Packit 90a5c9
	$(OBJDIR)/h2_filter.o \
Packit 90a5c9
	$(OBJDIR)/h2_from_h1.o \
Packit 90a5c9
	$(OBJDIR)/h2_h2.o \
Packit 90a5c9
	$(OBJDIR)/h2_mplx.o \
Packit 90a5c9
	$(OBJDIR)/h2_ngn_shed.o \
Packit 90a5c9
	$(OBJDIR)/h2_push.o \
Packit 90a5c9
	$(OBJDIR)/h2_request.o \
Packit 90a5c9
	$(OBJDIR)/h2_headers.o \
Packit 90a5c9
	$(OBJDIR)/h2_session.o \
Packit 90a5c9
	$(OBJDIR)/h2_stream.o \
Packit 90a5c9
	$(OBJDIR)/h2_switch.o \
Packit 90a5c9
	$(OBJDIR)/h2_task.o \
Packit 90a5c9
	$(OBJDIR)/h2_util.o \
Packit 90a5c9
	$(OBJDIR)/h2_workers.o \
Packit 90a5c9
	$(OBJDIR)/mod_http2.o \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are the LIB files needed to create the NLM target above.
Packit 90a5c9
# These will be added as a library command in the link.opt file.
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_libs = \
Packit 90a5c9
	$(PRELUDE) \
Packit 90a5c9
	$(OBJDIR)/nghttp2.lib \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are the modules that the above NLM target depends on to load.
Packit 90a5c9
# These will be added as a module command in the link.opt file.
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_modules = \
Packit 90a5c9
	Libc \
Packit 90a5c9
	Apache2 \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If the nlm has a msg file, put it's path here
Packit 90a5c9
#
Packit 90a5c9
FILE_nlm_msg =
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If the nlm has a hlp file put it's path here
Packit 90a5c9
#
Packit 90a5c9
FILE_nlm_hlp =
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# If this is specified, it will override $(NWOS)\copyright.txt.
Packit 90a5c9
#
Packit 90a5c9
FILE_nlm_copyright =
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Any additional imports go here
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_Ximports = \
Packit 90a5c9
	@libc.imp \
Packit 90a5c9
	@aprlib.imp \
Packit 90a5c9
	@httpd.imp \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Any symbols exported to here
Packit 90a5c9
#
Packit 90a5c9
FILES_nlm_exports = \
Packit 90a5c9
	@$(OBJDIR)/mod_http2.imp \
Packit 90a5c9
	$(EOLIST)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# These are the OBJ files needed to create the LIB target above.
Packit 90a5c9
# Paths must all use the '/' character
Packit 90a5c9
#
Packit 90a5c9
FILES_lib_objs := $(sort $(patsubst $(NGH2SRC)/lib/%.c,$(OBJDIR)/%.o,$(wildcard $(NGH2SRC)/lib/*.c)))
Packit 90a5c9
#
Packit 90a5c9
# implement targets and dependancies (leave this section alone)
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
libs :: $(OBJDIR) $(NGH2SRC)/lib/config.h $(TARGET_lib)
Packit 90a5c9
Packit 90a5c9
nlms :: libs $(OBJDIR)/mod_http2.imp $(TARGET_nlm)
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Updated this target to create necessary directories and copy files to the
Packit 90a5c9
# correct place.  (See $(AP_WORK)/build/NWGNUhead.inc for examples)
Packit 90a5c9
#
Packit 90a5c9
install :: nlms FORCE
Packit 90a5c9
	$(call COPY,$(OBJDIR)/*.nlm,        $(INSTALLBASE)/modules/)
Packit 90a5c9
Packit 90a5c9
clean ::
Packit 90a5c9
	$(call DEL,$(NGH2SRC)/lib/config.h)
Packit 90a5c9
#
Packit 90a5c9
# Any specialized rules here
Packit 90a5c9
#
Packit 90a5c9
vpath %.c $(NGH2SRC)/lib
Packit 90a5c9
Packit 90a5c9
$(NGH2SRC)/lib/config.h : NWGNUmod_http2
Packit 90a5c9
	@-$(RM) $@
Packit 90a5c9
	@echo $(DL)GEN  $@$(DL)
Packit 90a5c9
	@echo $(DL)/* For NetWare target.$(DL) > $@
Packit 90a5c9
	@echo $(DL)** Do not edit - created by Make!$(DL) >> $@
Packit 90a5c9
	@echo $(DL)*/$(DL) >> $@
Packit 90a5c9
	@echo $(DL)#ifndef NGH2_CONFIG_H$(DL) >> $@
Packit 90a5c9
	@echo $(DL)#define NGH2_CONFIG_H$(DL) >> $@
Packit 90a5c9
	@echo #define HAVE_ARPA_INET_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_CHOWN 1 >> $@
Packit 90a5c9
	@echo #define HAVE_DECL_STRERROR_R 1 >> $@
Packit 90a5c9
	@echo #define HAVE_DLFCN_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_DUP2 1 >> $@
Packit 90a5c9
	@echo #define HAVE_FCNTL_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_GETCWD 1 >> $@
Packit 90a5c9
	@echo #define HAVE_INTTYPES_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_LIMITS_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_LOCALTIME_R 1 >> $@
Packit 90a5c9
	@echo #define HAVE_MALLOC 1 >> $@
Packit 90a5c9
	@echo #define HAVE_MEMCHR 1 >> $@
Packit 90a5c9
	@echo #define HAVE_MEMMOVE 1 >> $@
Packit 90a5c9
	@echo #define HAVE_MEMORY_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_MEMSET 1 >> $@
Packit 90a5c9
	@echo #define HAVE_NETDB_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_NETINET_IN_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_PTRDIFF_T 1 >> $@
Packit 90a5c9
	@echo #define HAVE_PWD_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_SOCKET 1 >> $@
Packit 90a5c9
	@echo #define HAVE_SQRT 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STDDEF_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STDINT_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STDLIB_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRCHR 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRDUP 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRERROR 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRERROR_R 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRINGS_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRING_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRSTR 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRTOL 1 >> $@
Packit 90a5c9
	@echo #define HAVE_STRTOUL 1 >> $@
Packit 90a5c9
	@echo #define HAVE_SYSLOG_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_SYS_SOCKET_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_SYS_STAT_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_SYS_TIME_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_SYS_TYPES_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_TIME_H 1 >> $@
Packit 90a5c9
	@echo #define HAVE_UNISTD_H 1 >> $@
Packit 90a5c9
Packit 90a5c9
	@echo #define SIZEOF_INT_P 4 >> $@
Packit 90a5c9
	@echo #define STDC_HEADERS 1 >> $@
Packit 90a5c9
	@echo #define STRERROR_R_CHAR_P 4 >> $@
Packit 90a5c9
Packit 90a5c9
# Hint to compiler a function parameter is not used
Packit 90a5c9
	@echo #define _U_ >> $@
Packit 90a5c9
Packit 90a5c9
	@echo #ifndef __cplusplus >> $@
Packit 90a5c9
	@echo #define inline __inline >> $@
Packit 90a5c9
	@echo #endif >> $@
Packit 90a5c9
Packit 90a5c9
	@echo $(DL)#endif /* NGH2_CONFIG_H */$(DL) >> $@
Packit 90a5c9
Packit 90a5c9
#
Packit 90a5c9
# Exports from mod_http2 for mod_proxy_http2
Packit 90a5c9
$(OBJDIR)/mod_http2.imp : NWGNUmod_http2
Packit 90a5c9
	@-$(RM) $@
Packit 90a5c9
	@echo $(DL)GEN  $@$(DL)
Packit 90a5c9
	@echo $(DL) (HTTP2)$(DL) > $@
Packit 90a5c9
	@echo $(DL) http2_module,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_is_fatal,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_option_del,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_option_new,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_option_set_no_auto_window_update,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_option_set_peer_max_concurrent_streams,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_callbacks_del,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_callbacks_new,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_callbacks_set_before_frame_send_callback,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_callbacks_set_on_data_chunk_recv_callback,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_callbacks_set_on_frame_recv_callback,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_callbacks_set_on_header_callback,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_callbacks_set_on_stream_close_callback,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_callbacks_set_send_callback,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_client_new2,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_consume,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_consume_connection,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_del,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_get_remote_settings,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_get_stream_user_data,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_mem_recv,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_resume_data,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_send,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_want_read,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_session_want_write,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_strerror,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_submit_goaway,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_submit_ping,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_submit_request,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_submit_rst_stream,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_submit_settings,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_submit_window_update,$(DL) >> $@
Packit 90a5c9
	@echo $(DL) nghttp2_version$(DL) >> $@
Packit 90a5c9
Packit 90a5c9
# Include the 'tail' makefile that has targets that depend on variables defined
Packit 90a5c9
# in this makefile
Packit 90a5c9
#
Packit 90a5c9
Packit 90a5c9
include $(APBUILD)/NWGNUtail.inc
Packit 90a5c9
Packit 90a5c9