8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / littleneck / frutree / Makefile
blob5d672d87f4c259368389aca10c2e98529c67987a
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= libpiclfrutree.a
30 VERS= .1
32 OBJECTS= piclfrutree.o
34 include $(SRC)/Makefile.psm
36 # include library definitions
37 include $(SRC)/lib/Makefile.lib
39 include $(SRC)/cmd/picl/plugins/Makefile.com
41 SRCS= $(OBJECTS:%.o=%.c)
43 LIBS = $(DYNLIB)
45 ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-280R
47 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
49 CONF= piclfrutree.conf
50 ROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%)
51 $(ROOTCONF) := FILEMODE = 0644
52 INFOS= $(CONF:%.conf=%.info)
54 CLEANFILES= $(LINTOUT) $(LINTLIB)
55 CLOBBERFILES += $(LIBLINKS)
57 CPPFLAGS += -I$(SRC)/lib/libdevfsevent -I$(SRC)/uts/common
58 CPPFLAGS += -D_REENTRANT
60 CFLAGS += $(CCVERBOSE)
61 DEVTREE_SRC_DIR = $(SRC)/cmd/picl/plugins/common/devtree
62 LDLIBS += -L$(DEVTREE_SRC_DIR)
63 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins
64 LDLIBS += -L$(SRC)/lib/libptree/$(MACH)
65 LDLIBS += -lc -lpicltree -lpicldevtree
66 DYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
67 LINTFLAGS += -L$(SRC)/lib/libptree/$(MACH) -lpicltree
69 .KEEP_STATE:
71 SUBDIRS=
73 POFILE= piclfrutree.po
74 POFILE_RENAME= piclfrutree_lneck.po
76 all := TARGET= all
77 install := TARGET= install
78 clean := TARGET= clean
79 clobber := TARGET= clobber
80 lint := TARGET= lint
81 _msg := TARGET= _msg
83 all: $(LIBS) $(LIBLINKS) $(CONF)
85 install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
87 _msg: $(MSGDOMAIN) $(POFILE)
88 $(RM) $(MSGDOMAIN)/$(POFILE)
89 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME)
91 $(MSGDOMAIN):
92 $(INS.dir)
94 $(LIBLINKS): FRC
95 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
97 # include library targets
98 include $(SRC)/cmd/picl/plugins/Makefile.targ
99 include $(SRC)/lib/Makefile.targ
101 lint :
102 $(LINT.c) $(SRCS)
104 $(SUBDIRS): FRC
105 @cd $@; pwd; $(MAKE) $(TARGET)
107 $(CONF): $(INFOS)
108 $(RM) $@
109 $(CPP) piclfrutree.info >$@
111 FRC: