8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / cherrystone / psvcpolicy / Makefile
blobfbc632dfb6463b4fe7080acd6dfd83cb6c847eb1
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= 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-480R
46 CLEANFILES= $(LINTOUT) $(LINTLIB)
48 CPPFLAGS += -I$(SRC)/uts/sun4u
49 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
50 CPPFLAGS += -D_REENTRANT
52 ZDEFS =
53 CFLAGS += $(CCVERBOSE)
54 LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
55 LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
56 LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcplugin
57 DYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
59 LDLIBS += -lpicltree -lpsvcobj -lpsvcplugin
60 LDLIBS += -lc -ldevice -ldevinfo -lHBAAPI
62 LINTFLAGS +=
64 .KEEP_STATE:
66 PLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib/
68 UTSBASE= $(SRC)/uts
70 SUBDIRS=
72 POFILE= psvcpolicy.po
73 POFILE_RENAME= psvcpolicy_cstone.po
75 all := TARGET= all
76 install := TARGET= install
77 clean := TARGET= clean
78 clobber := TARGET= clobber
79 lint := TARGET= lint
80 _msg := TARGET= _msg
82 all: $(LIBS) $(LIBLINKS)
84 install: all $(USR_PSM_LIBS)
86 $(USR_PSM_LIB_DIR):
87 @cd $(UTSBASE)/sun4u/cherrystone; pwd; $(MAKE) $(USR_PSM_LIB_DIR)
89 $(LIBLINKS): FRC
90 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
92 _msg: $(MSGDOMAIN) $(POFILE)
93 $(RM) $(MSGDOMAIN)/$(POFILE)
94 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME)
96 $(MSGDOMAIN):
97 $(INS.dir)
100 # include library targets
101 include $(SRC)/cmd/picl/plugins/Makefile.targ
102 include $(SRC)/lib/Makefile.targ
104 $(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
105 $(INS.file) ;\
106 $(RM) -r $(USR_PSM_LIB_DIR)/libpsvcpolicy_psr.so; \
107 $(SYMLINK) ./libpsvcpolicy_psr.so$(VERS) $(USR_PSM_LIB_DIR)/libpsvcpolicy_psr.so
109 lint :
110 $(LINT.c) $(SRCS)
112 $(SUBDIRS): FRC
113 @cd $@; pwd; $(MAKE) $(TARGET)
115 FRC: