Print this page
lib: move compat links from targetdirs to proper makefiles
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/lex/Makefile.targ
+++ new/usr/src/cmd/sgs/lex/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 2015 Gary Mills
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
27 27 #
28 28
29 29 $(PROG): objs .WAIT $(POBJS)
30 30 $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
31 31 $(POST_PROCESS)
32 32
33 33 # conditional assignment of default permissions for the installed
34 34 # DYNLIB/DYNLIBCCC. Set here and in Makefile.mach, instead of Makefile.lib,
35 35 # because ROOTLIBDIR may be changed in the including makefile after it has
36 36 # included Makefile.lib.
37 37 #
38 38 $(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
39 39 $(ROOTLIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
40 40
41 41 $(ROOTLIBDIR64)/$(DYNLIB) := FILEMODE= 755
42 42 $(ROOTLIBDIR64)/$(DYNLIBCCC) := FILEMODE= 755
43 43
44 44 # library install rules
45 45 $(ROOTLIBDIR)/%: %
46 46 $(INS.file)
47 47 $(ROOTLIBDIR64)/%: %
48 48 $(INS.file)
49 49
50 50 $(ROOTLIBDIR)/$(LIBLINKS): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
51 51 $(INS.liblink)
52 52 $(ROOTLIBDIR64)/$(LIBLINKS): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
53 53 $(INS.liblink64)
54 54
55 55 $(ROOTLIBDIR)/$(LIBLINKSCCC): $(ROOTLIBDIR)/$(LIBLINKSCCC)$(VERS)
56 56 $(INS.liblinkccc)
57 57 $(ROOTLIBDIR64)/$(LIBLINKSCCC): $(ROOTLIBDIR64)/$(LIBLINKSCCC)$(VERS)
58 58 $(INS.liblinkccc64)
59 59
60 60 objs pics:
61 61 -@mkdir -p $@
62 62
63 63 $(LIBRARY): objs .WAIT $$(OBJS)
64 64 $(BUILD.AR)
65 65 $(POST_PROCESS_A)
66 66
67 67 $(DYNLIB): pics .WAIT $$(PICS)
68 68 $(BUILD.SO)
69 69 $(POST_PROCESS_SO)
70 70
71 71 $(DYNLIBCCC): pics .WAIT $$(PICS)
72 72 $(BUILDCCC.SO)
73 73 $(POST_PROCESS_SO)
74 74
75 75 objs/%_w.o pics/%_w.o objs/%_e.o pics/%_e.o: ../common/%.c
↓ open down ↓ |
75 lines elided |
↑ open up ↑ |
76 76 $(COMPILE.c) -o $@ $<
77 77 $(POST_PROCESS_O)
78 78
79 79 objs/%.o pics/%.o: ../common/%.c
80 80 $(COMPILE.c) -o $@ $<
81 81 $(POST_PROCESS_O)
82 82
83 83 $(DYNLINKLIBDIR)/%: %$(VERS)
84 84 $(INS.liblink)
85 85
86 +$(ROOTCOMPATLINKS):
87 + $(RM) $@; $(SYMLINK) $(COMPATLINKTARGET) $@
88 +
86 89 clean:
87 90 $(RM) $(POBJS) $(OBJS) $(PICS) $(CLEANFILES)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX