]> git.saurik.com Git - apple/icu.git/blame - icuSources/config/mh-alpha-linux-gcc
ICU-64232.0.1.tar.gz
[apple/icu.git] / icuSources / config / mh-alpha-linux-gcc
CommitLineData
b75a7d8f 1## -*-makefile-*-
f3c0d7a5
A
2## Copyright (C) 2016 and later: Unicode, Inc. and others.
3## License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f 4## Linux-specific setup
729e4ab9 5## Copyright (c) 1999-2009, International Business Machines Corporation and
b75a7d8f 6## others. All Rights Reserved.
b75a7d8f
A
7
8## Commands to generate dependency files
9GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
10GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
11
12## Flags for position independent code
13SHAREDLIBCFLAGS = -fPIC
14SHAREDLIBCXXFLAGS = -fPIC
15SHAREDLIBCPPFLAGS = -DPIC
16
17## Additional flags when building libraries and with threads
b75a7d8f 18THREADSCPPFLAGS = -D_REENTRANT
73c04bcf 19LIBCPPFLAGS =
b75a7d8f
A
20
21# The tests need complete IEEE floating point support
22CFLAGS += -mieee
23CXXFLAGS += -mieee
24
25## Compiler switch to embed a runtime search path
26LD_RPATH=
27LD_RPATH_PRE= -Wl,-rpath,
28
29## Compiler switch to embed a library name
374ca955 30LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
b75a7d8f 31
729e4ab9
A
32
33## Shared library options
34LD_SOOPTIONS= -Wl,-Bsymbolic
35
b75a7d8f
A
36## Shared object suffix
37SO = so
38## Non-shared intermediate object suffix
39STATIC_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
b75a7d8f
A
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)
374ca955 69 $(RM) $@ && ln -s ${<F} $@
b75a7d8f 70%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
374ca955
A
71 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
72
73# The type of assembly to write for generating an object file
74GENCCODE_ASSEMBLY=-a gcc
b75a7d8f
A
75
76## Bind internal references
77
78# LDflags that pkgdata will use
79BIR_LDFLAGS= -Wl,-Bsymbolic
80
b75a7d8f
A
81# Dependencies [i.e. map files] for the final library
82BIR_DEPS=
83
84## End Linux-specific setup
85