]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genrb/Makefile.in
ICU-8.11.1.tar.gz
[apple/icu.git] / icuSources / tools / genrb / Makefile.in
1 ## Makefile.in for ICU - tools/genrb
2 ## Copyright (c) 1999-2005, International Business Machines Corporation and
3 ## others. All Rights Reserved.
4
5 ## Source directory information
6 srcdir = @srcdir@
7 top_srcdir = @top_srcdir@
8
9 top_builddir = ../..
10
11 include $(top_builddir)/icudefs.mk
12
13 ## Build directory information
14 subdir = tools/genrb
15
16 TARGET_STUB_NAME = genrb
17 DERB_STUB_NAME = derb
18
19 SECTION = 1
20
21 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION)
22
23
24 ## Extra files to remove for 'make clean'
25 CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
26
27 ## Target information
28 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
29 DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
30
31 ifneq ($(top_builddir),$(top_srcdir))
32 CPPFLAGS += -I$(top_builddir)/common
33 endif
34 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
35 LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
36
37 OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \
38 wrtjava.o rle.o wrtxml.o prscmnts.o
39 DERB_OBJ = derb.o
40
41 DEPS = $(OBJECTS:.o=.d)
42 DERB_DEPS = $(DERB_OBJ:.o=.d)
43
44 ## List of phony targets
45 .PHONY : all all-local install install-local clean clean-local \
46 distclean distclean-local dist dist-local check check-local install-man
47
48 ## Clear suffix list
49 .SUFFIXES :
50
51 ## List of standard targets
52 all: all-local
53 install: install-local
54 clean: clean-local
55 distclean : distclean-local
56 dist: dist-local
57 check: all check-local
58
59 all-local: $(TARGET) $(DERB) $(MAN_FILES)
60
61 install-local: all-local install-man
62 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
63 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
64 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
65
66 install-man: $(MAN_FILES)
67 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
68 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
69
70 dist-local:
71
72 clean-local:
73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
74 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
75
76 distclean-local: clean-local
77 $(RMV) Makefile
78
79 check-local: all-local
80
81 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
82 cd $(top_builddir) \
83 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
84
85 $(TARGET) : $(OBJECTS)
86 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
87
88 $(DERB) : $(DERB_OBJ)
89 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
90
91
92 # This line is needed to serialize builds when the gmake -j option is used.
93 $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
94
95 %.$(SECTION): $(srcdir)/%.$(SECTION).in
96 cd $(top_builddir) \
97 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
98
99
100 ifeq (,$(MAKECMDGOALS))
101 -include $(DEPS)
102 -include $(DERB_DEPS)
103 else
104 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
105 -include $(DEPS)
106 endif
107 endif
108