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 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # ident "%Z%%M% %I% %E% SMI"
27 # cmd/picl/plugins/sun4u/daktari/psvcpolicy/Makefile
29 LIBRARY
= libpsvcpolicy_psr.a
34 # include library definitions
35 include $(SRC
)/lib
/Makefile.lib
36 include $(SRC
)/Makefile.psm
38 include $(SRC
)/cmd
/picl
/plugins
/Makefile.com
40 SRCS
= $(OBJECTS
:%.o
=%.c
)
44 PLATFORM
= SUNW
,Sun-Fire-880
45 DYNFLAGS_PLAT
= /usr
/platform
/\
$$PLATFORM/lib
/picl
/plugins
46 DYNFLAGS_SUN4U
= /usr
/platform
/sun4u
/lib
/picl
/plugins
47 DYNFLAGS_COM
= /usr
/lib
/picl
/plugins
49 CPPFLAGS
+= -I
$(SRC
)/uts
/sun4u
50 CPPFLAGS
+= -I
$(ROOT
)/usr
/platform
/sun4u
/include
51 CPPFLAGS
+= -I
$(SRC
)/cmd
/picl
/plugins
/sun4u
/psvc
/psvcobj
54 LDLIBS
+= -L
$(ROOT
)/usr
/lib
55 LDLIBS
+= -L
$(SRC
)/lib
/libpicl
/$(MACH
) -L
$(SRC
)/lib
/libpicltree
/$(MACH
)
56 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/sun4u
/psvc
/psvcobj
57 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/sun4u
/psvc
/psvcplugin
58 DYNFLAGS
+= -R
$(DYNFLAGS_PLAT
):$(DYNFLAGS_SUN4U
):$(DYNFLAGS_COM
)
60 LDLIBS
+= -lpicltree
-lpsvcobj
-lpsvcplugin
61 LDLIBS
+= -lc
-ldevice
-lcfgadm
65 PLATLIBS
= $(USR_PLAT_DIR
)/$(PLATFORM
)/lib
/
72 POFILE_RENAME
= psvcpolicy_dak.po
75 install := TARGET
= install
76 clean := TARGET
= clean
77 clobber := TARGET
= clobber
80 all: $(LIBS
) $(LIBLINKS
)
82 install: all $(USR_PSM_LIBS
)
85 @cd
$(UTSBASE
)/sun4u
/daktari
; pwd
; $(MAKE
) $(USR_PSM_LIB_DIR
)
88 $(RM
) $(LIBLINKS
); $(SYMLINK
) $(DYNLIB
) $(LIBLINKS
)
90 _msg
: $(MSGDOMAIN
) $(POFILE
)
91 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
92 $(CP
) $(POFILE
) $(MSGDOMAIN
)/$(POFILE_RENAME
)
98 # include library targets
99 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
100 include $(SRC
)/lib
/Makefile.targ
102 $(USR_PSM_LIB_DIR
)/%: % $(USR_PSM_LIB_DIR
)
104 $(RM
) -r
$(USR_PSM_LIB_DIR
)/libpsvcpolicy_psr.so
; \
105 $(SYMLINK
) .
/libpsvcpolicy_psr.so
$(VERS
) $(USR_PSM_LIB_DIR
)/libpsvcpolicy_psr.so
108 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)