]> git.saurik.com Git - apple/icu.git/blame - icuSources/config/mh-linux-va
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / config / mh-linux-va
CommitLineData
374ca955
A
1## -*-makefile-*-
2## Linux-specific setup for Visual Age
3## Copyright (c) 2003-2004, International Business Machines Corporation and
4## others. All Rights Reserved.
5
6## Commands to generate dependency files
7GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
8GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
9
10# -qroconst make the strings readonly, which is usually the default.
11# This helps in the data library,
12# -qproto assumes all functions are prototyped (for optimization)
13CFLAGS += -qproto -qroconst
14CXXFLAGS += -qproto -qroconst
15
16GENCCODE_ASSEMBLY=-a gcc
17## Flags for position independent code
18SHAREDLIBCFLAGS = -qpic=large
19SHAREDLIBCXXFLAGS = -qpic=large
20SHAREDLIBCPPFLAGS = -DPIC
21
22## Additional flags when building libraries and with threads
23LIBCPPFLAGS = -D_REENTRANT
24THREADSCPPFLAGS = -D_REENTRANT
25
26## Compiler switch to embed a runtime search path
27LD_RPATH= -I
28#LD_RPATH_PRE = -Wl,-rpath,
29
30#LD_SONAME =
31
32## The type of assembly needed when pkgdata is used for generating shared libraries.
33GENCCODE_ASSEMBLY=-a gcc
34
35## Shared object suffix
36SO = so
37## Non-shared intermediate object suffix
38STATIC_O = ao
39
40## Override the default mechanism for building shared objects
41SHLIB.c= $(CC) $(CFLAGS) -qmkshrobj -qpic=large -G $(LDFLAGS)
42SHLIB.cc= $(CXX) $(CXXFLAGS) -qmkshrobj -qpic=large -G $(LDFLAGS)
43
44## Compilation rules
45%.$(STATIC_O): $(srcdir)/%.c
46 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
47%.o: $(srcdir)/%.c
48 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
49
50%.$(STATIC_O): $(srcdir)/%.cpp
51 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
52%.o: $(srcdir)/%.cpp
53 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
54
55
56## Dependency rules
57%.d: $(srcdir)/%.c
58 @echo "generating dependency information for $<"
59 @$(SHELL) -ec '$(GEN_DEPS.c) $< > /dev/null'
60
61%.d: $(srcdir)/%.cpp
62 @echo "generating dependency information for $<"
63 @$(SHELL) -ec '$(GEN_DEPS.cc) $< > /dev/null'
64
65## Versioned libraries rules
66
67%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
68 $(RM) $@ && ln -s ${<F} $@
69%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
70 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
71
72## End Linux-specific setup
73