xref: /illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/Makefile (revision 2aeafac3612e19716bf8164f89c3c9196342979c)
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# Copyright 2020 Joyent, Inc.
27#
28LIBRARY=	libpiclmemcfg.a
29VERS=		.1
30
31OBJECTS=	piclmemcfg_comm.o
32
33# include library definitions
34include $(SRC)/lib/Makefile.lib
35
36include $(SRC)/cmd/picl/plugins/Makefile.com
37
38LIBS =		$(DYNLIB)
39
40ROOTLIBDIR =	$(USR_LIB_PLUGINDIR)
41
42CPPFLAGS +=	-I$(SRC)/uts/sun4u/sys -I$(SRC)/cmd/picl/plugins/common/memcfg
43CFLAGS +=	$(CCVERBOSE) $(C_PICFLAGS)
44
45LDLIBS +=	-lc -lpicltree -lnvpair
46
47CLOBBERFILES += $(LIBLINKS)
48
49.KEEP_STATE:
50
51SUBDIRS=
52
53all :=		TARGET= all
54install :=	TARGET= install
55clean :=	TARGET= clean
56clobber :=	TARGET= clobber
57_msg :=		TARGET= _msg
58
59POFILE=		piclmemcfg_comm.po
60
61all: $(LIBS) $(LIBLINKS)
62
63install:	$(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
64
65_msg:	$(MSGDOMAIN) $(POFILE)
66	$(RM) $(MSGDOMAIN)/$(POFILE)
67	$(CP) $(POFILE) $(MSGDOMAIN)
68
69$(MSGDOMAIN):
70	$(INS.dir)
71
72$(LIBLINKS):	FRC
73	$(RM) $@; $(SYMLINK) $(DYNLIB) $@
74
75# include library targets
76include $(SRC)/cmd/picl/plugins/Makefile.targ
77include $(SRC)/lib/Makefile.targ
78
79lint:
80
81$(SUBDIRS): FRC
82	@cd $@; pwd; $(MAKE) $(TARGET)
83
84FRC:
85