2 ## Alpha-OSF-specific setup
3 ## Copyright (c) 1999-2006, International Business Machines Corporation and
4 ## others. All Rights Reserved.
6 ## Commands to generate dependency files
7 #GEN_DEPS.c= $(CC) $(DEFS) $(CPPFLAGS) -MD -c -msg_quiet
8 #GEN_DEPS.cc= $(CXX) $(DEFS) $(CPPFLAGS) -D__USE_STD_IOSTREAM -c -MD -msg_quiet
10 ## Flags for position independent code
15 ## Additional flags when building libraries and with threads
16 THREADSCPPFLAGS = -D_REENTRANT -pthread
19 # The tests need complete IEEE floating point support
23 ## Commands to compile
24 COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
25 COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c -D__USE_STD_IOSTREAM
29 LINK.c= $(CC) -call_shared $(CFLAGS) $(LDFLAGS)
30 LINK.cc= $(CXX) -call_shared $(CXXFLAGS) $(LDFLAGS)
32 ## Compiler switch to embed a runtime search path
33 LD_RPATH= $(LD_RPATH)$(LD_RPATH_PRE)path1
34 LD_RPATH_PRE= -Wl,-rpath,
36 ## Compiler switch to embed a library name
37 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
39 ## Shared object suffix
41 ## Non-shared intermediate object suffix
45 %.$(STATIC_O): $(srcdir)/%.c
46 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
48 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
50 %.$(STATIC_O): $(srcdir)/%.cpp
51 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
53 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
58 # @echo "generating dependency information for $<"
59 # @$(SHELL) -ec '$(GEN_DEPS.c) $< \
60 # | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
61 # [ -s $@ ] || rm -f $@'
64 # @echo "generating dependency information for $<"
65 # @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
66 # | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
67 # [ -s $@ ] || rm -f $@'
69 ## Versioned libraries rules
71 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
72 $(RM) $@ && ln -s ${<F} $@
73 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
74 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
76 ## Bind internal references
78 # LDflags that pkgdata will use
79 BIR_LDFLAGS= -Wl,-Bsymbolic
81 # Dependencies [i.e. map files] for the final library
84 ## End Tru64 5.1 specific setup