cmd: remove locator
[unleashed.git] / usr / src / cmd / picl / plugins / common / frutree / Makefile
blob760a212b7a2f706278375243995cef9879b9d2dc
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 # ident "%Z%%M% %I% %E% SMI"
25 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
26 # Use is subject to license terms.
28 # cmd/picl/plugins/common/frutree/Makefile
30 LIBRARY= libpiclfrutree.a
31 VERS= .1
33 OBJECTS= piclfrutree.o
35 # include library definitions
36 include $(SRC)/lib/Makefile.lib
38 include $(SRC)/cmd/picl/plugins/Makefile.com
40 SRCS= $(OBJECTS:%.o=%.c)
42 LIBS = $(DYNLIB)
44 ROOTLIBDIR = $(USR_LIB_PLUGINDIR)
46 CLOBBERFILES += $(LIBLINKS)
48 CPPFLAGS += -I../devtree
49 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
50 CFLAGS += $(C_PICFLAGS)
51 LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
52 LDLIBS += -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
53 LDLIBS += -L../devtree
54 LDLIBS += -L../memcfg
55 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins
56 LDLIBS += -lc -lpicltree -lpicld_pluginutil -lpicldevtree
57 LDLIBS += -lpiclmemcfg
58 $(SPARC_BLD)LDLIBS += -R/usr/platform/lib/picl/plugins \
59 -R/usr/platform/sun4u/lib/picl/plugins
60 LDLIBS += -R/usr/lib/picl/plugins
62 .KEEP_STATE:
64 SUBDIRS=
66 all := TARGET= all
67 install := TARGET= install
68 clean := TARGET= clean
69 clobber := TARGET= clobber
70 _msg := TARGET= _msg
72 POFILE= piclfrutree.po
74 all: $(LIBS) $(LIBLINKS)
76 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
78 _msg: $(MSGDOMAIN) $(POFILE)
79 $(RM) $(MSGDOMAIN)/$(POFILE)
80 $(CP) $(POFILE) $(MSGDOMAIN)
82 $(MSGDOMAIN):
83 $(INS.dir)
85 $(LIBLINKS): FRC
86 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
88 # include library targets
89 include $(SRC)/cmd/picl/plugins/Makefile.targ
90 include $(SRC)/lib/Makefile.targ
92 $(SUBDIRS): FRC
93 @cd $@; pwd; $(MAKE) $(TARGET)
95 FRC: