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