]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/pkgdata/Makefile.in
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / tools / pkgdata / Makefile.in
1 ## Makefile.in for ICU - tools/pkgdata
2 ## Copyright (c) 1999-2004, International Business Machines Corporation and
3 ## others. All Rights Reserved.
4 ## Steven R. Loomis
5
6 ## Source directory information
7 srcdir = @srcdir@
8 top_srcdir = @top_srcdir@
9
10 top_builddir = ../..
11
12 include $(top_builddir)/icudefs.mk
13
14 ## Build directory information
15 subdir = tools/pkgdata
16
17 ##
18
19 TARGET_STUB_NAME = pkgdata
20
21 SECTION = 1
22
23 MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
24
25 ALL_MAN_FILES = $(MANX_FILES)
26
27 ## Extra files to remove for 'make clean'
28 CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES)
29
30 ifneq ($(PKGDATA_DEFS),)
31 DEFS += $(PKGDATA_DEFS)
32 endif
33
34 ## Target information
35 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
36
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)
40
41 OBJECTS = pkgdata.o pkgtypes.o make.o dllmode.o cmnmode.o filemode.o sttcmode.o winmode.o
42
43 DEPS = $(OBJECTS:.o=.d)
44
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
49
50 ## Clear suffix list
51 .SUFFIXES :
52
53 ## List of standard targets
54 all: all-local
55 install: install-local
56 clean: clean-local
57 distclean : distclean-local
58 dist: dist-local
59 check: all check-local
60
61 all-local: $(TARGET) $(ALL_MAN_FILES)
62
63 install-local: all-local install-man
64 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
65 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
66
67 # man page
68 install-man: install-manx
69 install-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
77 dist-local:
78
79 clean-local:
80 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
81 $(RMV) $(TARGET) $(OBJECTS)
82
83 distclean-local: clean-local
84 $(RMV) Makefile
85
86 check-local: all-local
87
88 Makefile: $(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
99 ifeq (,$(MAKECMDGOALS))
100 -include $(DEPS)
101 else
102 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
103 -include $(DEPS)
104 endif
105 endif