dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / psvc / psvcpolicy / Makefile
blobf0422e82b05646ac930c890d900cc11a977cbcad
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 CPPFLAGS += -I$(SRC)/uts/sun4u
50 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
52 ZDEFS =
53 LDLIBS += $(ZNODEFS)
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 LDLIBS += -lc -lpsvcobj -lpsvcplugin -lpicltree
59 DYNFLAGS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
60 DYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins:/usr/platform/sun4u/lib
62 .KEEP_STATE:
64 SUBDIRS=
66 POFILE= psvcpolicy.po
68 all := TARGET= all
69 install := TARGET= install
70 clean := TARGET= clean
71 clobber := TARGET= clobber
72 _msg := TARGET= _msg
74 all: $(LIBS) $(LIBLINKS)
76 install: all $(USR_PLAT_PSVCPOL)
78 $(LIBLINKS): FRC
79 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
82 # include library targets
83 include $(SRC)/cmd/picl/plugins/Makefile.targ
84 include $(SRC)/lib/Makefile.targ
86 _msg: $(MSGDOMAIN) $(POFILE)
87 $(RM) $(MSGDOMAIN)/$(POFILE)
88 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
90 $(MSGDOMAIN):
91 $(INS.dir)
93 $(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
94 $(INS.file) ;\
95 $(RM) -r $(USR_PSM_LIB_DIR)/libpsvcpolicy.so; \
96 $(SYMLINK) ./libpsvcpolicy.so$(VERS) $(USR_PSM_LIB_DIR)/libpsvcpolicy.so
98 $(SUBDIRS): FRC
99 @cd $@; pwd; $(MAKE) $(TARGET)
101 FRC: