home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / xf083czs.zip / xfldr421.mak < prev    next >
Makefile  |  1998-11-29  |  3KB  |  93 lines

  1. #
  2. # Makefile for XFolder National Language Support.
  3. #
  4. # For use with IBM NMAKE, which is part of IBM C-Set/2 and VisualAge C++.
  5. # This file will probably not work with other MAKE utilities, such as
  6. # GNU make or DMAKE.
  7. #
  8. # This makefile assumes that certain toolkit tools are on the PATH.
  9. # In addition, you must put the "unlock" utility from the "tools"
  10. # directory on your PATH, or this will fail.
  11. #
  12. # Copyright (C) 1997-98 Ulrich Möller.
  13. # This program is free software; you can redistribute it and/or modify
  14. # it under the terms of the GNU General Public License as published by
  15. # the Free Software Foundation, in version 2 as it comes in the COPYING
  16. # file of the XFolder main distribution.
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. # Required changes for translating the NLS DLL: three lines below.
  22. #
  23.  
  24. # This is the language code for the language that the NLS DLL
  25. # will support. Change this to a different language code, and
  26. # the makefile will support your langauge.
  27. LANGUAGE = 421
  28. # Change this to the directory where you installed XFolder.
  29. # The output files will automatically be copied there to.
  30. !ifndef XFOLDERPATH
  31. !error The environment variable XFOLDERPATH is not defined. Terminating.
  32. !endif
  33. XFRUNNING = $(XFOLDERPATH)
  34.  
  35. #
  36. # DO NOT CHANGE THE FOLLOWING
  37. #
  38.  
  39. #
  40. # Set up a few environment variables.
  41. #
  42.  
  43. CC      = icc /Ge- /Se
  44. LINK    = ilink
  45. RC      = rc -i ..
  46. OBJS = xfldr$(LANGUAGE).obj
  47. XFLDHELP = $(XFRUNNING)\help
  48.  
  49. #
  50. # Define the suffixes for files which NMAKE will work on.
  51. # .SUFFIXES is a reserved NMAKE keyword ("pseudotarget") for
  52. # defining file extensions that NMAKE will recognize.
  53. #
  54.  
  55. .SUFFIXES: .msg .txt .c .obj .dll .rc .res .html .ipf .hlp .inf
  56.  
  57. #
  58. # Now define inference rules for what to do with certain file
  59. # types, based on their file extension.
  60. # The syntax we need here is ".fromext.toext".
  61. # So whenever NMAKE encounters a .toext file, it
  62. # executes what we specify here.
  63. #
  64.  
  65. .c.obj:
  66.         $(CC) -I$(INCLUDE) -c $<
  67.  
  68. #
  69. # Now define inference rules for the different file types.
  70. #
  71.  
  72. all: xfldr$(LANGUAGE).dll $(XFLDHELP)\xfldr$(LANGUAGE).msg
  73.  
  74. $(XFLDHELP)\xfldr$(LANGUAGE).msg: xfldr$(LANGUAGE).msg
  75.         cmd.exe /c copy $(@B).msg $(XFLDHELP)
  76.  
  77. xfldr$(LANGUAGE).msg: $$(@B).txt
  78.          mkmsgf $*.txt $*.msg
  79.  
  80. xfldr$(LANGUAGE).obj: $$(@B).c
  81.  
  82. xfldr$(LANGUAGE).dll: $$(@B).def $(OBJS) $$(@B).res ..\main\dlgids.h
  83.          $(LINK) $*.def $(OBJS) /OUT:$*.dll
  84.          $(RC) -p -x2 $*.res $*.dll
  85.          unlock $(XFRUNNING)\bin\$*.dll
  86.          cmd.exe /c del $(XFRUNNING)\bin\$*.dll
  87.          cmd.exe /c copy $*.dll $(XFRUNNING)\bin
  88.  
  89. xfldr$(LANGUAGE).res: $$(@B).rc $$(@B).dlg *.bmp *.ico ..\main\dlgids.h
  90.          $(RC) -r -x2 $*.rc $*.res
  91.  
  92.  
  93.