2 ## Alpha-Linux-specific setup
3 ## Copyright (c) 1999-2000, International Business Machines Corporation and
4 ## others. All Rights Reserved.
6 ## $Id: mh-alpha-linux-cc,v 1.1.1.1 2003/02/05 21:31:17 avery Exp $
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 LIBCPPFLAGS = -D_REENTRANT
19 THREADSCPPFLAGS = -D_REENTRANT
24 # The tests need complete IEEE floating point support
28 ## Commands to compile
29 COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -signed -accept nogccinline
30 COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c -signed -D__USE_STD_IOSTREAM -accept nogcc_inline
34 LINK.c= $(CC) -call_shared $(CFLAGS) $(LDFLAGS)
35 LINK.cc= $(CXX) -call_shared $(CXXFLAGS) $(LDFLAGS)
37 ## Compiler switch to embed a runtime search path
39 LD_RPATH_PRE= -Wl,-rpath,
41 ## Compiler switch to embed a library name
42 LD_SONAME = -Wl,-soname -Wl,$(MIDDLE_SO_TARGET)
44 ## Shared object suffix
46 ## Non-shared intermediate object suffix
50 %.$(STATIC_O): $(srcdir)/%.c
51 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
53 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
55 %.$(STATIC_O): $(srcdir)/%.cpp
56 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
58 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
60 ../data/%.o: ../data/%.c
61 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
65 # @echo "generating dependency information for $<"
66 # @$(SHELL) -ec '$(GEN_DEPS.c) $< \
67 # | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
68 # [ -s $@ ] || rm -f $@'
71 # @echo "generating dependency information for $<"
72 # @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
73 # | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
74 # [ -s $@ ] || rm -f $@'
76 ## Versioned libraries rules
78 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
79 $(RM) $@ && ln -s $< $@
80 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
81 $(RM) $@ && ln -s $*.$(SO).$(SO_TARGET_VERSION) $@
83 ## Bind internal references
85 # LDflags that pkgdata will use
86 BIR_LDFLAGS= -Wl,-Bsymbolic
88 # CPPflags for genccode/gencmn
89 BIR_CPPFLAGS= -DU_HAVE_BIND_INTERNAL_REFERENCES
91 # Dependencies [i.e. map files] for the final library
94 ## End Linux-specific setup