# # Makefile for XWorkplace National Language Support. # # A makefile contains information about how several source files # relate to each other, especially which code modules must be updated # when certain source files change. # # For use with IBM NMAKE, which is part of IBM C-Set/2 and VisualAge C++. # This file will probably not work with other MAKE utilities, such as # GNU make or DMAKE. # # Copyright (C) 1997-2016 Ulrich M”ller. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, in version 2 as it comes in the COPYING # file of the XWorkplace main distribution. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # Required changes for translating the NLS DLL: three lines below. # # Say hello to yourself. !if [@echo +++++ Entering $(MAKEDIR)] !endif # include setup (compiler options etc.) !include ..\..\config.in !include ..\..\make\setup.in # This is the language code for the language that the NLS DLL # will support. Change this to a different language code, and # the makefile will support your language. The language code # MUST have three digits exactly. LANGUAGE = 034 # # DO NOT CHANGE THE FOLLOWING # # OUTPUTDIR specifies the directory where all the output .OBJ # files will be created in. OUTPUTDIR = $(XWP_OUTPUT_ROOT) # create output directory !if [@md $(OUTPUTDIR) 2> NUL] !endif !if [@md $(MODULESDIR) 2> NUL] !endif # Define the suffixes for files which NMAKE will work on. # .SUFFIXES is a reserved NMAKE keyword ("pseudotarget") for # defining file extensions that NMAKE will recognize. .SUFFIXES: .txt .obj .dll .rc .res .html .ipf .hlp .inf # # Now define inference rules for the different file types. # all: $(XWPRUNNING)\bin\xfldr$(LANGUAGE).dll @echo ----- Leaving $(MAKEDIR) $(OUTPUTDIR)\xfldr$(LANGUAGE).res: *.rc *.dlg *.ico ..\..\include\dlgids.h $(RC) -r -x2 $(@B).rc $(OUTPUTDIR)\$(@B).res $(MODULESDIR)\xfldr$(LANGUAGE).dll: $(@B).def xiniterm.obj $(OUTPUTDIR)\$(@B).res ..\..\include\dlgids.h $(LINK_BASE) $(@B).def xiniterm.obj /OUT:$(MODULESDIR)\$(@B).dll $(RC) -x2 $(OUTPUTDIR)\$(@B).res $(MODULESDIR)\$(@B).dll # main target $(XWPRUNNING)\bin\xfldr$(LANGUAGE).dll: $(MODULESDIR)\xfldr$(LANGUAGE).dll !ifdef XWP_UNLOCK_MODULES $(RUN_UNLOCK) $(XWPRUNNING)\bin\$(@B).dll !endif $(COPY) $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\bin