Print this page
lib: move compat links from targetdirs to proper makefiles
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/libelf/Makefile.targ
+++ new/usr/src/cmd/sgs/libelf/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.
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 (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2016 RackTop Systems.
24 24 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
25 25 #
26 26
27 27 objs/%.o \
28 28 pics/%.o: %.c
29 29 $(COMPILE.c) -o $@ $<
30 30 $(POST_PROCESS_O)
31 31
32 32 objs/%64.o \
33 33 pics/%64.o: ../common/%.c
34 34 $(COMPILE.c) -D_ELF64 -o $@ $<
35 35 $(POST_PROCESS_O)
36 36
37 37 objs/%.o \
38 38 pics/%.o: ../misc/%.c
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
39 39 $(COMPILE.c) -DELF -o $@ $<
40 40 $(POST_PROCESS_O)
41 41
42 42 objs/%.o \
43 43 pics/%.o: ../common/%.c
44 44 $(COMPILE.c) -o $@ $<
45 45 $(POST_PROCESS_O)
46 46
47 47 all: $(BLTSRCS) .WAIT $(LIBS) $(LIBLINKS)
48 48
49 -install: all .WAIT $(ROOTFS_LIBS) $(ROOTFS_LINKS) \
50 - .WAIT $(ROOTDEMODIRS) .WAIT $(ROOTDEMOFILES)
49 +install: all .WAIT $(ROOTLIBS) $(ROOTLINKS) \
50 + .WAIT $(ROOTDEMODIRS) .WAIT $(ROOTDEMOFILES) $(ROOTCOMPATLINKS)
51 51
52 52 delete:
53 53 $(RM) $(DYNLIB)
54 54
55 55 $(LIBLINKS):
56 56 $(RM) $(LIBLINKS)
57 57 $(SYMLINK) $(DYNLIB) $(LIBLINKS)
58 58
59 59 CLOBBERFILES += $(LIBLINKS)
60 60
61 61 # include common library targets
62 62 #
63 63 include $(SRC)/lib/Makefile.targ
64 64 include $(SRC)/cmd/sgs/Makefile.targ
65 65
66 66 xlate.c: ../common/xlate.m4
67 67 $(M4) < ../common/xlate.m4 > xlate.c
68 68
69 69 xlate64.c: ../common/xlate64.m4
70 70 $(M4) < ../common/xlate64.m4 > xlate64.c
71 71
72 72
73 73 objs/msg.o \
74 74 pics/msg.o: msg.c
75 75
76 76 objs/error.o \
77 77 pics/error.o: msg.h
78 78
79 79 objs/ar.o \
80 80 pics/ar.o: msg.h
81 81
82 82 objs/xlate.o \
83 83 pics/xlate.o: xlate.c
84 84
85 85 # Special target for native builds (ie. when we need to build a version of ld
86 86 # to build a version of ld :-).
87 87
88 88 native: $(SGSLIBDIR)/$(LIBLINKS)
89 89
90 90 $(PICS): pics
91 91
92 92 $(SGSLIBDIR)/$(DYNLIB): $(PICS) $(SGSLIBDIR)
93 93 $(BUILD.SO)
94 94 $(POST_PROCESS_SO)
95 95
96 96 $(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
97 97 -@$(RM) $(SGSLIBDIR)/$(LIBLINKS)
98 98 $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
99 99
100 100
101 101 # Derived source and header files (messaging). Make sure that the sgsmsg
102 102 # command is constructed - libelf might not be built with the whole sgs.
103 103
104 104 catalog: $(BLTMESG)
105 105
106 106 chkmsg: $(LIBSRCS)
107 107 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS)
108 108
109 109 $(BLTDEFS) + \
110 110 $(BLTDATA): $(SGSMSG) $(SGSMSGTARG)
111 111 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
112 112
113 113 $(BLTMESG): $(SGSMSG) $(SGSMSGALL) xlate.c xlate64.c
114 114 $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
115 115
116 116 $(SGSMSG): FRC
117 117 @ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog
118 118 @ pwd
119 119
120 120 FRC:
↓ open down ↓ |
60 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX