xref: /illumos-gate/usr/src/tools/svc/libscf/Makefile (revision 9b9d39d2a32ff806d2431dbcc50968ef1e6d46b2)
1*9b9d39d2SRichard Lowe#
2*9b9d39d2SRichard Lowe# CDDL HEADER START
3*9b9d39d2SRichard Lowe#
4*9b9d39d2SRichard Lowe# The contents of this file are subject to the terms of the
5*9b9d39d2SRichard Lowe# Common Development and Distribution License, Version 1.0 only
6*9b9d39d2SRichard Lowe# (the "License").  You may not use this file except in compliance
7*9b9d39d2SRichard Lowe# with the License.
8*9b9d39d2SRichard Lowe#
9*9b9d39d2SRichard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*9b9d39d2SRichard Lowe# or http://www.opensolaris.org/os/licensing.
11*9b9d39d2SRichard Lowe# See the License for the specific language governing permissions
12*9b9d39d2SRichard Lowe# and limitations under the License.
13*9b9d39d2SRichard Lowe#
14*9b9d39d2SRichard Lowe# When distributing Covered Code, include this CDDL HEADER in each
15*9b9d39d2SRichard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*9b9d39d2SRichard Lowe# If applicable, add the following below this CDDL HEADER, with the
17*9b9d39d2SRichard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
18*9b9d39d2SRichard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
19*9b9d39d2SRichard Lowe#
20*9b9d39d2SRichard Lowe# CDDL HEADER END
21*9b9d39d2SRichard Lowe#
22*9b9d39d2SRichard Lowe#
23*9b9d39d2SRichard Lowe# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*9b9d39d2SRichard Lowe# Use is subject to license terms.
25*9b9d39d2SRichard Lowe#
26*9b9d39d2SRichard Lowe
27*9b9d39d2SRichard Loweinclude $(SRC)/tools/Makefile.tools
28*9b9d39d2SRichard Loweinclude $(SRC)/lib/libscf/Makefile.shared.com
29*9b9d39d2SRichard Lowe
30*9b9d39d2SRichard LoweSRCDIR =	$(SRC)/lib/libscf/common
31*9b9d39d2SRichard LoweCOMDIR =	$(SRC)/common/svc
32*9b9d39d2SRichard LoweLIBUUTIL =	../libuutil
33*9b9d39d2SRichard Lowe
34*9b9d39d2SRichard LoweCPPFLAGS +=	-DNATIVE_BUILD $(DTEXTDOM) \
35*9b9d39d2SRichard Lowe		-I$(SRC)/lib/libscf/inc -I$(COMDIR) -I$(LIBUUTIL)/common
36*9b9d39d2SRichard LoweLDLIBS =	-R '$$ORIGIN/../../lib/$(MACH)' -L$(ROOTONBLDLIBMACH) \
37*9b9d39d2SRichard Lowe		-luutil -lc -lgen -lnvpair -lsmbios
38*9b9d39d2SRichard LoweNATIVE_LIBS +=	libsmbios.so libnvpair.so libgen.so libc.so
39*9b9d39d2SRichard Lowe
40*9b9d39d2SRichard Loweinclude $(SRC)/Makefile.native
41*9b9d39d2SRichard Lowe
42*9b9d39d2SRichard Lowe.KEEP_STATE:
43*9b9d39d2SRichard Lowe
44*9b9d39d2SRichard Loweall: $(LIBS)
45*9b9d39d2SRichard Lowe
46*9b9d39d2SRichard Loweinstall: all $(ROOTONBLDLIBMACH)/$(DYNLIB) $(ROOTONBLDLIBMACH)/$(LIBLINKS)
47*9b9d39d2SRichard Lowe
48*9b9d39d2SRichard Lowe$(ROOTONBLDLIBMACH)/$(DYNLIB): $(DYNLIB)
49*9b9d39d2SRichard Lowe	$(INS.file) $(DYNLIB)
50*9b9d39d2SRichard Lowe
51*9b9d39d2SRichard Lowe$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(DYNLIB)
52*9b9d39d2SRichard Lowe		@$(RM) $(ROOTONBLDLIBMACH)/$(LIBLINKS)
53*9b9d39d2SRichard Lowe		$(SYMLINK) $(DYNLIB) $(ROOTONBLDLIBMACH)/$(LIBLINKS)
54*9b9d39d2SRichard Lowe
55*9b9d39d2SRichard Loweinclude $(SRC)/lib/Makefile.targ
56