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