]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genrb/Makefile.in
ICU-8.11.1.tar.gz
[apple/icu.git] / icuSources / tools / genrb / Makefile.in
CommitLineData
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
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8
9top_builddir = ../..
10
11include $(top_builddir)/icudefs.mk
12
73c04bcf
A
13## Build directory information
14subdir = tools/genrb
b75a7d8f 15
374ca955
A
16TARGET_STUB_NAME = genrb
17DERB_STUB_NAME = derb
18
b75a7d8f
A
19SECTION = 1
20
374ca955 21MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION)
b75a7d8f 22
b75a7d8f
A
23
24## Extra files to remove for 'make clean'
374ca955 25CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
b75a7d8f
A
26
27## Target information
374ca955
A
28TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
29DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
b75a7d8f 30
73c04bcf
A
31ifneq ($(top_builddir),$(top_srcdir))
32CPPFLAGS += -I$(top_builddir)/common
33endif
34CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
b75a7d8f
A
35LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
36
73c04bcf 37OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \
374ca955 38wrtjava.o rle.o wrtxml.o prscmnts.o
b75a7d8f
A
39DERB_OBJ = derb.o
40
41DEPS = $(OBJECTS:.o=.d)
42DERB_DEPS = $(DERB_OBJ:.o=.d)
43
44## List of phony targets
45.PHONY : all all-local install install-local clean clean-local \
73c04bcf 46distclean 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
52all: all-local
53install: install-local
54clean: clean-local
55distclean : distclean-local
56dist: dist-local
57check: all check-local
58
59all-local: $(TARGET) $(DERB) $(MAN_FILES)
60
61install-local: all-local install-man
62 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
63 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
64 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
65
73c04bcf
A
66install-man: $(MAN_FILES)
67 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
68 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
69
374ca955 70dist-local:
b75a7d8f 71
73c04bcf 72clean-local:
b75a7d8f
A
73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
74 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
75
76distclean-local: clean-local
77 $(RMV) Makefile
78
79check-local: all-local
80
81Makefile: $(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
100ifeq (,$(MAKECMDGOALS))
101-include $(DEPS)
102-include $(DERB_DEPS)
103else
104ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
105-include $(DEPS)
106endif
107endif
108