cmd: remove sparc-only virtinfo
[unleashed.git] / usr / src / cmd / picl / plugins / sun4u / psvc / psvcobj / Makefile
blob14779d8c0be5d573c509a96e7b3ad4c6bbae9f6e
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
7 # with the License.
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
20 # CDDL HEADER END
23 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # ident "%Z%%M% %I% %E% SMI"
29 LIBRARY= libpsvcobj.a
30 VERS= .1
32 OBJECTS= psvcobj.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 = sun4u
46 USR_PLAT_PSVCOBJ = $(LIBS:%=$(USR_PSM_LIB_DIR)/%)
48 CPPFLAGS += -I$(SRC)/uts/sun4u -I.
50 LDLIBS += -L$(SRC)/lib/libdevfsevent
51 LDLIBS += -lc
53 # definitions for install_h target
54 HDRS= psvc_objects.h
55 PLATHDRS= $(HDRS:%=$(USR_PSM_INCL_DIR)/%)
56 CHECKHDRS= $(HDRS:%.h=%.check)
58 .KEEP_STATE:
60 SUBDIRS=
62 POFILE= psvcobj.po
64 all := TARGET= all
65 install := TARGET= install
66 clean := TARGET= clean
67 clobber := TARGET= clobber
68 _msg := TARGET= _msg
70 all: $(LIBS) $(LIBLINKS)
72 install: all $(USR_PSM_LIB_DIR) $(USR_PLAT_PSVCOBJ)
74 install_h: $(USR_PSM_INCL_DIR) $(PLATHDRS)
76 $(LIBLINKS): FRC
77 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
79 _msg: $(POFILE)
81 # include library targets
82 include $(SRC)/cmd/picl/plugins/Makefile.targ
83 include $(SRC)/lib/Makefile.targ
85 $(USR_PSM_LIB_DIR): FRC
86 $(INS.dir)
88 $(USR_PSM_INCL_DIR)/%: %
89 $(INS.file)
91 $(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
92 $(INS.file) ;\
93 $(RM) -r $(USR_PSM_LIB_DIR)/libpsvcobj.so; \
94 $(SYMLINK) ./libpsvcobj.so$(VERS) $(USR_PSM_LIB_DIR)/libpsvcobj.so
96 $(SUBDIRS): FRC
97 @cd $@; pwd; $(MAKE) $(TARGET)
99 FRC: