Home | History | Annotate | Download | only in ufortune
      1 # Copyright (c) 2001-2003 IBM, Inc. and others
      2 
      3 #
      4 # File
      5 #    icu/source/samples/ufortune/Makefile
      6 #
      7 # Usage:
      8 #  - configure and build ICU [see the docs] .. use "--prefix=" something
      9 # 
     10 #  - do 'make install' of icu 
     11 #
     12 #  - make sure the script 'icu-config' is executable in your PATH
     13 #  
     14 #  - do 'gmake' in this directory
     15 #  - do 'gmake check' to run the sample.
     16 
     17 
     18 # Load ICU information
     19 include ../defs.mk
     20 
     21 include fortunedefs.mk
     22 
     23 # Name of your target
     24 TARGET=ufortune
     25 
     26 # All object files (C or C++)
     27 OBJECTS=ufortune.o
     28 
     29 # dir containing resources
     30 RESDIR=resources
     31 
     32 # hook variables to tell rules.mk we want subdirectory processing
     33 ALL_SUBDIR=   all-$(RESDIR)
     34 CLEAN_SUBDIR= clean-$(RESDIR)
     35 
     36 # Need: ustdio, and to link with ufortune
     37 XTRALIBS=$(RESLDFLAGS)
     38 LDFLAGS += $(LDFLAGS_USTDIO)
     39 CPPFLAGS += $(RESCPPFLAGS)
     40 
     41 ### Include standard rules
     42 include ../rules.mk
     43 
     44 # subdirectory processing
     45 all-$(RESDIR):
     46 	$(MAKE) -C $(RESDIR)
     47 
     48 clean-$(RESDIR):
     49 	-$(MAKE) -C $(RESDIR) clean
     50 
     51 
     52 install-$(RESDIR):
     53 	$(MAKE) -C $(RESDIR) install
     54 
     55 install: install-$(RESDIR)