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 (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25 26LIBRARY = libscf.a 27VERS = .1 28 29OBJECTS = \ 30 error.o \ 31 lowlevel.o \ 32 midlevel.o \ 33 scf_tmpl.o \ 34 scf_type.o 35 36include ../../Makefile.lib 37include ../../Makefile.rootfs 38 39LIBS = $(DYNLIB) $(LINTLIB) 40 41$(NOT_NATIVE)NATIVE_BUILD = $(POUND_SIGN) 42$(NATIVE_BUILD)VERS = 43$(NATIVE_BUILD)LIBS = $(DYNLIB) 44 45LDLIBS += -luutil -lc -lgen 46 47SRCDIR = ../common 48$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 49 50COMDIR = ../../../common/svc 51 52CFLAGS += $(CCVERBOSE) -Wp,-xc99=%all 53CPPFLAGS += -I../inc -I../../common/inc -I$(COMDIR) 54 55# 56# For native builds, we compile and link against the native version 57# of libuutil. 58# 59LIBUUTIL = $(SRC)/lib/libuutil 60MY_NATIVE_CPPFLAGS =\ 61 -DNATIVE_BUILD $(DTEXTDOM) \ 62 -I../inc -I$(COMDIR) -I$(LIBUUTIL)/common 63MY_NATIVE_LDLIBS = -L$(LIBUUTIL)/native -R$(LIBUUTIL)/native -luutil -ldoor -lc \ 64 -lgen 65 66.KEEP_STATE: 67 68all: 69 70lint: lintcheck 71 72include ../../Makefile.targ 73