Blame NWGNUmakefile

Packit 383869
#
Packit 383869
# Declare the sub-directories to be built here
Packit 383869
#
Packit 383869
Packit 383869
SUBDIRS = \
Packit 383869
	ldap \
Packit 383869
	xml \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
ifdef WITH_APR_DBD
Packit 383869
SUBDIRS += \
Packit 383869
	dbd \
Packit 383869
	$(EOLIST)
Packit 383869
endif
Packit 383869
Packit 383869
ifdef WITH_APR_DBM
Packit 383869
SUBDIRS += \
Packit 383869
	dbm \
Packit 383869
	$(EOLIST)
Packit 383869
endif
Packit 383869
Packit 383869
#
Packit 383869
# Get the 'head' of the build environment.  This includes default targets and
Packit 383869
# paths to tools
Packit 383869
#
Packit 383869
Packit 383869
include $(APR_WORK)/build/NWGNUhead.inc
Packit 383869
Packit 383869
#
Packit 383869
# Make sure all needed macro's are defined
Packit 383869
#
Packit 383869
Packit 383869
#
Packit 383869
# These directories will be at the beginning of the include list, followed by
Packit 383869
# INCDIRS
Packit 383869
#
Packit 383869
XINCDIRS	+= \
Packit 383869
			$(APR)/include \
Packit 383869
			$(APR)/include/arch/NetWare \
Packit 383869
			$(APU)/include \
Packit 383869
			$(APU)/uri \
Packit 383869
			$(APU)/dbm/sdbm \
Packit 383869
			$(APU)/include/private \
Packit 383869
			$(APUXML)/expat/lib \
Packit 383869
			$(LDAPSDK)/inc \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These flags will come after CFLAGS
Packit 383869
#
Packit 383869
XCFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These defines will come after DEFINES
Packit 383869
#
Packit 383869
XDEFINES	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These flags will be added to the link.opt file
Packit 383869
#
Packit 383869
XLFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These values will be appended to the correct variables based on the value of
Packit 383869
# RELEASE
Packit 383869
#
Packit 383869
ifeq "$(RELEASE)" "debug"
Packit 383869
XINCDIRS	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XCFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XDEFINES	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XLFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
endif
Packit 383869
Packit 383869
ifeq "$(RELEASE)" "noopt"
Packit 383869
XINCDIRS	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XCFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XDEFINES	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XLFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
endif
Packit 383869
Packit 383869
ifeq "$(RELEASE)" "release"
Packit 383869
XINCDIRS	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XCFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XDEFINES	+= \
Packit 383869
			$(EOLIST)
Packit 383869
Packit 383869
XLFLAGS		+= \
Packit 383869
			$(EOLIST)
Packit 383869
endif
Packit 383869
Packit 383869
#
Packit 383869
# These are used by the link target if an NLM is being generated
Packit 383869
# This is used by the link 'name' directive to name the nlm.  If left blank
Packit 383869
# TARGET_nlm (see below) will be used.
Packit 383869
#
Packit 383869
NLM_NAME	=
Packit 383869
Packit 383869
#
Packit 383869
# This is used by the link '-desc ' directive.
Packit 383869
# If left blank, NLM_NAME will be used.
Packit 383869
#
Packit 383869
NLM_DESCRIPTION	=
Packit 383869
Packit 383869
#
Packit 383869
# This is used by the '-threadname' directive.  If left blank,
Packit 383869
# NLM_NAME Thread will be used.
Packit 383869
#
Packit 383869
NLM_THREAD_NAME	=
Packit 383869
#
Packit 383869
# If this is specified, it will override VERSION value in
Packit 383869
# $(APR_WORK)/build/NWGNUenvironment.inc
Packit 383869
#
Packit 383869
NLM_VERSION	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified, it will override the default of 64K
Packit 383869
#
Packit 383869
NLM_STACK_SIZE	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be used by the link '-entry' directive
Packit 383869
#
Packit 383869
NLM_ENTRY_SYM	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be used by the link '-exit' directive
Packit 383869
#
Packit 383869
NLM_EXIT_SYM	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be used by the link '-check' directive
Packit 383869
#
Packit 383869
NLM_CHECK_SYM	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be used by the link '-flags' directive
Packit 383869
#
Packit 383869
NLM_FLAGS	=
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified it will be linked in with the XDCData option in the def
Packit 383869
# file instead of the default of $(APR)/misc/netware/apache.xdc.  XDCData can
Packit 383869
# be disabled by setting APACHE_UNIPROC in the environment
Packit 383869
#
Packit 383869
XDCDATA		=
Packit 383869
Packit 383869
#
Packit 383869
# Declare all target files (you must add your files here)
Packit 383869
#
Packit 383869
Packit 383869
#
Packit 383869
# If there is an NLM target, put it here
Packit 383869
#
Packit 383869
TARGET_nlm = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# If there is an LIB target, put it here
Packit 383869
#
Packit 383869
TARGET_lib = \
Packit 383869
	$(OBJDIR)/apulib.lib \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These are the OBJ files needed to create the NLM target above.
Packit 383869
# Paths must all use the '/' character
Packit 383869
#
Packit 383869
FILES_nlm_objs = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These are the LIB files needed to create the NLM target above.
Packit 383869
# These will be added as a library command in the link.opt file.
Packit 383869
#
Packit 383869
FILES_nlm_libs = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These are the modules that the above NLM target depends on to load.
Packit 383869
# These will be added as a module command in the link.opt file.
Packit 383869
#
Packit 383869
FILES_nlm_modules = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# If the nlm has a msg file, put it's path here
Packit 383869
#
Packit 383869
FILE_nlm_msg =
Packit 383869
Packit 383869
#
Packit 383869
# If the nlm has a hlp file put it's path here
Packit 383869
#
Packit 383869
FILE_nlm_hlp =
Packit 383869
Packit 383869
#
Packit 383869
# If this is specified, it will override $(NWOS)\copyright.txt.
Packit 383869
#
Packit 383869
FILE_nlm_copyright =
Packit 383869
Packit 383869
#
Packit 383869
# Any additional imports go here
Packit 383869
#
Packit 383869
FILES_nlm_Ximports = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# Any symbols exported to here
Packit 383869
#
Packit 383869
FILES_nlm_exports = \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# These are the OBJ files needed to create the LIB target above.
Packit 383869
# Paths must all use the '/' character
Packit 383869
#
Packit 383869
FILES_lib_objs = \
Packit 383869
	$(OBJDIR)/apr_base64.o \
Packit 383869
	$(OBJDIR)/apr_brigade.o \
Packit 383869
	$(OBJDIR)/apr_buckets.o \
Packit 383869
	$(OBJDIR)/apr_buckets_alloc.o \
Packit 383869
	$(OBJDIR)/apr_buckets_eos.o \
Packit 383869
	$(OBJDIR)/apr_buckets_file.o \
Packit 383869
	$(OBJDIR)/apr_buckets_flush.o \
Packit 383869
	$(OBJDIR)/apr_buckets_heap.o \
Packit 383869
	$(OBJDIR)/apr_buckets_mmap.o \
Packit 383869
	$(OBJDIR)/apr_buckets_pipe.o \
Packit 383869
	$(OBJDIR)/apr_buckets_pool.o \
Packit 383869
	$(OBJDIR)/apr_buckets_refcount.o \
Packit 383869
	$(OBJDIR)/apr_buckets_simple.o \
Packit 383869
	$(OBJDIR)/apr_buckets_socket.o \
Packit 383869
	$(OBJDIR)/apr_crypto.o \
Packit 383869
	$(OBJDIR)/apr_date.o \
Packit 383869
	$(OBJDIR)/apr_dbm.o \
Packit 383869
	$(OBJDIR)/apr_dbd.o \
Packit 383869
	$(OBJDIR)/apr_dbm_sdbm.o \
Packit 383869
	$(OBJDIR)/apu_dso.o \
Packit 383869
	$(OBJDIR)/apr_hooks.o \
Packit 383869
	$(OBJDIR)/apr_md4.o \
Packit 383869
	$(OBJDIR)/apr_md5.o \
Packit 383869
	$(OBJDIR)/apr_memcache.o \
Packit 383869
	$(OBJDIR)/apr_passwd.o \
Packit 383869
	$(OBJDIR)/apr_queue.o \
Packit 383869
	$(OBJDIR)/apr_redis.o \
Packit 383869
	$(OBJDIR)/apr_reslist.o \
Packit 383869
	$(OBJDIR)/apr_rmm.o \
Packit 383869
	$(OBJDIR)/apr_sha1.o \
Packit 383869
	$(OBJDIR)/apr_siphash.o \
Packit 383869
	$(OBJDIR)/apu_version.o \
Packit 383869
	$(OBJDIR)/getuuid.o \
Packit 383869
	$(OBJDIR)/uuid.o \
Packit 383869
	$(OBJDIR)/apr_strmatch.o \
Packit 383869
	$(OBJDIR)/apr_thread_pool.o \
Packit 383869
	$(OBJDIR)/apr_uri.o \
Packit 383869
	$(OBJDIR)/crypt_blowfish.o \
Packit 383869
	$(OBJDIR)/sdbm.o \
Packit 383869
	$(OBJDIR)/sdbm_hash.o \
Packit 383869
	$(OBJDIR)/sdbm_lock.o \
Packit 383869
	$(OBJDIR)/sdbm_pair.o \
Packit 383869
	$(OBJDIR)/xlate.o \
Packit 383869
	$(EOLIST)
Packit 383869
Packit 383869
#
Packit 383869
# implement targets and dependancies (leave this section alone)
Packit 383869
#
Packit 383869
Packit 383869
libs :: $(OBJDIR) $(TARGET_lib)
Packit 383869
Packit 383869
nlms :: libs $(TARGET_nlm)
Packit 383869
Packit 383869
#
Packit 383869
# Updated this target to create necessary directories and copy files to the
Packit 383869
# correct place.  (See $(APR_WORK)/build/NWGNUhead.inc for examples)
Packit 383869
#
Packit 383869
install :: nlms FORCE
Packit 383869
Packit 383869
#
Packit 383869
# Any specialized rules here
Packit 383869
#
Packit 383869
Packit 383869
vpath %.c buckets:crypto:dbd:dbm:dbm/sdbm:encoding:hooks:ldap:memcache:redis:misc:strmatch:uri:xlate:xml
Packit 383869
Packit 383869
#
Packit 383869
# Include the 'tail' makefile that has targets that depend on variables defined
Packit 383869
# in this makefile
Packit 383869
#
Packit 383869
Packit 383869
include $(APRBUILD)/NWGNUtail.inc
Packit 383869
Packit 383869