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