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