1 ## Makefile.in for ICU - tools/pkgdata
2 ## Copyright (c) 1999-2005, 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
17 TARGET_STUB_NAME = pkgdata
21 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
23 ## Extra files to remove for 'make clean'
24 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
26 ifneq ($(PKGDATA_DEFS),)
27 DEFS += $(PKGDATA_DEFS)
31 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
33 ifneq ($(top_builddir),$(top_srcdir))
34 CPPFLAGS += -I$(top_builddir)/common
36 CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil
37 DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\"
38 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
40 OBJECTS = pkgdata.o pkgtypes.o make.o dllmode.o cmnmode.o filemode.o sttcmode.o winmode.o
42 DEPS = $(OBJECTS:.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 check-local install-man
51 ## List of standard targets
53 install: install-local
55 distclean : distclean-local
57 check: all check-local
59 all-local: $(TARGET) $(MAN_FILES)
61 install-local: all-local install-man
62 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
63 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
65 install-man: $(MAN_FILES)
66 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
67 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
74 $(RMV) $(TARGET) $(OBJECTS)
76 distclean-local: clean-local
79 check-local: all-local
81 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
83 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
85 $(TARGET) : $(OBJECTS)
86 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
89 %.$(SECTION): $(srcdir)/%.$(SECTION).in
91 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
94 ifeq (,$(MAKECMDGOALS))
97 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)