xref: /illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/Makefile (revision b531f6d16eb39863e7bbc34773fb7ef7a282a0a2)
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
38SRCS=		$(OBJECTS:%.o=%.c)
39
40LIBS =		$(DYNLIB)
41
42ROOTLIBDIR =	$(USR_LIB_PLUGINDIR)
43
44CLEANFILES=	$(LINTOUT) $(LINTLIB)
45
46CPPFLAGS +=	-I$(SRC)/uts/sun4u/sys -I$(SRC)/cmd/picl/plugins/common/memcfg
47CFLAGS +=	$(CCVERBOSE) $(C_PICFLAGS)
48
49LDLIBS +=	-lc -lpicltree -lnvpair
50
51CLOBBERFILES += $(LIBLINKS)
52
53.KEEP_STATE:
54
55SUBDIRS=
56
57all :=		TARGET= all
58install :=	TARGET= install
59clean :=	TARGET= clean
60clobber :=	TARGET= clobber
61lint :=		TARGET= lint
62_msg :=		TARGET= _msg
63
64POFILE=		piclmemcfg_comm.po
65
66all: $(LIBS) $(LIBLINKS)
67
68install:	$(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
69
70_msg:	$(MSGDOMAIN) $(POFILE)
71	$(RM) $(MSGDOMAIN)/$(POFILE)
72	$(CP) $(POFILE) $(MSGDOMAIN)
73
74$(MSGDOMAIN):
75	$(INS.dir)
76
77$(LIBLINKS):	FRC
78	$(RM) $@; $(SYMLINK) $(DYNLIB) $@
79
80# include library targets
81include $(SRC)/cmd/picl/plugins/Makefile.targ
82include $(SRC)/lib/Makefile.targ
83
84lint :
85	$(LINT.c) $(SRCS)
86
87$(SUBDIRS): FRC
88	@cd $@; pwd; $(MAKE) $(TARGET)
89
90FRC:
91