2 ## Linux-specific setup
3 ## Copyright (c) 1999-2006, International Business Machines Corporation and
4 ## others. All Rights Reserved.
6 ## Commands to generate dependency files
7 GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
8 GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
10 ## Flags for position independent code
11 SHAREDLIBCFLAGS = -fPIC
12 SHAREDLIBCXXFLAGS = -fPIC
13 SHAREDLIBCPPFLAGS = -DPIC
15 ## Additional flags when building libraries and with threads
16 THREADSCPPFLAGS = -D_REENTRANT
19 ## Compiler switch to embed a runtime search path
21 LD_RPATH_PRE = -Wl,-rpath,
23 ## These are the library specific LDFLAGS
24 LDFLAGSICUDT=-nodefaultlibs -nostdlib
26 ## Compiler switch to embed a library name
27 # The initial tab in the next line is to prevent icu-config from reading it.
28 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
29 #SH# # We can't depend on MIDDLE_SO_TARGET being set.
32 ## Shared object suffix
34 ## Non-shared intermediate object suffix
38 %.$(STATIC_O): $(srcdir)/%.c
39 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
41 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
43 %.$(STATIC_O): $(srcdir)/%.cpp
44 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
46 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
51 @echo "generating dependency information for $<"
52 @$(SHELL) -ec '$(GEN_DEPS.c) $< \
53 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
54 [ -s $@ ] || rm -f $@'
57 @echo "generating dependency information for $<"
58 @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
59 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
60 [ -s $@ ] || rm -f $@'
62 ## Versioned libraries rules
64 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
65 $(RM) $@ && ln -s ${<F} $@
66 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
67 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
69 ## Bind internal references
71 # LDflags that pkgdata will use
72 BIR_LDFLAGS= -Wl,-Bsymbolic
74 # Dependencies [i.e. map files] for the final library
77 ## End Linux-specific setup