]>
Commit | Line | Data |
---|---|---|
729e4ab9 A |
1 | ################################################################################# |
2 | ## Makefile.in for ICU - tools/genrb # | |
4388f060 | 3 | ## Copyright (c) 1999-2011, International Business Machines Corporation and # |
729e4ab9 A |
4 | ## others. All Rights Reserved. # |
5 | ################################################################################# | |
46f4442e | 6 | |
b75a7d8f A |
7 | ## Source directory information |
8 | srcdir = @srcdir@ | |
9 | top_srcdir = @top_srcdir@ | |
10 | ||
11 | top_builddir = ../.. | |
12 | ||
13 | include $(top_builddir)/icudefs.mk | |
14 | ||
73c04bcf A |
15 | ## Build directory information |
16 | subdir = tools/genrb | |
b75a7d8f | 17 | |
374ca955 A |
18 | TARGET_STUB_NAME = genrb |
19 | DERB_STUB_NAME = derb | |
20 | ||
b75a7d8f A |
21 | SECTION = 1 |
22 | ||
374ca955 | 23 | MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION) |
b75a7d8f | 24 | |
b75a7d8f A |
25 | |
26 | ## Extra files to remove for 'make clean' | |
374ca955 | 27 | CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS) |
b75a7d8f A |
28 | |
29 | ## Target information | |
374ca955 A |
30 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
31 | DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT) | |
b75a7d8f | 32 | |
73c04bcf | 33 | CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil |
729e4ab9 | 34 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
b75a7d8f | 35 | |
73c04bcf | 36 | OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \ |
374ca955 | 37 | wrtjava.o rle.o wrtxml.o prscmnts.o |
b75a7d8f A |
38 | DERB_OBJ = derb.o |
39 | ||
40 | DEPS = $(OBJECTS:.o=.d) | |
41 | DERB_DEPS = $(DERB_OBJ:.o=.d) | |
42 | ||
46f4442e A |
43 | -include Makefile.local |
44 | ||
b75a7d8f A |
45 | ## List of phony targets |
46 | .PHONY : all all-local install install-local clean clean-local \ | |
729e4ab9 | 47 | distclean distclean-local dist dist-local check check-local install-man |
b75a7d8f A |
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 | ||
73c04bcf A |
67 | install-man: $(MAN_FILES) |
68 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
69 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
70 | ||
374ca955 | 71 | dist-local: |
b75a7d8f | 72 | |
73c04bcf | 73 | clean-local: |
b75a7d8f | 74 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) |
729e4ab9 | 75 | $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ) |
b75a7d8f A |
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) | |
374ca955 | 87 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
46f4442e | 88 | $(POST_BUILD_STEP) |
b75a7d8f A |
89 | |
90 | $(DERB) : $(DERB_OBJ) | |
46f4442e A |
91 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
92 | $(POST_BUILD_STEP) | |
93 | ||
374ca955 A |
94 | # This line is needed to serialize builds when the gmake -j option is used. |
95 | $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION) | |
b75a7d8f A |
96 | |
97 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
98 | cd $(top_builddir) \ | |
99 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
100 | ||
b75a7d8f A |
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 |