Commit 3918e65d authored by Guenter Knauf's avatar Guenter Knauf
Browse files

moved XLFLAGS to the .opt file so that external libs can be added;

added new var XDCDATA and removed xdcdata setting from mis-used XLFLAGS;
moved some copyright from .opt to .def file since -copy option doesnt accept commas.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@531666 13f79535-47bb-0310-9956-ffa450edef68
parent 3324dfbf
Loading
Loading
Loading
Loading
+15 −14
Original line number Diff line number Diff line
@@ -194,12 +194,9 @@ $(OBJDIR)\$(NLM_NAME)_link.opt : $($(NLM_NAME)_LINKOPT_DEPENDS)
	@echo Generating $@
	@echo -warnings off >> $@
	@echo -zerobss >> $@
	@echo -desc "$(NLM_DESCRIPTION)" >> $@
	@echo -o $(OBJDIR)\$(NLM_NAME).nlm >> $@
ifneq "$(FILE_nlm_copyright)" ""
	@-type $(FILE_nlm_copyright) >> $@
else
	@echo -copy "$(NLM_COPYRIGHT)" >> $@
endif
ifeq "$(RELEASE)" "debug"
	@echo -screenname "$(NLM_NAME) Screen" >> $@
@@ -209,20 +206,18 @@ ifeq "$(RELEASE)" "debug"
	@echo -osym $(NLM_NAME).sym >> $@
else	
	@echo -screenname "Apache for NetWare" >> $@ 
endif	
ifneq "$(NLM_VERSION)" ""
	@echo -nlmversion=$(NLM_VERSION) >> $@ 
else
	@echo -nlmversion=$(VERSION) >> $@
endif	
	@echo -l $(NWOS) >> $@
	@echo -l $(AP)\$(OBJDIR) >> $@
	@echo -l $(REGEX)\$(OBJDIR) >> $@
	@echo -l $(STDMOD)\$(OBJDIR) >> $@
	@echo -l $(NWOS)\$(OBJDIR) >> $@
#	@echo -l $(METROWERKS)\Novell Support\Metrowerks Support\Libraries\Runtime >> $@
#	@echo -l "$(METROWERKS)\Novell Support\Metrowerks Support\Libraries\Runtime" >> $@
	@echo -l $(NWSDKDIR)\imports >> $@
	@echo -l $(LDAPSDK)\Netware\clib\imports >> $@
ifneq "$(strip $(XLFLAGS))" ""
	@echo $(strip $(XLFLAGS)) >> $@
endif
	@echo -nodefaults >> $@
	@echo -map $(OBJDIR)\$(NLM_NAME).map>> $@
	@echo -threadname "$(NLM_THREAD_NAME)" >> $@
@@ -247,6 +242,15 @@ ifneq "$(FILES_nlm_libs)" ""
	@echo $(foreach libfile, $(notdir $(strip $(FILES_nlm_libs))),-l$(subst /,\,$(libfile))) >> $@
endif
	@echo -commandfile $(OBJDIR)\$(NLM_NAME)_link.def >> $@
	@echo Description "$(NLM_DESCRIPTION)" >> $(OBJDIR)\$(NLM_NAME)_link.def
ifeq "$(FILE_nlm_copyright)" ""
	@echo Copyright "$(NLM_COPYRIGHT)" >> $(OBJDIR)\$(NLM_NAME)_link.def
endif
ifneq "$(NLM_VERSION)" ""
	@echo Version $(NLM_VERSION) >> $(OBJDIR)\$(NLM_NAME)_link.def 
else
	@echo Version $(VERSION) >> $(OBJDIR)\$(NLM_NAME)_link.def
endif
ifneq "$(FILE_nlm_msg)" ""
	@echo Messages $(FILE_nlm_msg) >> $(OBJDIR)\$(NLM_NAME)_link.def
endif
@@ -262,12 +266,9 @@ endif
ifneq "$(FILES_nlm_exports)" ""
	@echo Export $(foreach export,$(subst $(SPACE),$(COMMA),$(strip $(FILES_nlm_exports))),$(subst /,\,$(export))) >> $(OBJDIR)\$(NLM_NAME)_link.def
endif	
ifneq "$(strip $(XLFLAGS))" ""
	@echo $(strip $(XLFLAGS)) >> $(OBJDIR)\$(NLM_NAME)_link.def
ifneq "$(XDCDATA)" ""
	@echo XDCData $(XDCDATA) >> $(OBJDIR)\$(NLM_NAME)_link.def
endif
#ifndef XDCFOUND
#	@echo XDCData $(NWOS)\apache.xdc >> $(OBJDIR)\$(NLM_NAME)_link.def
#endif

else # more than one target so look for individual makefiles.

+2 −4
Original line number Diff line number Diff line
@@ -40,9 +40,7 @@ XLFLAGS += \
			$(EOLIST)

ifdef MULTIPROC
XLFLAGS		+= \
		XDCData $(NWOS)\apache.xdc \
		$(EOLIST)
XDCDATA		= $(NWOS)\apache.xdc
endif

#
+2 −4
Original line number Diff line number Diff line
@@ -39,9 +39,7 @@ XLFLAGS += \
			$(EOLIST)

ifdef MULTIPROC
XLFLAGS		+= \
		XDCData $(NWOS)\apache.xdc \
		$(EOLIST)
XDCDATA		= $(NWOS)\apache.xdc
endif

#