Makefile.com revision 24db46411fd54f70c35b94bb952eb7ba040e43b4
662N/A#
662N/A# CDDL HEADER START
662N/A#
662N/A# The contents of this file are subject to the terms of the
662N/A# Common Development and Distribution License (the "License").
662N/A# You may not use this file except in compliance with the License.
662N/A#
662N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
662N/A# or http://www.opensolaris.org/os/licensing.
662N/A# See the License for the specific language governing permissions
662N/A# and limitations under the License.
662N/A#
662N/A# When distributing Covered Code, include this CDDL HEADER in each
662N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
662N/A# If applicable, add the following below this CDDL HEADER, with the
662N/A# fields enclosed by brackets "[]" replaced with your own identifying
662N/A# information: Portions Copyright [yyyy] [name of copyright owner]
662N/A#
873N/A# CDDL HEADER END
662N/A#
662N/A#
662N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
662N/A# Use is subject to license terms.
662N/A#
733N/A# ident "%Z%%M% %I% %E% SMI"
662N/A#
662N/A
1970N/ALIBRARY = libtopo.a
662N/AVERS = .1
662N/A
662N/ABUILTINSRCS = \
662N/A cpu.c \
662N/A dev.c \
662N/A hc.c \
662N/A mem.c \
662N/A mod.c \
662N/A pkg.c
662N/A
662N/ALIBSRCS = \
662N/A topo_2xml.c \
662N/A topo_alloc.c \
662N/A topo_builtin.c \
662N/A topo_error.c \
662N/A topo_file.c \
662N/A topo_fmri.c \
662N/A topo_list.c \
662N/A topo_method.c \
662N/A topo_mod.c \
1970N/A topo_module.c \
662N/A topo_node.c \
662N/A topo_nvl.c \
662N/A topo_parse.c \
662N/A topo_prop.c \
662N/A topo_protocol.c \
662N/A topo_rtld.c \
662N/A topo_snap.c \
662N/A topo_string.c \
662N/A topo_subr.c \
662N/A topo_tree.c \
662N/A topo_xml.c
662N/A
662N/AOBJECTS = $(BUILTINSRCS:%.c=%.o) $(LIBSRCS:%.c=%.o)
662N/A
662N/Ainclude ../../../../Makefile.lib
662N/Ainclude ../../../Makefile.lib
662N/A
662N/ASRCS = $(BUILTINSRCS:%.c=../common/%.c) $(LIBSRCS:%.c=../common/%.c)
662N/ALIBS = $(DYNLIB) $(LINTLIB)
662N/A
662N/ASRCDIR = ../common
662N/A
662N/ACLEANFILES += ../common/topo_error.c
662N/A
662N/ACPPFLAGS += -I../common -I/usr/include/libxml2 -I.
662N/ACFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
662N/ACFLAGS += -D_POSIX_PTHREAD_SEMANTICS
662N/ACFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
662N/A
662N/ALINTFLAGS = -msux
662N/ALINTFLAGS64 = -msux -Xarch=$(MACH64:sparcv9=v9)
662N/A
662N/A$(DYNLIB) := LDLIBS += \
662N/A -lnvpair -lelf -lumem -lxml2 -lkstat -luuid -ldevinfo \
662N/A -lsmbios -lc -ldevid
662N/A
662N/A$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
662N/A$(LINTLIB) := LINTFLAGS = -nsvx
1970N/A$(LINTLIB) := LINTFLAGS64 = -nsvx -Xarch=$(MACH64:sparcv9=v9)
662N/A$(LINTLIB) := LDLIBS += -lnvpair -lumem -lc
662N/A
662N/A.KEEP_STATE:
662N/A
662N/Aall: $(LIBS)
662N/A
662N/Alint: $(LINTLIB) lintcheck
662N/A
662N/Apics/%.o: ../$(MACH)/%.c
662N/A $(COMPILE.c) -o $@ $<
662N/A $(POST_PROCESS_O)
662N/A
662N/A%.o: ../common/%.c
662N/A $(COMPILE.c) -o $@ $<
662N/A $(POST_PROCESS_O)
662N/A
662N/A../common/topo_error.c: ../common/mkerror.sh ../common/topo_error.h
662N/A sh ../common/mkerror.sh liberrors < ../common/topo_error.h > $@
662N/A sh ../common/mkerror.sh properrors < ../common/libtopo.h >> $@
662N/A sh ../common/mkerror.sh methoderrors < ../common/libtopo.h >> $@
662N/A sh ../common/mkerror.sh fmrierrors < ../common/libtopo.h >> $@
662N/A sh ../common/mkerror.sh hdlerrors < ../common/libtopo.h >> $@
662N/A sh ../common/mkerror.sh moderrors < ../common/topo_mod.h >> $@
662N/A
662N/Ainclude ../../../../Makefile.targ
662N/Ainclude ../../../Makefile.targ
662N/A