Print this page
5468 Missing dependencies in lib/Makefile
5709 Add binary compatibility with Solaris 10 update 10.
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/picl/plugins/common/devtree/Makefile
+++ new/usr/src/cmd/picl/plugins/common/devtree/Makefile
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, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# ident "%Z%%M% %I% %E% SMI"
26 +# Copyright 2015 RackTop Systems.
27 27 #
28 28 # cmd/picl/plugins/common/devtree/Makefile
29 29 #
30 30 LIBRARY= libpicldevtree.a
31 31 VERS= .1
32 32
33 33 OBJECTS= picldevtree.o
34 34
35 35 # include library definitions
36 36 include $(SRC)/lib/Makefile.lib
37 37
38 38 include $(SRC)/cmd/picl/plugins/Makefile.com
39 39
40 40 SRCS= $(OBJECTS:%.o=%.c)
41 41
42 42 LIBS = $(DYNLIB)
43 43
44 44 ROOTLIBDIR = $(USR_LIB_PLUGINDIR)
45 45 ROOTETC = $(ROOT)/etc
46 46 ROOTLIB = $(ROOT)/usr/lib
47 47
48 48 CLEANFILES= $(LINTOUT) $(LINTLIB)
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
49 49 CLOBBERFILES += $(LIBLINKS)
50 50
51 51 CPPFLAGS += -I$(SRC)/lib/libsysevent -I$(SRC)/uts/common
52 52
53 53 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
54 54 CPPFLAGS += -D_REENTRANT
55 55 LDLIBS += -L$(SRC)/lib/libsysevent -L$(SRC)/lib/libpicltree/$(MACH)
56 56 LDLIBS += -lc -lkstat -ldevinfo -lpicltree -lnvpair
57 57 LDLIBS += -L../piclevent -L$(ROOT)/usr/lib/picl/plugins -lpiclevent
58 58 LDLIBS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins
59 -LDLIBS += -R/usr/platform/sun4u/lib/picl/plugins
59 +$(SPARC_BLD)LDLIBS += -R/usr/platform/sun4u/lib/picl/plugins
60 60 LDLIBS += -R/usr/lib/picl/plugins
61 61
62 62 LINTFLAGS += -L$(SRC)/lib/libpicltree/$(MACH) -lpicltree
63 63
64 64 .KEEP_STATE:
65 65
66 66 SUBDIRS=
67 67
68 68 POFILE= picldevtree.po
69 69
70 70 all := TARGET= all
71 71 install := TARGET= install
72 72 clean := TARGET= clean
73 73 clobber := TARGET= clobber
74 74 lint := TARGET= lint
75 75 _msg := TARGET= _msg
76 76
77 77 all: $(LIBS) $(LIBLINKS)
78 78
79 79 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
80 80
81 81 _msg: $(MSGDOMAIN) $(POFILE)
82 82 $(RM) $(MSGDOMAIN)/$(POFILE)
83 83 $(CP) $(POFILE) $(MSGDOMAIN)
84 84
85 85
86 86 $(MSGDOMAIN):
87 87 $(INS.dir)
88 88
89 89 $(LIBLINKS): FRC
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
90 90 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
91 91
92 92 # include library targets
93 93 include $(SRC)/cmd/picl/plugins/Makefile.targ
94 94 include $(SRC)/lib/Makefile.targ
95 95
96 96 lint :
97 97 $(LINT.c) $(SRCS)
98 98
99 99 %.so: %.o
100 - $(LINK.c) -o $@ $(GSHARED) -h $@ $<
100 + $(LINK.c) -o $@ $(GSHARED) -h $@ $< $(LDLIBS)
101 101
102 102 %.o: %.c
103 103 $(COMPILE.c) -o $@ $<
104 104
105 105 $(SUBDIRS): FRC
106 106 @cd $@; pwd; $(MAKE) $(TARGET)
107 107
108 108 FRC:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX