Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/picl/plugins/common/piclevent/Makefile
+++ new/usr/src/cmd/picl/plugins/common/piclevent/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 (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 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 LIBRARY= libpiclevent.a
27 27 VERS= .1
28 28
29 29 OBJECTS= piclevent.o
30 30
31 31 # include library definitions
32 32 include $(SRC)/lib/Makefile.lib
33 33
34 34 include $(SRC)/cmd/picl/plugins/Makefile.com
35 35
36 36 MODULES = picl_slm.so
37 37 MOD_SRCS = picl_slm.c
38 38 MOD_OBJS = picl_slm.o
39 39 MOD_LDLIBS = -L$(ROOT)/usr/lib -lsysevent -lnvpair -lc
40 40
41 41 # sysevent SLM dirs
42 42 SYSEVENT = sysevent
43 43 MODDIR = modules
44 44 ROOTLIBSYSEVENTDIR = $(ROOTLIB)/$(SYSEVENT)
45 45 ROOTLIBSYSEVENTMODDIR = $(ROOTLIBSYSEVENTDIR)/$(MODDIR)
46 46 ROOTLIBSYSEVENTMODULES = $(MODULES:%=$(ROOTLIBSYSEVENTMODDIR)/%)
47 47 ROOTETCSYSEVENTDIR = $(ROOTETC)/$(SYSEVENT)
48 48
49 49 SRCS= $(OBJECTS:%.o=%.c)
50 50
51 51 LIBS = $(DYNLIB)
52 52
53 53 ROOTLIBDIR = $(USR_LIB_PLUGINDIR)
54 54 ROOTETC = $(ROOT)/etc
55 55 ROOTLIB = $(ROOT)/usr/lib
56 56
↓ open down ↓ |
56 lines elided |
↑ open up ↑ |
57 57 CLEANFILES= $(LINTOUT) $(LINTLIB) $(MOD_OBJS)
58 58 CLOBBERFILES += $(LIBLINKS)
59 59 CLOBBERFILES += $(MODULES)
60 60
61 61 CPPFLAGS += -I$(SRC)/lib/libsysevent -I$(SRC)/uts/sun
62 62
63 63 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
64 64 CPPFLAGS += -D_REENTRANT
65 65 LDLIBS += -L$(SRC)/lib/libsysevent -L$(SRC)/lib/libpicltree/$(MACH)
66 66 LDLIBS += -lc -lpicltree -lnvpair
67 +LDFLAGS += -Bdirect
67 68
68 69 LINTFLAGS += -L$(SRC)/lib/libpicltree/$(MACH) -lpicltree
69 70
70 71 .KEEP_STATE:
71 72
72 73 SUBDIRS=
73 74
74 75 POFILE= piclevent.po
75 76
76 77 all := TARGET= all
77 78 install := TARGET= install
78 79 clean := TARGET= clean
79 80 clobber := TARGET= clobber
80 81 lint := TARGET= lint
81 82 _msg := TARGET= _msg
82 83
83 84 all: $(LIBS) $(LIBLINKS) $(MODULES)
84 85
85 86 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) \
86 87 $(ROOTETCSYSEVENTDIR) \
87 88 $(ROOTLIBSYSEVENTDIR) \
88 89 $(ROOTLIBSYSEVENTMODDIR) \
89 90 $(ROOTLIBSYSEVENTMODULES)
90 91
91 92 _msg: $(MSGDOMAIN) $(POFILE)
92 93 $(RM) $(MSGDOMAIN)/$(POFILE)
93 94 $(CP) $(POFILE) $(MSGDOMAIN)
94 95
95 96
96 97 $(MSGDOMAIN):
97 98 $(INS.dir)
98 99
99 100 $(LIBLINKS): FRC
100 101 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
101 102
102 103 # include library targets
103 104 include $(SRC)/cmd/picl/plugins/Makefile.targ
104 105 include $(SRC)/lib/Makefile.targ
105 106
106 107 lint :
107 108 $(LINT.c) $(SRCS)
108 109
109 110 %.so: %.o
110 111 $(LINK.c) -o $@ $(GSHARED) -h $@ $< $(MOD_LDLIBS)
111 112
112 113 %.o: %.c
113 114 $(COMPILE.c) -o $@ $<
114 115
115 116 $(SUBDIRS): FRC
116 117 @cd $@; pwd; $(MAKE) $(TARGET)
117 118
118 119 $(ROOTLIBSYSEVENTDIR):
119 120 $(INS.dir)
120 121
121 122 $(ROOTETCSYSEVENTDIR):
122 123 $(INS.dir)
123 124
124 125 $(ROOTLIBSYSEVENTDIR)/%: %
125 126 $(INS.file)
126 127
127 128 $(ROOTLIBSYSEVENTMODDIR):
128 129 $(INS.dir)
129 130
130 131 $(ROOTLIBSYSEVENTMODDIR)/%.so: %.so
131 132 $(INS.file)
132 133
133 134 FRC:
↓ open down ↓ |
57 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX