Print this page
6117 Many small bugs prevent a clean build on SPARC
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.
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
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 +# Copyright 2015 Gary Mills
22 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 24 # Use is subject to license terms.
24 25 #
25 -# ident "%Z%%M% %I% %E% SMI"
26 26 #
27 27
28 28 $(PROG): objs .WAIT $(POBJS)
29 29 $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
30 30 $(POST_PROCESS)
31 31
32 32 # conditional assignment of default permissions for the installed
33 33 # DYNLIB/DYNLIBCCC. Set here and in Makefile.mach, instead of Makefile.lib,
34 34 # because ROOTLIBDIR may be changed in the including makefile after it has
35 35 # included Makefile.lib.
36 36 #
37 37 $(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
38 38 $(ROOTLIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
39 39
40 40 $(ROOTLIBDIR64)/$(DYNLIB) := FILEMODE= 755
41 41 $(ROOTLIBDIR64)/$(DYNLIBCCC) := FILEMODE= 755
42 42
43 43 # library install rules
44 44 $(ROOTLIBDIR)/%: %
45 45 $(INS.file)
46 46 $(ROOTLIBDIR64)/%: %
47 47 $(INS.file)
48 48
49 49 $(ROOTLIBDIR)/$(LIBLINKS): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
50 50 $(INS.liblink)
51 51 $(ROOTLIBDIR64)/$(LIBLINKS): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
52 52 $(INS.liblink64)
53 53
54 54 $(ROOTLIBDIR)/$(LIBLINKSCCC): $(ROOTLIBDIR)/$(LIBLINKSCCC)$(VERS)
55 55 $(INS.liblinkccc)
56 56 $(ROOTLIBDIR64)/$(LIBLINKSCCC): $(ROOTLIBDIR64)/$(LIBLINKSCCC)$(VERS)
57 57 $(INS.liblinkccc64)
58 58
59 59 objs pics:
60 60 -@mkdir -p $@
61 61
62 62 $(LIBRARY): objs .WAIT $$(OBJS)
63 63 $(BUILD.AR)
64 64 $(POST_PROCESS_A)
65 65
66 66 $(DYNLIB): pics .WAIT $$(PICS)
67 67 $(BUILD.SO)
68 68 $(POST_PROCESS_SO)
69 69
70 70 $(DYNLIBCCC): pics .WAIT $$(PICS)
71 71 $(BUILDCCC.SO)
72 72 $(POST_PROCESS_SO)
73 73
74 74 objs/%_w.o pics/%_w.o objs/%_e.o pics/%_e.o: ../common/%.c
75 75 $(COMPILE.c) -o $@ $<
76 76 $(POST_PROCESS_O)
77 77
78 78 objs/%.o pics/%.o: ../common/%.c
79 79 $(COMPILE.c) -o $@ $<
80 80 $(POST_PROCESS_O)
81 81
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
82 82 # install rule for lint library target
83 83 $(ROOTLINTDIR)/%: ../common/%
84 84 $(INS.file)
85 85
86 86 $(DYNLINKLIBDIR)/%: %$(VERS)
87 87 $(INS.liblink)
88 88
89 89 clean:
90 90 $(RM) $(POBJS) $(OBJS) $(PICS) $(CLEANFILES)
91 91
92 -lint: $(LINTPOUT) $(LINTLIB)
92 +$(LINTLIB): $$(SRCS)
93 + $(LINT.c) -o $(LIBNAME) $(SRCS) > $(LINTOUT) 2>&1
93 94
94 -LINT_HDR= perl ../../tools/lint_hdr.pl
95 +lintcheck: $$(SRCS)
96 + $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS)
95 97
96 -$(LINTPOUT): $(SRCS)
97 - $(LINT_HDR) $(PROG) > $(LINTPOUT)
98 - $(LINT_HDR) -s lex >> $(LINTPOUT)
99 - $(LINT.c) $(MACHSRCS) $(LDLIBS) 2>&1 | tee -a $(LINTPOUT)
100 -
101 - $(LINT_HDR) -s libl.so.1 >> $(LINTPOUT)
102 - $(LINT.c) $(LIBSRCS) $(LDLIBS) 2>&1 | tee -a $(LINTPOUT)
103 -
104 -$(LINTLIB): $(LINTSRCS)
105 - $(LINT.c) -o $(LIBNAME) $(LINTSRCS)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX