1
## Makefile.in for ICU - tools/genrb
2
## Copyright (c) 1999, 2000, International Business Machines Corporation and
3
## others. All Rights Reserved.
5
## Source directory information
7
top_srcdir = @top_srcdir@
11
include $(top_builddir)/icudefs.mk
13
## Platform-specific setup
15
include @platform_make_fragment@
21
MAN_FILES = $(TARGET).$(SECTION)
23
## Build directory information
26
## Extra files to remove for 'make clean'
27
CLEANFILES = *~ $(MAN_FILES) $(DEPS)
32
ENABLE_STATIC = @ENABLE_STATIC@
34
ifneq ($(ENABLE_STATIC),)
41
CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
44
ENABLE_RPATH = @ENABLE_RPATH@
45
ifeq ($(ENABLE_RPATH),YES)
46
RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
48
LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
49
LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) @LIBS@ @LIB_M@
51
##OBJECTS = error.o genrb.o ustr.o parse.o read.o write.o list.o \
53
OBJECTS = error.o genrb.o parse.o read.o reslist.o ustr.o util.o wrtjava.o rle.o
55
DEPS = $(OBJECTS:.o=.d)
57
## List of phony targets
58
.PHONY : all all-local install install-local clean clean-local \
59
distclean distclean-local dist dist-local check \
60
check-local install-man
65
## List of standard targets
67
install: install-local
69
distclean : distclean-local
71
check: all check-local
73
all-local: $(TARGET) $(MAN_FILES)
75
install-local: all-local install-man
76
$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
77
$(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
82
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
83
$(RMV) $(TARGET) $(OBJECTS)
85
distclean-local: clean-local
88
check-local: all-local
90
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
92
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
94
$(TARGET) : $(OBJECTS)
95
$(LINK) -o $@ $^ $(LIBS)
97
# the 'mv' will always fail if you are building in the source dir
100
install-man: $(MAN_FILES)
101
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
102
$(INSTALL_DATA) $< $(DESTDIR)$(mandir)/man$(SECTION)
104
%.$(SECTION): $(srcdir)/%.$(SECTION).in
106
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
108
# build postscript and pdf formats
109
$(TARGET).ps: $(TARGET).$(SECTION)
112
$(TARGET).pdf: $(TARGET).ps
115
ifeq (,$(MAKECMDGOALS))
118
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)