cmd: remove sparc-only virtinfo
[unleashed.git] / usr / src / cmd / picl / plugins / sun4u / daktari / psvcpolicy / Makefile
blobf5322dda7ca466cabf69a74b5c525db12e5ee792
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
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
30 VERS= .1
32 OBJECTS= psvcpolicy.o
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)
42 LIBS = $(DYNLIB)
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
53 ZDEFS =
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
63 .KEEP_STATE:
65 PLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib/
67 UTSBASE= $(SRC)/uts
69 SUBDIRS=
71 POFILE= psvcpolicy.po
72 POFILE_RENAME= psvcpolicy_dak.po
74 all := TARGET= all
75 install := TARGET= install
76 clean := TARGET= clean
77 clobber := TARGET= clobber
78 _msg := TARGET= _msg
80 all: $(LIBS) $(LIBLINKS)
82 install: all $(USR_PSM_LIBS)
84 $(USR_PSM_LIB_DIR):
85 @cd $(UTSBASE)/sun4u/daktari; pwd; $(MAKE) $(USR_PSM_LIB_DIR)
87 $(LIBLINKS): FRC
88 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
90 _msg: $(MSGDOMAIN) $(POFILE)
91 $(RM) $(MSGDOMAIN)/$(POFILE)
92 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME)
94 $(MSGDOMAIN):
95 $(INS.dir)
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)
103 $(INS.file) ;\
104 $(RM) -r $(USR_PSM_LIB_DIR)/libpsvcpolicy_psr.so; \
105 $(SYMLINK) ./libpsvcpolicy_psr.so$(VERS) $(USR_PSM_LIB_DIR)/libpsvcpolicy_psr.so
107 $(SUBDIRS): FRC
108 @cd $@; pwd; $(MAKE) $(TARGET)
110 FRC: