xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/Makefile (revision 6a817834d81cc75ce12d0d393320837b1fec1e85)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24# Copyright 2019 Peter Tribble.
25#
26
27include		$(SRC)/Makefile.psm
28
29LIBRARY=	libpiclmemcfg.a
30VERS=		.1
31
32OBJECTS=	piclmemcfg.o
33
34# include library definitions
35include	$(SRC)/lib/Makefile.lib
36
37ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Blade-100
38
39include	$(SRC)/cmd/picl/plugins/Makefile.com
40
41SRCS=		$(OBJECTS:%.o=%.c)
42
43LIBS =		$(DYNLIB)
44
45ROOTLIBDIR	= $(ROOT_PLAT_PLUGINDIR)
46
47CPPFLAGS +=	-I$(SRC)/cmd/picl/plugins/common/memcfg
48CFLAGS +=	$(CCVERBOSE)
49LDLIBS +=	-L$(SRC)/lib/libpicltree/$(MACH)
50LDLIBS +=	-L$(SRC)/cmd/picl/plugins/common/devtree
51LDLIBS +=	-L$(ROOT)/usr/lib/picl/plugins
52LDLIBS +=	-lc -lpicltree -lpicldevtree
53LDLIBS +=	-R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
54
55PLATFORM=	SUNW,Sun-Blade-100
56
57.KEEP_STATE:
58
59SUBDIRS=
60
61all :=		TARGET= all
62install :=	TARGET= install
63clean :=	TARGET= clean
64clobber :=	TARGET= clobber
65_msg :=		TARGET= _msg
66
67POFILE=	piclmemcfg.po
68
69all: $(LIBS) $(LIBLINKS)
70
71install:	$(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
72
73_msg:	$(MSGDOMAIN) $(POFILE)
74	$(RM) $(MSGDOMAIN)/$(POFILE)
75	$(CP) $(POFILE) $(MSGDOMAIN)
76
77$(MSGDOMAIN):
78	$(INS.dir)
79
80$(LIBLINKS):	FRC
81	$(RM) $@; $(SYMLINK) $(DYNLIB) $@
82
83# include library targets
84include	$(SRC)/cmd/picl/plugins/Makefile.targ
85include	$(SRC)/lib/Makefile.targ
86
87lint :
88
89$(SUBDIRS): FRC
90	@cd $@; pwd; $(MAKE) $(TARGET)
91
92FRC:
93