]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/config/mh-linux
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / config / mh-linux
... / ...
CommitLineData
1## -*-makefile-*-
2## Linux-specific setup
3## Copyright (c) 1999-2004, International Business Machines Corporation and
4## others. All Rights Reserved.
5
6## Commands to generate dependency files
7GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
8GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
9
10## Flags for position independent code
11SHAREDLIBCFLAGS = -fPIC
12SHAREDLIBCXXFLAGS = -fPIC
13SHAREDLIBCPPFLAGS = -DPIC
14
15## Additional flags when building libraries and with threads
16LIBCPPFLAGS = -D_REENTRANT
17THREADSCPPFLAGS = -D_REENTRANT
18
19## Compiler switch to embed a runtime search path
20LD_RPATH=
21LD_RPATH_PRE = -Wl,-rpath,
22
23## Compiler switch to embed a library name
24# The initial tab in the next line is to prevent icu-config from reading it.
25 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
26#SH# # We can't depend on MIDDLE_SO_TARGET being set.
27#SH# LD_SONAME=
28
29## Shared object suffix
30SO = so
31## Non-shared intermediate object suffix
32STATIC_O = ao
33
34## Compilation rules
35%.$(STATIC_O): $(srcdir)/%.c
36 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
37%.o: $(srcdir)/%.c
38 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
39
40%.$(STATIC_O): $(srcdir)/%.cpp
41 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
42%.o: $(srcdir)/%.cpp
43 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
44
45
46## Dependency rules
47%.d: $(srcdir)/%.c
48 @echo "generating dependency information for $<"
49 @$(SHELL) -ec '$(GEN_DEPS.c) $< \
50 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
51 [ -s $@ ] || rm -f $@'
52
53%.d: $(srcdir)/%.cpp
54 @echo "generating dependency information for $<"
55 @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
56 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
57 [ -s $@ ] || rm -f $@'
58
59## Versioned libraries rules
60
61%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
62 $(RM) $@ && ln -s ${<F} $@
63%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
64 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
65
66## Bind internal references
67
68# LDflags that pkgdata will use
69BIR_LDFLAGS= -Wl,-Bsymbolic
70
71# CPPflags for genccode/gencmn
72BIR_CPPFLAGS= -DU_HAVE_BIND_INTERNAL_REFERENCES
73
74# Dependencies [i.e. map files] for the final library
75BIR_DEPS=
76
77## End Linux-specific setup
78