]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/ctestfw/Makefile.in
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / tools / ctestfw / Makefile.in
1 ## Makefile.in for ICU - tools/ctestfw
2 ## Copyright (c) 1999-2004, International Business Machines Corporation and
3 ## others. All Rights Reserved.
4 ## Stephen F. Booth
5
6 ## Source directory information
7 srcdir = @srcdir@
8 top_srcdir = @top_srcdir@
9
10 top_builddir = ../..
11
12 include $(top_builddir)/icudefs.mk
13
14 ## Build directory information
15 subdir = tools/ctestfw
16
17 ## Extra files to remove for 'make clean'
18 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
19
20 ## Target information
21
22 ifneq ($(ENABLE_STATIC),)
23 TARGET = $(LIBSICU)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX).$(A)
24 endif
25
26 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)
27 DEFS += -DT_CTEST_IMPLEMENTATION
28
29
30 ifneq ($(ENABLE_SHARED),)
31 SO_TARGET = $(LIBICU)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX).$(SO)
32 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
33 endif
34
35 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
36
37 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
38 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
39 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
40
41 LDFLAGS += $(LDFLAGSCTESTFW)
42 LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
43
44 OBJECTS = ctest.o tstdtmod.o testdata.o datamap.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
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 #echo This doesn't need to be installed normally
71 # $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
72 #ifneq ($(ENABLE_STATIC),)
73 # $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
74 #endif
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)
80 #endif
81 #endif
82
83 dist-local:
84
85 clean-local:
86 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
87 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
88
89 distclean-local: clean-local
90 $(RMV) Makefile
91
92 check-local: all-local
93
94 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
95 cd $(top_builddir) \
96 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
97
98 ifneq ($(ENABLE_STATIC),)
99 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
100 $(RANLIB) $@
101 endif
102
103 ifneq ($(ENABLE_SHARED),)
104 $(FINAL_SO_TARGET): $(OBJECTS)
105 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
106 endif
107
108 ifeq (,$(MAKECMDGOALS))
109 -include $(DEPS)
110 else
111 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
112 -include $(DEPS)
113 endif
114 endif