8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / daktari / psvcpolicy / Makefile
blob1d70cb512ddb44d60e2a415426accd1c7c80aaa8
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 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
56 ZDEFS =
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
67 LINTFLAGS +=
69 .KEEP_STATE:
71 PLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib/
73 UTSBASE= $(SRC)/uts
75 SUBDIRS=
77 POFILE= psvcpolicy.po
78 POFILE_RENAME= psvcpolicy_dak.po
80 all := TARGET= all
81 install := TARGET= install
82 clean := TARGET= clean
83 clobber := TARGET= clobber
84 lint := TARGET= lint
85 _msg := TARGET= _msg
87 all: $(LIBS) $(LIBLINKS)
89 install: all $(USR_PSM_LIBS)
91 $(USR_PSM_LIB_DIR):
92 @cd $(UTSBASE)/sun4u/daktari; pwd; $(MAKE) $(USR_PSM_LIB_DIR)
94 $(LIBLINKS): FRC
95 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
97 _msg: $(MSGDOMAIN) $(POFILE)
98 $(RM) $(MSGDOMAIN)/$(POFILE)
99 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME)
101 $(MSGDOMAIN):
102 $(INS.dir)
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)
110 $(INS.file) ;\
111 $(RM) -r $(USR_PSM_LIB_DIR)/libpsvcpolicy_psr.so; \
112 $(SYMLINK) ./libpsvcpolicy_psr.so$(VERS) $(USR_PSM_LIB_DIR)/libpsvcpolicy_psr.so
114 lint :
115 $(LINT.c) $(SRCS)
117 $(SUBDIRS): FRC
118 @cd $@; pwd; $(MAKE) $(TARGET)
120 FRC: