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