1 ## Copyright (C) 1999-2004, International Business Machines Corporation
2 ## and others. All Rights Reserved.
4 ## Makefile.in for ICU - tools/toolutil
7 ## Source directory information
9 top_srcdir = @top_srcdir@
13 include $(top_builddir)/icudefs.mk
15 ## Build directory information
16 subdir = tools/toolutil
18 ## Extra files to remove for 'make clean'
19 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
23 TARGET_STUBNAME=$(TOOLUTIL_STUBNAME)
25 ifneq ($(ENABLE_STATIC),)
26 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
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)
34 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
36 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
37 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
38 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
40 LDFLAGS += $(LDFLAGSICUTOOLUTIL)
41 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS)
42 LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
44 OBJECTS = propsvec.o toolutil.o unewdata.o ucm.o ucmstate.o ucmpwrit.o uoptions.o uparse.o ucbuf.o uperf.o
46 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
48 DEPS = $(OBJECTS:.o=.d)
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
57 ## List of standard targets
59 install: install-local
61 distclean : distclean-local
63 check: all check-local
65 all-local: $(ALL_TARGETS)
67 install-local: install-library
69 install-library: all-local
70 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
71 ifneq ($(ENABLE_STATIC),)
72 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
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))
87 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
88 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
90 distclean-local: clean-local
93 check-local: all-local
95 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
97 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
99 ifneq ($(ENABLE_STATIC),)
100 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
104 ifneq ($(ENABLE_SHARED),)
105 $(FINAL_SO_TARGET): $(OBJECTS)
106 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
109 ifeq (,$(MAKECMDGOALS))
112 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)