8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / psvc / psvcpolicy / Makefile
blobc33ecf85d9bb650a3fcb0568e0d4adbe0788e45c
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"
28 # cmd/picl/plugins/sun4u/psvc/psvcpolicy/Makefile
30 LIBRARY= libpsvcpolicy.a
31 VERS= .1
33 OBJECTS= psvcpolicy.o
35 # include library definitions
36 include $(SRC)/lib/Makefile.lib
37 include $(SRC)/Makefile.psm
39 include $(SRC)/cmd/picl/plugins/Makefile.com
41 SRCS= $(OBJECTS:%.o=%.c)
43 LIBS = $(DYNLIB)
45 PLATFORM = sun4u
47 USR_PLAT_PSVCPOL = $(LIBS:%=$(USR_PSM_LIB_DIR)/%)
49 CLEANFILES= $(LINTOUT) $(LINTLIB)
51 CPPFLAGS += -I$(SRC)/uts/sun4u
52 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
54 ZDEFS =
55 CFLAGS += $(CCVERBOSE)
56 LDLIBS += $(ZNODEFS)
57 LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
58 LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
59 LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcplugin
60 LDLIBS += -lc -lpsvcobj -lpsvcplugin -lpicltree
62 DYNFLAGS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
63 DYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins:/usr/platform/sun4u/lib
65 LINTFLAGS +=
67 .KEEP_STATE:
69 SUBDIRS=
71 POFILE= psvcpolicy.po
73 all := TARGET= all
74 install := TARGET= install
75 clean := TARGET= clean
76 clobber := TARGET= clobber
77 lint := TARGET= lint
78 _msg := TARGET= _msg
80 all: $(LIBS) $(LIBLINKS)
82 install: all $(USR_PLAT_PSVCPOL)
84 $(LIBLINKS): FRC
85 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
88 # include library targets
89 include $(SRC)/cmd/picl/plugins/Makefile.targ
90 include $(SRC)/lib/Makefile.targ
92 _msg: $(MSGDOMAIN) $(POFILE)
93 $(RM) $(MSGDOMAIN)/$(POFILE)
94 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
96 $(MSGDOMAIN):
97 $(INS.dir)
99 $(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
100 $(INS.file) ;\
101 $(RM) -r $(USR_PSM_LIB_DIR)/libpsvcpolicy.so; \
102 $(SYMLINK) ./libpsvcpolicy.so$(VERS) $(USR_PSM_LIB_DIR)/libpsvcpolicy.so
104 lint :
105 $(LINT.c) $(SRCS)
107 $(SUBDIRS): FRC
108 @cd $@; pwd; $(MAKE) $(TARGET)
110 FRC: