xref: /illumos-gate/usr/src/tools/svc/libscf/Makefile (revision f40f2f085cf8ecca831ce8866e47dcbe39fa3e7c)
19b9d39d2SRichard Lowe#
29b9d39d2SRichard Lowe# CDDL HEADER START
39b9d39d2SRichard Lowe#
49b9d39d2SRichard Lowe# The contents of this file are subject to the terms of the
59b9d39d2SRichard Lowe# Common Development and Distribution License, Version 1.0 only
69b9d39d2SRichard Lowe# (the "License").  You may not use this file except in compliance
79b9d39d2SRichard Lowe# with the License.
89b9d39d2SRichard Lowe#
99b9d39d2SRichard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
109b9d39d2SRichard Lowe# or http://www.opensolaris.org/os/licensing.
119b9d39d2SRichard Lowe# See the License for the specific language governing permissions
129b9d39d2SRichard Lowe# and limitations under the License.
139b9d39d2SRichard Lowe#
149b9d39d2SRichard Lowe# When distributing Covered Code, include this CDDL HEADER in each
159b9d39d2SRichard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
169b9d39d2SRichard Lowe# If applicable, add the following below this CDDL HEADER, with the
179b9d39d2SRichard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
189b9d39d2SRichard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
199b9d39d2SRichard Lowe#
209b9d39d2SRichard Lowe# CDDL HEADER END
219b9d39d2SRichard Lowe#
229b9d39d2SRichard Lowe#
239b9d39d2SRichard Lowe# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
249b9d39d2SRichard Lowe# Use is subject to license terms.
259b9d39d2SRichard Lowe#
269b9d39d2SRichard Lowe
279b9d39d2SRichard Loweinclude $(SRC)/tools/Makefile.tools
289b9d39d2SRichard Loweinclude $(SRC)/lib/libscf/Makefile.shared.com
299b9d39d2SRichard Lowe
309b9d39d2SRichard LoweSRCDIR =	$(SRC)/lib/libscf/common
319b9d39d2SRichard LoweCOMDIR =	$(SRC)/common/svc
32*f40f2f08SRichard LoweLIBUUTIL =	$(SRC)/lib/libuutil/
339b9d39d2SRichard Lowe
349b9d39d2SRichard LoweCPPFLAGS +=	-DNATIVE_BUILD $(DTEXTDOM) \
359b9d39d2SRichard Lowe		-I$(SRC)/lib/libscf/inc -I$(COMDIR) -I$(LIBUUTIL)/common
369b9d39d2SRichard LoweLDLIBS =	-R '$$ORIGIN/../../lib/$(MACH)' -L$(ROOTONBLDLIBMACH) \
379b9d39d2SRichard Lowe		-luutil -lc -lgen -lnvpair -lsmbios
389b9d39d2SRichard LoweNATIVE_LIBS +=	libsmbios.so libnvpair.so libgen.so libc.so
399b9d39d2SRichard Lowe
409b9d39d2SRichard Loweinclude $(SRC)/Makefile.native
419b9d39d2SRichard Lowe
429b9d39d2SRichard Lowe.KEEP_STATE:
439b9d39d2SRichard Lowe
449b9d39d2SRichard Loweall: $(LIBS)
459b9d39d2SRichard Lowe
469b9d39d2SRichard Loweinstall: all $(ROOTONBLDLIBMACH)/$(DYNLIB) $(ROOTONBLDLIBMACH)/$(LIBLINKS)
479b9d39d2SRichard Lowe
489b9d39d2SRichard Lowe$(ROOTONBLDLIBMACH)/$(DYNLIB): $(DYNLIB)
499b9d39d2SRichard Lowe	$(INS.file) $(DYNLIB)
509b9d39d2SRichard Lowe
519b9d39d2SRichard Lowe$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(DYNLIB)
529b9d39d2SRichard Lowe		@$(RM) $(ROOTONBLDLIBMACH)/$(LIBLINKS)
539b9d39d2SRichard Lowe		$(SYMLINK) $(DYNLIB) $(ROOTONBLDLIBMACH)/$(LIBLINKS)
549b9d39d2SRichard Lowe
559b9d39d2SRichard Loweinclude $(SRC)/lib/Makefile.targ
56