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