1 ## Makefile.in for ICU - tools/gencmn
2 ## Copyright (c) 1999-2004, 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 ## Build directory information
19 TARGET_STUB_NAME = gencmn
20 DECMN_STUB_NAME = decmn
24 MANX_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DECMN_STUB_NAME).$(SECTION)
26 ALL_MAN_FILES = $(MANX_FILES)
28 ## Extra files to remove for 'make clean'
29 CLEANFILES = *~ $(DEPS) $(DECMN_DEP) $(ALL_MAN_FILES)
32 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
33 DECMN = $(BINDIR)/$(DECMN_STUB_NAME)$(EXEEXT)
35 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
36 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
41 DEPS = $(OBJECTS:.o=.d)
42 DECMN_DEP = $(DECMN_OBJ:.o=.d)
44 ## List of phony targets
45 .PHONY : all all-local install install-local clean clean-local \
46 distclean distclean-local dist dist-local check \
47 check-local install-man install-manx
52 ## List of standard targets
54 install: install-local
56 distclean : distclean-local
58 check: all check-local
60 all-local: $(TARGET) $(DECMN) $(ALL_MAN_FILES)
62 install-local: all-local install-man
63 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
64 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
65 $(INSTALL) $(DECMN) $(DESTDIR)$(sbindir)
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 $(RMV) $(TARGET) $(OBJECTS) $(DECMN) $(DECMN_OBJ)
73 distclean-local: clean-local
76 check-local: all-local
78 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
80 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82 $(TARGET) : $(OBJECTS)
83 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
85 $(DECMN) : $(DECMN_OBJ)
86 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
89 install-man: install-manx
90 install-manx: $(MANX_FILES)
91 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
92 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
94 # This line is needed to serialize builds when the gmake -j option is used.
95 $(DECMN:$(EXEEXT)=).$(SECTION): $(TARGET:$(EXEEXT)=).$(SECTION)
97 %.$(SECTION): $(srcdir)/%.$(SECTION).in
99 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
101 ifeq (,$(MAKECMDGOALS))
103 -include $(DECMN_DEP)
105 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
107 -include $(DECMN_DEP)