NWGNUtail.inc revision c89ded7f98b10e005f6b831eae48b7e3fbc1f8ea
4654dbb45f8a4aea7aa5fed6be22c9efff19bfcaChristian Maeder# This contains final targets and should be included at the end of any
4654dbb45f8a4aea7aa5fed6be22c9efff19bfcaChristian Maeder# NWGNUmakefile file
4654dbb45f8a4aea7aa5fed6be22c9efff19bfcaChristian Maeder# If we are going to create an nlm, make sure we have assigned variables to
4654dbb45f8a4aea7aa5fed6be22c9efff19bfcaChristian Maeder# use during the link.
4654dbb45f8a4aea7aa5fed6be22c9efff19bfcaChristian Maederecho NLM_NAME=$(NLM_NAME)
4654dbb45f8a4aea7aa5fed6be22c9efff19bfcaChristian Maederifndef NLM_NAME
4654dbb45f8a4aea7aa5fed6be22c9efff19bfcaChristian MaederNLM_NAME = $(TARGET_nlm)
$(CUSTOM_INI) \
$(EOLIST)
$(CUSTOM_INI) \
$(EOLIST)
$(TARGET_lib) \
$(CUSTOM_INI) \
$(VERSION_INC) \
$(EOLIST)
$(FILES_lib_objs) \
$(CUSTOM_INI) \
$(EOLIST)
$(AWK) -f $^ > $@
$(OBJDIR)/%.lib: NWGNU% $(AP_WORK)\build\NWGNUhead.inc $(AP_WORK)\build\NWGNUtail.inc $(AP_WORK)\build\NWGNUenvironment.inc FORCE
@echo -g >> $@
@echo stacksize $(subst K,000,$(subst k,K,$(strip $(NLM_STACK_SIZE)))) >> $(OBJDIR)\$(NLM_NAME)_link.def
@echo module $(foreach module,$(subst $(SPACE),$(COMMA),$(strip $(FILES_nlm_modules))),$(subst /,\,$(module))) >> $(OBJDIR)\$(NLM_NAME)_link.def
@echo import $(foreach import,$(subst $(SPACE),$(COMMA),$(strip $(FILES_nlm_Ximports))),$(subst /,\,$(import))) >> $(OBJDIR)\$(NLM_NAME)_link.def
@echo export $(foreach export,$(subst $(SPACE),$(COMMA),$(strip $(FILES_nlm_exports))),$(subst /,\,$(export))) >> $(OBJDIR)\$(NLM_NAME)_link.def