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