]> git.saurik.com Git - apple/icu.git/blob - icuSources/config/mh-alpha-linux-gcc
ICU-62107.0.1.tar.gz
[apple/icu.git] / icuSources / config / mh-alpha-linux-gcc
1 ## -*-makefile-*-
2 ## Copyright (C) 2016 and later: Unicode, Inc. and others.
3 ## License & terms of use: http://www.unicode.org/copyright.html
4 ## Linux-specific setup
5 ## Copyright (c) 1999-2009, International Business Machines Corporation and
6 ## others. All Rights Reserved.
7
8 ## Commands to generate dependency files
9 GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
10 GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
11
12 ## Flags for position independent code
13 SHAREDLIBCFLAGS = -fPIC
14 SHAREDLIBCXXFLAGS = -fPIC
15 SHAREDLIBCPPFLAGS = -DPIC
16
17 ## Additional flags when building libraries and with threads
18 THREADSCPPFLAGS = -D_REENTRANT
19 LIBCPPFLAGS =
20
21 # The tests need complete IEEE floating point support
22 CFLAGS += -mieee
23 CXXFLAGS += -mieee
24
25 ## Compiler switch to embed a runtime search path
26 LD_RPATH=
27 LD_RPATH_PRE= -Wl,-rpath,
28
29 ## Compiler switch to embed a library name
30 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
31
32
33 ## Shared library options
34 LD_SOOPTIONS= -Wl,-Bsymbolic
35
36 ## Shared object suffix
37 SO = so
38 ## Non-shared intermediate object suffix
39 STATIC_O = ao
40
41 ## Compilation rules
42 %.$(STATIC_O): $(srcdir)/%.c
43 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
44 %.o: $(srcdir)/%.c
45 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
46
47 %.$(STATIC_O): $(srcdir)/%.cpp
48 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
49 %.o: $(srcdir)/%.cpp
50 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
51
52
53 ## Dependency rules
54 %.d: $(srcdir)/%.c
55 @echo "generating dependency information for $<"
56 @$(SHELL) -ec '$(GEN_DEPS.c) $< \
57 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
58 [ -s $@ ] || rm -f $@'
59
60 %.d: $(srcdir)/%.cpp
61 @echo "generating dependency information for $<"
62 @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
63 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
64 [ -s $@ ] || rm -f $@'
65
66 ## Versioned libraries rules
67
68 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
69 $(RM) $@ && ln -s ${<F} $@
70 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
71 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
72
73 # The type of assembly to write for generating an object file
74 GENCCODE_ASSEMBLY=-a gcc
75
76 ## Bind internal references
77
78 # LDflags that pkgdata will use
79 BIR_LDFLAGS= -Wl,-Bsymbolic
80
81 # Dependencies [i.e. map files] for the final library
82 BIR_DEPS=
83
84 ## End Linux-specific setup
85