]> git.saurik.com Git - apple/icu.git/blob - icuSources/config/mh-irix
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / config / mh-irix
1 ## -*-makefile-*-
2 ## IRIX-specific setup (for CC)
3 ## Copyright (c) 1999-2000, International Business Machines Corporation and
4 ## others. All Rights Reserved.
5 ##
6 ## $Id: mh-irix,v 1.1.1.1 2003/02/05 21:31:17 avery Exp $
7
8 ## Flags for position independent code
9 SHAREDLIBCFLAGS = -shared
10 SHAREDLIBCXXFLAGS = -shared
11 SHAREDLIBCPPFLAGS =
12
13 ## Commands to generate dependency files
14 GEN_DEPS.c= $(CC) -E -M $(DEFS) $(CPPFLAGS)
15 GEN_DEPS.cc= $(CXX) -E -M $(DEFS) $(CPPFLAGS)
16
17 ## Commands to link
18 ## We need to use the C++ linker, even when linking C programs, since
19 ## our libraries contain C++ code (C++ static init not called)
20 #LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
21 LINK.c= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
22 LINK.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
23
24 ## Commands to make a shared library
25 SHLIB.c= $(CC) -shared $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
26 SHLIB.cc= $(CXX) -shared $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
27
28 ## Compiler switch to embed a runtime search path
29 LD_RPATH=
30 LD_RPATH_PRE= -Wl,-rpath,
31
32 ## Compiler switch to embed a library name
33 LD_SONAME = -Wl,-soname -Wl,$(MIDDLE_SO_TARGET)
34
35 ## Shared object suffix
36 SO= so
37 ## Non-shared intermediate object suffix
38 STATIC_O = ao
39
40 ## Compilation rules
41 %.$(STATIC_O): $(srcdir)/%.c
42 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
43 %.o: $(srcdir)/%.c
44 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
45
46 %.$(STATIC_O): $(srcdir)/%.cpp
47 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
48 %.o: $(srcdir)/%.cpp
49 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
50
51 ../data/%.o: ../data/%.c
52 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
53
54 ## Dependency rules
55 %.d : $(srcdir)/%.c
56 @echo "generating dependency information for $<"
57 @$(SHELL) -ec '$(GEN_DEPS.c) $< \
58 | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
59 [ -s $@ ] || rm -f $@'
60
61 %.d : $(srcdir)/%.cpp
62 @echo "generating dependency information for $<"
63 @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
64 | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
65 [ -s $@ ] || rm -f $@'
66
67 ## Versioned libraries rules
68
69 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
70 $(RM) $@ && ln -s $< $@
71 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
72 $(RM) $@ && ln -s $*.$(SO).$(SO_TARGET_VERSION) $@
73
74 ## End IRIX-specific setup