1
## Makefile.in for ICU - tools/gencmn
2
## Copyright (c) 1999-2001, International Business Machines Corporation and
3
## others. All Rights Reserved.
6
## Source directory information
8
top_srcdir = @top_srcdir@
12
include $(top_builddir)/icudefs.mk
14
## Platform-specific setup
15
include @platform_make_fragment@
17
## Build directory information
24
MANX_FILES = $(TARGET).$(SECTION) $(DECMN).$(SECTION)
26
ALL_MAN_FILES = $(MANX_FILES)
28
## Extra files to remove for 'make clean'
29
CLEANFILES = *~ mkmap.tmp $(DEPS) $(RES_FILES) $(TEST_FILES) $(DECMN_DEP) $(ALL_MAN_FILES)
35
ENABLE_STATIC = @ENABLE_STATIC@
37
ifneq ($(ENABLE_STATIC),)
44
CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
47
ENABLE_RPATH = @ENABLE_RPATH@
48
ifeq ($(ENABLE_RPATH),YES)
49
RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
51
LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
52
LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) @LIBS@ @LIB_M@
57
DEPS = $(OBJECTS:.o=.d)
58
DECMN_DEP = $(DECMN_OBJ:.o=.d)
60
## List of phony targets
61
.PHONY : all all-local install install-local clean clean-local \
62
distclean distclean-local dist dist-local check \
63
check-local install-man install-manx
68
## List of standard targets
70
install: install-local
72
distclean : distclean-local
74
check: all check-local
76
all-local: $(TARGET) $(RES_FILES) $(TRANSLIT_RES) $(TEST_FILES) $(DECMN) $(ALL_MAN_FILES)
78
install-local: all-local install-man
79
$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
80
$(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
81
$(INSTALL) $(DECMN) $(DESTDIR)$(sbindir)/$(DECMN)
86
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
87
$(RMV) $(TARGET) $(OBJECTS) $(DECMN) $(DECMN_OBJ)
89
distclean-local: clean-local
92
check-local: all-local
94
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
96
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
98
$(TARGET) : $(OBJECTS)
99
$(LINK) -o $@ $^ $(LIBS)
101
$(DECMN) : $(DECMN_OBJ)
102
$(LINK) -o $@ $^ $(LIBS)
105
install-man: install-manx
106
install-manx: $(MANX_FILES)
107
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
108
$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
110
%.$(SECTION): $(srcdir)/%.$(SECTION).in
112
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
114
ifeq (,$(MAKECMDGOALS))
116
-include $(DECMN_DEP)
118
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
120
-include $(DECMN_DEP)