NWGNUtail.inc revision 0c12e1a9e31539021cf9a2de47f8a17fe7f78c8d
335N/A# This contains final targets and should be included at the end of any 335N/A# If we are going to create an nlm, make sure we have assigned variables to 335N/Aecho NLM_NAME=$(NLM_NAME) 335N/ANLM_NAME = $(TARGET_nlm) 335N/ANLM_DESCRIPTION = $(NLM_NAME) 335N/ANLM_THREAD_NAME = $(NLM_NAME) Thread 335N/ANLM_COPYRIGHT = Copyright (c) 2000-2004 The Apache Software Foundation. All rights reserved. 6719N/A# Create dependency lists based on the files available 335N/A$(NLM_NAME)_LINKOPT_DEPENDS = \ ifeq "$(words $(strip $(TARGET_lib)))" "1" LIB_NAME = $(basename $(notdir $(TARGET_lib))) $(LIB_NAME)_LIBLST_DEPENDS = \ ifeq "$(wildcard NWGNU$(LIB_NAME))" "NWGNU$(LIB_NAME)" $(LIB_NAME)_LIBLST_DEPENDS += NWGNU$(LIB_NAME) ifeq "$(wildcard NWGNU$(NLM_NAME))" "NWGNU$(NLM_NAME)" $(NLM_NAME)_LINKOPT_DEPENDS += NWGNU$(NLM_NAME) CCOPT_DEPENDS += NWGNU$(NLM_NAME) CPPOPT_DEPENDS += NWGNU$(NLM_NAME) $(AP_WORK)\build\NWGNUversion.inc : $(AP_WORK)\include\ap_release.h $(AP_WORK)\build\nw_ver.awk -include $(AP_WORK)\build\NWGNUversion.inc ifneq "$(strip $(VERSION_STR))" "" VERSION_INC = $(AP_WORK)\build\NWGNUversion.inc ifeq "$(words $(strip $(TARGET_nlm)))" "1" $(OBJDIR)/%.o: %.c $(OBJDIR)\$(NLM_NAME)_cc.opt $(OBJDIR)\$(NLM_NAME)_cc.opt: $(CCOPT_DEPENDS) ifneq "$(strip $(CFLAGS))" "" ifneq "$(strip $(XCFLAGS))" "" ifneq "$(strip $(XINCDIRS))" "" ifneq "$(strip $(INCDIRS))" "" ifneq "$(strip $(DEFINES))" "" ifneq "$(strip $(XDEFINES))" "" $(OBJDIR)/%.o: %.cpp $(OBJDIR)\cpp.opt $(OBJDIR)\cpp.opt: $(CPPOPT_DEPENDS) ifneq "$(strip $(CFLAGS))" "" ifneq "$(strip $(XCFLAGS))" "" ifneq "$(strip $(XINCDIRS))" "" ifneq "$(strip $(INCDIRS))" "" ifneq "$(strip $(DEFINES))" "" ifneq "$(strip $(XDEFINES))" "" # Rules to build libraries # If we only have one target library then build it ifeq "$(words $(strip $(TARGET_lib)))" "1" $(TARGET_lib) : $(OBJDIR)\$(LIB_NAME)_lib.lst $(OBJDIR)\$(LIB_NAME)_lib.lst: $($(LIB_NAME)_LIBLST_DEPENDS) ifneq "$(strip $(FILES_lib_objs))" "" else # We must have more than one target library so load the individual makefiles $(OBJDIR)/%.lib: NWGNU% $(AP_WORK)\build\NWGNUhead.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUenvironment.inc FORCE vpath libcpre.o $(NOVELLLIBC)\imports # If we only have one target NLM then build it ifeq "$(words $(strip $(TARGET_nlm)))" "1" $(TARGET_nlm) : $(FILES_nlm_objs) $(FILES_nlm_libs) $(OBJDIR)\$(NLM_NAME)_link.opt # This will force the link option file to be rebuilt if we change the $(OBJDIR)\$(NLM_NAME)_link.opt : $($(NLM_NAME)_LINKOPT_DEPENDS) ifneq "$(FILE_nlm_copyright)" "" ifeq "$(RELEASE)" "debug" ifneq "$(NLM_VERSION)" "" ifneq "$(NLM_STACK_SIZE)" "" ifneq "$(NLM_ENTRY_SYM)" "" ifneq "$(NLM_EXIT_SYM)" "" ifneq "$(NLM_CHECK_SYM)" "" ifneq "$(strip $(XLFLAGS))" "" ifneq "$(strip $(FILES_nlm_objs))" "" ifneq "$(FILES_nlm_libs)" "" ifneq "$(FILE_nlm_msg)" "" ifneq "$(FILE_nlm_hlp)" "" ifneq "$(FILES_nlm_modules)" "" ifneq "$(FILES_nlm_Ximports)" "" ifneq "$(FILES_nlm_exports)" "" # if APACHE_UNIPROC is defined, don't include XDCData ifneq "$(string $(XDCDATA))" "" else # more than one target so look for individual makefiles. # Only include these if NO_LICENSE_FILE isn't set to prevent excessive $(OBJDIR)/%.nlm: NWGNU% $(AP_WORK)\build\NWGNUhead.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUenvironment.inc $(CUSTOM_INI) $(VERSION_INC) FORCE