1 ## Makefile.in for ICU - tools/ctestfw
2 ## Copyright (c) 1999-2004, International Business Machines Corporation and
3 ## others. All Rights Reserved.
6 ## Source directory information
8 top_srcdir = @top_srcdir@
12 include $(top_builddir)/icudefs.mk
14 ## Build directory information
15 subdir = tools/ctestfw
17 ## Extra files to remove for 'make clean'
18 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
22 ifneq ($(ENABLE_STATIC),)
23 TARGET = $(LIBSICU)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX).$(A)
26 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)
27 DEFS += -DT_CTEST_IMPLEMENTATION
30 ifneq ($(ENABLE_SHARED),)
31 SO_TARGET = $(LIBICU)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX).$(SO)
32 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
35 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
37 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
38 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
39 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
41 LDFLAGS += $(LDFLAGSCTESTFW)
42 LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
44 OBJECTS = ctest.o tstdtmod.o testdata.o datamap.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
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 #echo This doesn't need to be installed normally
71 # $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
72 #ifneq ($(ENABLE_STATIC),)
73 # $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
75 #ifneq ($(ENABLE_SHARED),)
76 # $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)/$(FINAL_SO_TARGET)
77 #ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
78 # cd $(DESTDIR)$(libdir) && $(RM) $(MIDDLE_SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET)
79 # cd $(DESTDIR)$(libdir) && $(RM) $(SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(SO_TARGET)
86 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
87 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
89 distclean-local: clean-local
92 check-local: all-local
94 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
96 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
98 ifneq ($(ENABLE_STATIC),)
99 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
103 ifneq ($(ENABLE_SHARED),)
104 $(FINAL_SO_TARGET): $(OBJECTS)
105 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
108 ifeq (,$(MAKECMDGOALS))
111 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)