2
## Alpha-Linux-specific setup
3
## Copyright (c) 1999-2000, International Business Machines Corporation and
4
## others. All Rights Reserved.
6
## $Id: mh-alpha-osf,v 1.2 2002/01/04 23:48:42 yves-oss 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
17
## Additional flags when building libraries and with threads
18
LIBCPPFLAGS = -D_REENTRANT
19
THREADSCPPFLAGS = -D_REENTRANT
21
## Commands to compile
22
COMPILE.c= $(CC) -D_LP64 $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -ieee
23
COMPILE.cc= $(CXX) -D_LP64 $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c -D__USE_STD_IOSTREAM -ieee
27
LINK.c= $(CC) -D_LP64 -call_shared $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
28
LINK.cc= $(CXX) -D_LP64 -call_shared $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
30
## Commands to make a shared library
31
SHLIB.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared
32
SHLIB.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -shared
34
## Compiler switch to embed a runtime search path
35
LD_RPATH= $(LD_RPATH)$(LD_RPATH_PRE)path1
36
LD_RPATH_PRE= -Wl,-rpath,
38
## Compiler switch to embed a library name
39
LD_SONAME = -Wl,-soname -Wl,$(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 $@ $<
57
../data/%.o: ../data/%.c
58
$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
62
# @echo "generating dependency information for $<"
63
# @$(SHELL) -ec '$(GEN_DEPS.c) $< \
64
# | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
65
# [ -s $@ ] || rm -f $@'
68
# @echo "generating dependency information for $<"
69
# @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
70
# | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
71
# [ -s $@ ] || rm -f $@'
73
## Versioned libraries rules
75
%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
76
$(RM) $@ && ln -s $< $@
77
%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
78
$(RM) $@ && ln -s $*.$(SO).$(SO_TARGET_VERSION) $@
80
## Bind internal references
82
# LDflags that pkgdata will use
83
BIR_LDFLAGS= -Wl,-Bsymbolic
85
# CPPflags for genccode/gencmn
86
BIR_CPPFLAGS= -DU_HAVE_BIND_INTERNAL_REFERENCES
88
# Dependencies [i.e. map files] for the final library
91
## End Tru64 5.1 specific setup