]> git.saurik.com Git - apple/icu.git/blob - icuSources/config/mh-ptx
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / config / mh-ptx
1 ## -*-makefile-*-
2 ## PTX-specific setup
3 ## Copyright (c) 1999-2000, International Business Machines Corporation and
4 ## others. All Rights Reserved.
5 ##
6 ## $Id: mh-ptx,v 1.1.1.1 2003/02/05 21:31:17 avery Exp $
7
8 ## Flags for position independent code
9 SHAREDLIBCFLAGS = -KPIC
10 SHAREDLIBCXXFLAGS = -KPIC
11 SHAREDLIBCPPFLAGS = -DPIC
12
13 ## Commands to generate dependency files
14 GEN_DEPS.c= $(CC) -Kthread -DPTX -c $(DEFS) $(CPPFLAGS)
15 GEN_DEPS.cc= $(CXX) -M -DPTX $(DEFS) $(CPPFLAGS)
16
17 ## Commands to compile
18 COMPILE.c= $(CC) -Kthread -DPTX $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
19 COMPILE.cc= $(CXX) -Kthread -DPTX $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c
20
21 ## Commands to link
22 #LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
23 LINK.c= $(CXX) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lm -lgen
24 LINK.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -lm -lgen
25
26 ## Commands to make a shared library
27 SHLIB.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DPTX -G
28 SHLIB.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -DPTX -G
29
30 ## Compiler switch to embed a runtime search path
31 LD_RPATH= -R
32 LD_RPATH_PRE=
33
34 ## Versioned target for a shared library.
35 FINAL_SO_TARGET = $(SO_TARGET)
36 MIDDLE_SO_TARGET =
37
38 ## Shared object suffix
39 SO= so
40 ## Non-shared intermediate object suffix
41 STATIC_O = ao
42
43 ## Compilation rules
44 %.$(STATIC_O): $(srcdir)/%.c
45 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
46 %.o: $(srcdir)/%.c
47 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
48
49 %.$(STATIC_O): $(srcdir)/%.cpp
50 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
51 %.o: $(srcdir)/%.cpp
52 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -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) -o $@ $< \
64 | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
65 [ -s $@ ] || rm -f $@'
66
67 ## End Ptx-specific setup