Home | History | Annotate | Download | only in resources
      1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
      2 # License & terms of use: http://www.unicode.org/copyright.html#License
      3 #
      4 # Copyright (c) 2001-2009 IBM, Inc. and others
      5 #
      6 #  fortune_resources.mak
      7 #
      8 #      Windows nmake makefile for compiling and packaging the resources
      9 #      for for the ICU sample program "ufortune".
     10 #
     11 #      This makefile is normally invoked by the pre-link step in the
     12 #      MSVC project file for ufortune
     13 
     14 #
     15 #  List of resource files to be built.
     16 #    When adding a resource source (.txt) file for a new locale, the corresponding
     17 #    .res file must be added to this list, AND to the file res-file-list.txt
     18 #
     19 RESFILES= root.res es.res 
     20 
     21 #
     22 #  ICUDIR   the location of ICU, used to locate the tools for
     23 #           compiling and packaging resources.
     24 #
     25 ICUDIR=..\..\..\..
     26 
     27 #
     28 #  The directory that contains the tools.
     29 #
     30 !IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug"
     31 BIN=bin64
     32 !ELSE
     33 BIN=bin
     34 !ENDIF
     35 
     36 #
     37 #  File name extensions for inference rule matching.
     38 #    clear out the built-in ones (for .c and the like), and add
     39 #    the definition for .txt to .res.
     40 #
     41 .SUFFIXES : .txt
     42 
     43 #
     44 #  Inference rule, for compiling a .txt file into a .res file.
     45 #  -t fools make into thinking there are files such as es.res, etc
     46 #
     47 .txt.res:
     48 	$(ICUDIR)\$(BIN)\genrb -d . $*.txt
     49 
     50 #
     51 #  all - nmake starts here by default
     52 #
     53 all: fortune_resources.dll
     54 
     55 fortune_resources.dll: $(RESFILES)
     56 	$(ICUDIR)\$(BIN)\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt
     57 
     58