xref: /titanic_50/usr/src/lib/libscf/Makefile.com (revision 0e42dee69ed771bf604dd1789fca9d77b5bbe302)
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 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY =	libscf.a
30VERS =		.1
31
32OBJECTS = \
33	error.o			\
34	lowlevel.o		\
35	midlevel.o		\
36	scf_type.o
37
38include ../../Makefile.lib
39include ../../Makefile.rootfs
40
41LIBS =		$(DYNLIB) $(LINTLIB)
42
43$(NOT_NATIVE)NATIVE_BUILD = $(POUND_SIGN)
44$(NATIVE_BUILD)VERS =
45$(NATIVE_BUILD)LIBS = $(DYNLIB)
46
47$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
48LDLIBS +=	-luutil -lc
49
50SRCDIR =	../common
51MAPDIR =	../spec/$(TRANSMACH)
52SPECMAPFILE =	$(MAPDIR)/mapfile
53
54COMDIR =	../../../common/svc
55
56CFLAGS +=	-v -Wp,-xc99=%all
57CPPFLAGS +=	-I../inc -I../../common/inc -I$(COMDIR)
58
59#
60# For native builds, we compile and link against the native version
61# of libuutil.
62#
63LIBUUTIL =	$(SRC)/lib/libuutil
64MY_NATIVE_CPPFLAGS =\
65		-DNATIVE_BUILD $(DTEXTDOM) \
66		-I../inc -I$(COMDIR) -I$(LIBUUTIL)/common
67MY_NATIVE_LDLIBS = -L$(LIBUUTIL)/native -R$(LIBUUTIL)/native -luutil -ldoor -lc
68
69.KEEP_STATE:
70
71all:
72
73lint: lintcheck
74
75include ../../Makefile.targ
76