xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcplugin/Makefile (revision 6446bd46ed1b4e9f69da153665f82181ccaedad5)
1#
2# CDDL HEADER START
3#
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.
8#
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.
13#
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]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27LIBRARY=	libpsvcplugin_psr.a
28VERS=		.1
29
30OBJECTS=	psvcplugin.o
31
32# include library definitions
33include $(SRC)/lib/Makefile.lib
34include $(SRC)/Makefile.psm
35
36include $(SRC)/cmd/picl/plugins/Makefile.com
37
38SRCS=		$(OBJECTS:%.o=%.c)
39
40LIBS =		$(DYNLIB)
41
42ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-280R
43
44ROOTLIBDIR =	$(ROOT_PLAT_PLUGINDIR)
45
46CPPFLAGS +=	-I$(SRC)/uts/sun4u
47CPPFLAGS +=	-I$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
48CPPFLAGS +=	-D_REENTRANT
49
50CFLAGS +=	$(CCVERBOSE)
51LDLIBS +=	-L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
52LDLIBS +=	-L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
53LDLIBS +=	-L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcplugin
54DYNFLAGS +=	-R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins:/usr/platform/sun4u/lib
55
56LDLIBS +=	-lc -lpicltree -lpicl -lpsvcobj -lpsvcplugin
57
58.KEEP_STATE:
59
60SUBDIRS=
61
62POFILE=	psvcplugin.po
63POFILE_RENAME=	psvcplugin_lneck.po
64
65all :=		TARGET= all
66install :=	TARGET= install
67clean :=	TARGET= clean
68clobber :=	TARGET= clobber
69_msg :=		TARGET= _msg
70
71all: $(LIBS) $(LIBLINKS)
72
73install:	all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
74
75_msg:	$(MSGDOMAIN) $(POFILE)
76	$(RM) $(MSGDOMAIN)/$(POFILE)
77	$(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME)
78
79$(MSGDOMAIN):
80	$(INS.dir)
81
82$(LIBLINKS):	FRC
83	$(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
84
85# include library targets
86include $(SRC)/cmd/picl/plugins/Makefile.targ
87include $(SRC)/lib/Makefile.targ
88
89lint :
90
91$(SUBDIRS): FRC
92	@cd $@; pwd; $(MAKE) $(TARGET)
93
94FRC:
95