4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 LIBRARY
= libpiclevent.a
31 # include library definitions
32 include $(SRC
)/lib
/Makefile.lib
34 include $(SRC
)/cmd
/picl
/plugins
/Makefile.com
39 MOD_LDLIBS
= -L
$(ROOT
)/usr
/lib
-lsysevent
-lnvpair
-lc
44 ROOTLIBSYSEVENTDIR
= $(ROOTLIB
)/$(SYSEVENT
)
45 ROOTLIBSYSEVENTMODDIR
= $(ROOTLIBSYSEVENTDIR
)/$(MODDIR
)
46 ROOTLIBSYSEVENTMODULES
= $(MODULES
:%=$(ROOTLIBSYSEVENTMODDIR
)/%)
47 ROOTETCSYSEVENTDIR
= $(ROOTETC
)/$(SYSEVENT
)
49 SRCS
= $(OBJECTS
:%.o
=%.c
)
53 ROOTLIBDIR
= $(USR_LIB_PLUGINDIR
)
55 ROOTLIB
= $(ROOT
)/usr
/lib
57 CLOBBERFILES
+= $(LIBLINKS
)
58 CLOBBERFILES
+= $(MODULES
)
60 CPPFLAGS
+= -I
$(SRC
)/lib
/libsysevent
-I
$(SRC
)/uts
/sun
62 CFLAGS
+= $(C_PICFLAGS
)
63 LDLIBS
+= -L
$(SRC
)/lib
/libsysevent
-L
$(SRC
)/lib
/libpicltree
/$(MACH
)
64 LDLIBS
+= -lc
-lpicltree
-lnvpair
74 install := TARGET
= install
75 clean := TARGET
= clean
76 clobber := TARGET
= clobber
79 all: $(LIBS
) $(LIBLINKS
) $(MODULES
)
81 install: $(ROOTLIBDIR
) all $(ROOTLIBS
) $(ROOTLINKS
) \
82 $(ROOTETCSYSEVENTDIR
) \
83 $(ROOTLIBSYSEVENTDIR
) \
84 $(ROOTLIBSYSEVENTMODDIR
) \
85 $(ROOTLIBSYSEVENTMODULES
)
87 _msg
: $(MSGDOMAIN
) $(POFILE
)
88 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
89 $(CP
) $(POFILE
) $(MSGDOMAIN
)
96 $(RM
) $@
; $(SYMLINK
) $(DYNLIB
) $@
98 # include library targets
99 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
100 include $(SRC
)/lib
/Makefile.targ
103 $(LINK.c
) -o
$@
$(GSHARED
) -h
$@
$< $(MOD_LDLIBS
)
106 $(COMPILE.c
) -o
$@
$<
109 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
111 $(ROOTLIBSYSEVENTDIR
):
114 $(ROOTETCSYSEVENTDIR
):
117 $(ROOTLIBSYSEVENTDIR
)/%: %
120 $(ROOTLIBSYSEVENTMODDIR
):
123 $(ROOTLIBSYSEVENTMODDIR
)/%.so
: %.so