]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU - tools/genrb |
73c04bcf | 2 | ## Copyright (c) 1999-2005, International Business Machines Corporation and |
b75a7d8f A |
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 | ||
73c04bcf A |
13 | ## Build directory information |
14 | subdir = tools/genrb | |
b75a7d8f | 15 | |
374ca955 A |
16 | TARGET_STUB_NAME = genrb |
17 | DERB_STUB_NAME = derb | |
18 | ||
b75a7d8f A |
19 | SECTION = 1 |
20 | ||
374ca955 | 21 | MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION) |
b75a7d8f | 22 | |
b75a7d8f A |
23 | |
24 | ## Extra files to remove for 'make clean' | |
374ca955 | 25 | CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS) |
b75a7d8f A |
26 | |
27 | ## Target information | |
374ca955 A |
28 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
29 | DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT) | |
b75a7d8f | 30 | |
73c04bcf A |
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 | |
b75a7d8f A |
35 | LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
36 | ||
73c04bcf | 37 | OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \ |
374ca955 | 38 | wrtjava.o rle.o wrtxml.o prscmnts.o |
b75a7d8f A |
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 \ | |
73c04bcf | 46 | distclean distclean-local dist dist-local check check-local install-man |
b75a7d8f A |
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 | ||
73c04bcf A |
66 | install-man: $(MAN_FILES) |
67 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
68 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
69 | ||
374ca955 | 70 | dist-local: |
b75a7d8f | 71 | |
73c04bcf | 72 | clean-local: |
b75a7d8f A |
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) | |
374ca955 | 86 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
b75a7d8f A |
87 | |
88 | $(DERB) : $(DERB_OBJ) | |
89 | $(LINK.c) $(OUTOPT)$@ $^ $(LIBS) | |
90 | ||
91 | ||
374ca955 A |
92 | # This line is needed to serialize builds when the gmake -j option is used. |
93 | $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION) | |
b75a7d8f A |
94 | |
95 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
96 | cd $(top_builddir) \ | |
97 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
98 | ||
b75a7d8f A |
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 |