1 ## Makefile.in for ICU - tools/pkgdata
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
15 subdir = tools/pkgdata
19 TARGET_STUB_NAME = pkgdata
23 MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
25 ALL_MAN_FILES = $(MANX_FILES)
27 ## Extra files to remove for 'make clean'
28 CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES)
30 ifneq ($(PKGDATA_DEFS),)
31 DEFS += $(PKGDATA_DEFS)
35 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
37 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
38 DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\"
39 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
41 OBJECTS = pkgdata.o pkgtypes.o make.o dllmode.o cmnmode.o filemode.o sttcmode.o winmode.o
43 DEPS = $(OBJECTS:.o=.d)
45 ## List of phony targets
46 .PHONY : all all-local install install-local clean clean-local \
47 distclean distclean-local dist dist-local check \
48 check-local install-man install-manx
53 ## List of standard targets
55 install: install-local
57 distclean : distclean-local
59 check: all check-local
61 all-local: $(TARGET) $(ALL_MAN_FILES)
63 install-local: all-local install-man
64 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
65 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
68 install-man: install-manx
69 install-manx: $(MANX_FILES)
70 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
71 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
73 %.$(SECTION): $(srcdir)/%.$(SECTION).in
75 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
80 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
81 $(RMV) $(TARGET) $(OBJECTS)
83 distclean-local: clean-local
86 check-local: all-local
88 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
90 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
94 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
96 $(TARGET) : $(OBJECTS)
97 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
99 ifeq (,$(MAKECMDGOALS))
102 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)