2 ## Copyright (C) 2016 and later: Unicode, Inc. and others.
3 ## License & terms of use: http://www.unicode.org/copyright.html
4 ## Alpha-Linux-specific setup
5 ## Copyright (c) 1999-2006, International Business Machines Corporation and
6 ## others. All Rights Reserved.
8 ## Commands to generate dependency files
9 #GEN_DEPS.c= $(CC) $(DEFS) $(CPPFLAGS) -MD -c -msg_quiet
10 #GEN_DEPS.cc= $(CXX) $(DEFS) $(CPPFLAGS) -D__USE_STD_IOSTREAM -c -MD -msg_quiet
12 ## Flags for position independent code
13 SHAREDLIBCFLAGS = -fPIC
14 SHAREDLIBCXXFLAGS = -fPIC
15 SHAREDLIBCPPFLAGS = -DPIC
17 ## Additional flags when building libraries and with threads
18 THREADSCPPFLAGS = -D_REENTRANT
21 # The tests need complete IEEE floating point support
25 ## Commands to compile
26 COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -signed -accept nogccinline
27 COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c -signed -D__USE_STD_IOSTREAM -accept nogcc_inline
31 LINK.c= $(CC) -call_shared $(CFLAGS) $(LDFLAGS)
32 LINK.cc= $(CXX) -call_shared $(CXXFLAGS) $(LDFLAGS)
34 ## Compiler switch to embed a runtime search path
36 LD_RPATH_PRE= -Wl,-rpath,
38 ## Compiler switch to embed a library name
39 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
41 ## Shared object suffix
43 ## Non-shared intermediate object suffix
47 %.$(STATIC_O): $(srcdir)/%.c
48 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
50 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
52 %.$(STATIC_O): $(srcdir)/%.cpp
53 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
55 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
60 # @echo "generating dependency information for $<"
61 # @$(SHELL) -ec '$(GEN_DEPS.c) $< \
62 # | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
63 # [ -s $@ ] || rm -f $@'
66 # @echo "generating dependency information for $<"
67 # @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
68 # | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
69 # [ -s $@ ] || rm -f $@'
71 ## Versioned libraries rules
73 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
74 $(RM) $@ && ln -s ${<F} $@
75 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
76 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
78 ## Bind internal references
80 # LDflags that pkgdata will use
81 BIR_LDFLAGS= -Wl,-Bsymbolic
83 # Dependencies [i.e. map files] for the final library
86 ## End Linux-specific setup