Print this page
only include native support in standalone library
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libdisasm/Makefile.targ
+++ new/usr/src/lib/libdisasm/Makefile.targ
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 -# ident "%Z%%M% %I% %E% SMI"
26 -#
27 25
28 26 #
29 27 # We build each flavor in a separate make invocation to improve clarity(!) in
30 28 # Makefile.com. The subordinate makes have $(CURTYPE) set to indicate the
31 29 # flavor they're supposed to build. This causes the correct set of source
32 30 # files and compiler and linker flags to be selected.
33 31 #
34 -# The SPARC library is built from the closed gate. This Makefile is shared
35 -# between both environments, so all paths must be absolute.
36 -#
37 32
38 33 install: $(TYPES:%=install.%)
39 34
40 35 all: $(TYPES:%=all.%)
41 36
42 37 $(TYPES:%=all.%):
43 38 @CURTYPE=$(@:all.%=%) $(MAKE) $@.targ
44 39
45 40 $(TYPES:%=install.%):
46 41 @CURTYPE=$(@:install.%=%) $(MAKE) $@.targ
47 42
48 43 install.library.targ: all.library $(INSTALL_DEPS_library)
49 44 install.standalone.targ: all.standalone $(INSTALL_DEPS_standalone)
50 45
51 46 all.library.targ: $(LIBS)
52 47 all.standalone.targ: $(STANDLIBRARY)
53 48
54 49 lint: $(TYPES:%=lint.%)
55 50
56 51 $(TYPES:%=lint.%):
57 52 @CURTYPE=$(@:lint.%=%) $(MAKE) lintcheck
58 53
59 54 $(STANDLIBRARY): $(OBJS) $(LINKTEST_OBJ)
60 55 $(LD) $(BREDUCE) $(ZDEFS) $(LDFLAGS) -o $@.linktest $(OBJS) $(LINKTEST_OBJ)
61 56 rm $@.linktest
62 57 $(LD) $(LDFLAGS) -o $@ $(OBJS)
63 58
64 59 clobber: $(TYPES:%=clobber.%)
65 60
66 61 $(TYPES:%=clobber.%):
67 62 @CURTYPE=$(@:clobber.%=%) $(MAKE) clobber.targ
68 63
69 64 clobber.targ: clean
70 65 -$(RM) $(CLOBBERTARGFILES)
71 66
72 67 # include library targets
73 68 include $(SRC)/lib/Makefile.targ
74 69
75 70 $(PICS): pics
76 71 $(OBJS): objs
77 72
78 73 objs/%.o pics/%.o: $(ISASRCDIR)/%.c
79 74 $(COMPILE.c) -o $@ $<
80 75 $(POST_PROCESS_O)
81 76
82 77 objs/%.o pics/%.o: $(ISASRCDIR)/%.s
83 78 $(COMPILE.s) -o $@ $<
84 79 $(POST_PROCESS_O)
85 80
86 81 objs/%.o pics/%.o: $(COMDIR)/%.c
87 82 $(COMPILE.c) -o $@ $<
88 83 $(POST_PROCESS_O)
89 84
90 85 # install rule for lint library target
91 86 $(ROOTLINTDIR)/%: $(COMDIR)/%
92 87 $(INS.file)
93 88
94 89 # install rule for x86 common source
95 90 objs/%.o pics/%.o: $(SRC)/common/dis/i386/%.c
96 91 $(COMPILE.c) -o $@ $<
97 92 $(POST_PROCESS_O)
↓ open down ↓ |
51 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX