]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/toolutil/Makefile.in
ICU-6.2.10.tar.gz
[apple/icu.git] / icuSources / tools / toolutil / Makefile.in
1 ## Copyright (C) 1999-2004, International Business Machines Corporation
2 ## and others. All Rights Reserved.
3
4 ## Makefile.in for ICU - tools/toolutil
5 ## Steven R. Loomis
6
7 ## Source directory information
8 srcdir = @srcdir@
9 top_srcdir = @top_srcdir@
10
11 top_builddir = ../..
12
13 include $(top_builddir)/icudefs.mk
14
15 ## Build directory information
16 subdir = tools/toolutil
17
18 ## Extra files to remove for 'make clean'
19 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
20
21 ## Target information
22
23 TARGET_STUBNAME=$(TOOLUTIL_STUBNAME)
24
25 ifneq ($(ENABLE_STATIC),)
26 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
27 endif
28
29 ifneq ($(ENABLE_SHARED),)
30 SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
31 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
32 endif
33
34 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
35
36 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
37 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
38 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
39
40 LDFLAGS += $(LDFLAGSICUTOOLUTIL)
41 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS)
42 LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
43
44 OBJECTS = propsvec.o toolutil.o unewdata.o ucm.o ucmstate.o ucmpwrit.o uoptions.o uparse.o ucbuf.o uperf.o
45
46 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
47
48 DEPS = $(OBJECTS:.o=.d)
49
50 ## List of phony targets
51 .PHONY : all all-local install install-local clean clean-local \
52 distclean distclean-local dist dist-local check check-local install-library
53
54 ## Clear suffix list
55 .SUFFIXES :
56
57 ## List of standard targets
58 all: all-local
59 install: install-local
60 clean: clean-local
61 distclean : distclean-local
62 dist: dist-local
63 check: all check-local
64
65 all-local: $(ALL_TARGETS)
66
67 install-local: install-library
68
69 install-library: all-local
70 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
71 ifneq ($(ENABLE_STATIC),)
72 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
73 endif
74 ifneq ($(ENABLE_SHARED),)
75 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
76 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
77 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
78 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
79 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
80 endif
81 endif
82 endif
83
84 dist-local:
85
86 clean-local:
87 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
88 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
89
90 distclean-local: clean-local
91 $(RMV) Makefile
92
93 check-local: all-local
94
95 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
96 cd $(top_builddir) \
97 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
98
99 ifneq ($(ENABLE_STATIC),)
100 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
101 $(RANLIB) $@
102 endif
103
104 ifneq ($(ENABLE_SHARED),)
105 $(FINAL_SO_TARGET): $(OBJECTS)
106 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
107 endif
108
109 ifeq (,$(MAKECMDGOALS))
110 -include $(DEPS)
111 else
112 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
113 -include $(DEPS)
114 endif
115 endif