]> git.saurik.com Git - apple/icu.git/blame - icuSources/config/mh-alpha-linux-cc
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / config / mh-alpha-linux-cc
CommitLineData
b75a7d8f
A
1## -*-makefile-*-
2## Alpha-Linux-specific setup
3## Copyright (c) 1999-2000, International Business Machines Corporation and
4## others. All Rights Reserved.
5##
6## $Id: mh-alpha-linux-cc,v 1.1.1.1 2003/02/05 21:31:17 avery Exp $
7
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
11
12## Flags for position independent code
13SHAREDLIBCFLAGS = -fPIC
14SHAREDLIBCXXFLAGS = -fPIC
15SHAREDLIBCPPFLAGS = -DPIC
16
17## Additional flags when building libraries and with threads
18LIBCPPFLAGS = -D_REENTRANT
19THREADSCPPFLAGS = -D_REENTRANT
20
21# Use int for int32_t
22DEFS += -D_LP64
23
24# The tests need complete IEEE floating point support
25CFLAGS += -ieee
26CXXFLAGS += -ieee
27
28## Commands to compile
29COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -signed -accept nogccinline
30COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c -signed -D__USE_STD_IOSTREAM -accept nogcc_inline
31
32
33## Commands to link
34LINK.c= $(CC) -call_shared $(CFLAGS) $(LDFLAGS)
35LINK.cc= $(CXX) -call_shared $(CXXFLAGS) $(LDFLAGS)
36
37## Compiler switch to embed a runtime search path
38LD_RPATH=
39LD_RPATH_PRE= -Wl,-rpath,
40
41## Compiler switch to embed a library name
42LD_SONAME = -Wl,-soname -Wl,$(MIDDLE_SO_TARGET)
43
44## Shared object suffix
45SO = so
46## Non-shared intermediate object suffix
47STATIC_O = ao
48
49## Compilation rules
50%.$(STATIC_O): $(srcdir)/%.c
51 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
52%.o: $(srcdir)/%.c
53 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
54
55%.$(STATIC_O): $(srcdir)/%.cpp
56 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
57%.o: $(srcdir)/%.cpp
58 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
59
60../data/%.o: ../data/%.c
61 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
62
63## Dependency rules
64#%.d: $(srcdir)/%.c
65# @echo "generating dependency information for $<"
66# @$(SHELL) -ec '$(GEN_DEPS.c) $< \
67# | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
68# [ -s $@ ] || rm -f $@'
69
70#%.d: $(srcdir)/%.cpp
71# @echo "generating dependency information for $<"
72# @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
73# | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
74# [ -s $@ ] || rm -f $@'
75#
76## Versioned libraries rules
77
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) $@
82
83## Bind internal references
84
85# LDflags that pkgdata will use
86BIR_LDFLAGS= -Wl,-Bsymbolic
87
88# CPPflags for genccode/gencmn
89BIR_CPPFLAGS= -DU_HAVE_BIND_INTERNAL_REFERENCES
90
91# Dependencies [i.e. map files] for the final library
92BIR_DEPS=
93
94## End Linux-specific setup
95