]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/pkgdata/Makefile.in
ICU-6.2.10.tar.gz
[apple/icu.git] / icuSources / tools / pkgdata / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - tools/pkgdata
374ca955 2## Copyright (c) 1999-2004, International Business Machines Corporation and
b75a7d8f
A
3## others. All Rights Reserved.
4## Steven R. Loomis
5
6## Source directory information
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14## Build directory information
15subdir = tools/pkgdata
16
17##
18
374ca955
A
19TARGET_STUB_NAME = pkgdata
20
b75a7d8f
A
21SECTION = 1
22
374ca955 23MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
b75a7d8f
A
24
25ALL_MAN_FILES = $(MANX_FILES)
26
27## Extra files to remove for 'make clean'
374ca955
A
28CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES)
29
30ifneq ($(PKGDATA_DEFS),)
31DEFS += $(PKGDATA_DEFS)
32endif
b75a7d8f
A
33
34## Target information
374ca955 35TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
b75a7d8f
A
36
37CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
38DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\"
39LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
40
374ca955 41OBJECTS = pkgdata.o pkgtypes.o make.o dllmode.o cmnmode.o filemode.o sttcmode.o winmode.o
b75a7d8f
A
42
43DEPS = $(OBJECTS:.o=.d)
44
45## List of phony targets
374ca955 46.PHONY : all all-local install install-local clean clean-local \
b75a7d8f
A
47distclean distclean-local dist dist-local check \
48check-local install-man install-manx
49
50## Clear suffix list
51.SUFFIXES :
52
53## List of standard targets
54all: all-local
55install: install-local
56clean: clean-local
57distclean : distclean-local
58dist: dist-local
59check: all check-local
60
374ca955 61all-local: $(TARGET) $(ALL_MAN_FILES)
b75a7d8f
A
62
63install-local: all-local install-man
64 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
374ca955 65 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
b75a7d8f
A
66
67# man page
68install-man: install-manx
69install-manx: $(MANX_FILES)
70 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
71 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
72
73%.$(SECTION): $(srcdir)/%.$(SECTION).in
74 cd $(top_builddir) \
75 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
76
77dist-local:
78
79clean-local:
80 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
81 $(RMV) $(TARGET) $(OBJECTS)
82
83distclean-local: clean-local
84 $(RMV) Makefile
85
86check-local: all-local
87
88Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
89 cd $(top_builddir) \
90 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
91
92
93 cd $(top_builddir) \
94 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
95
96$(TARGET) : $(OBJECTS)
97 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
98
99ifeq (,$(MAKECMDGOALS))
100-include $(DEPS)
101else
102ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
103-include $(DEPS)
104endif
105endif