]> git.saurik.com Git - apple/icu.git/blame - icuSources/config/mh-alpha-linux-gcc
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / config / mh-alpha-linux-gcc
CommitLineData
b75a7d8f
A
1## -*-makefile-*-
2## Linux-specific setup
374ca955 3## Copyright (c) 1999-2004, International Business Machines Corporation and
b75a7d8f 4## others. All Rights Reserved.
b75a7d8f
A
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# The tests need complete IEEE floating point support
20CFLAGS += -mieee
21CXXFLAGS += -mieee
22
23## Compiler switch to embed a runtime search path
24LD_RPATH=
25LD_RPATH_PRE= -Wl,-rpath,
26
27## Compiler switch to embed a library name
374ca955 28LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
b75a7d8f
A
29
30## Shared object suffix
31SO = so
32## Non-shared intermediate object suffix
33STATIC_O = ao
34
35## Compilation rules
36%.$(STATIC_O): $(srcdir)/%.c
37 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
38%.o: $(srcdir)/%.c
39 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
40
41%.$(STATIC_O): $(srcdir)/%.cpp
42 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
43%.o: $(srcdir)/%.cpp
44 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
45
b75a7d8f
A
46
47## Dependency rules
48%.d: $(srcdir)/%.c
49 @echo "generating dependency information for $<"
50 @$(SHELL) -ec '$(GEN_DEPS.c) $< \
51 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
52 [ -s $@ ] || rm -f $@'
53
54%.d: $(srcdir)/%.cpp
55 @echo "generating dependency information for $<"
56 @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
57 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
58 [ -s $@ ] || rm -f $@'
59
60## Versioned libraries rules
61
62%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
374ca955 63 $(RM) $@ && ln -s ${<F} $@
b75a7d8f 64%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
374ca955
A
65 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
66
67# The type of assembly to write for generating an object file
68GENCCODE_ASSEMBLY=-a gcc
b75a7d8f
A
69
70## Bind internal references
71
72# LDflags that pkgdata will use
73BIR_LDFLAGS= -Wl,-Bsymbolic
74
75# CPPflags for genccode/gencmn
76BIR_CPPFLAGS= -DU_HAVE_BIND_INTERNAL_REFERENCES
77
78# Dependencies [i.e. map files] for the final library
79BIR_DEPS=
80
81## End Linux-specific setup
82