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 CLEANFILES
= $(LINTOUT
) $(LINTLIB
)
51 CPPFLAGS
+= -I
$(SRC
)/uts
/sun4u
52 CPPFLAGS
+= -I
$(ROOT
)/usr
/platform
/sun4u
/include
53 CPPFLAGS
+= -I
$(SRC
)/cmd
/picl
/plugins
/sun4u
/psvc
/psvcobj
54 CPPFLAGS
+= -D_REENTRANT
57 CFLAGS
+= $(CCVERBOSE
)
58 LDLIBS
+= -L
$(ROOT
)/usr
/lib
59 LDLIBS
+= -L
$(SRC
)/lib
/libpicl
/$(MACH
) -L
$(SRC
)/lib
/libpicltree
/$(MACH
)
60 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/sun4u
/psvc
/psvcobj
61 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/sun4u
/psvc
/psvcplugin
62 DYNFLAGS
+= -R
$(DYNFLAGS_PLAT
):$(DYNFLAGS_SUN4U
):$(DYNFLAGS_COM
)
64 LDLIBS
+= -lpicltree
-lpsvcobj
-lpsvcplugin
65 LDLIBS
+= -lc
-ldevice
-lcfgadm
71 PLATLIBS
= $(USR_PLAT_DIR
)/$(PLATFORM
)/lib
/
78 POFILE_RENAME
= psvcpolicy_dak.po
81 install := TARGET
= install
82 clean := TARGET
= clean
83 clobber := TARGET
= clobber
87 all: $(LIBS
) $(LIBLINKS
)
89 install: all $(USR_PSM_LIBS
)
92 @cd
$(UTSBASE
)/sun4u
/daktari
; pwd
; $(MAKE
) $(USR_PSM_LIB_DIR
)
95 $(RM
) $(LIBLINKS
); $(SYMLINK
) $(DYNLIB
) $(LIBLINKS
)
97 _msg
: $(MSGDOMAIN
) $(POFILE
)
98 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
99 $(CP
) $(POFILE
) $(MSGDOMAIN
)/$(POFILE_RENAME
)
105 # include library targets
106 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
107 include $(SRC
)/lib
/Makefile.targ
109 $(USR_PSM_LIB_DIR
)/%: % $(USR_PSM_LIB_DIR
)
111 $(RM
) -r
$(USR_PSM_LIB_DIR
)/libpsvcpolicy_psr.so
; \
112 $(SYMLINK
) .
/libpsvcpolicy_psr.so
$(VERS
) $(USR_PSM_LIB_DIR
)/libpsvcpolicy_psr.so
118 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)