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.
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.
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]
22 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
65 OBJECTS = $(BUILTINSRCS:%.c=%.o) $(LIBSRCS:%.c=%.o)
67 include ../../../../Makefile.lib
68 include ../../../Makefile.lib
70 SRCS = $(BUILTINSRCS:%.c=../common/%.c) $(LIBSRCS:%.c=../common/%.c)
75 CLEANFILES += $(SRCDIR)/topo_error.c $(SRCDIR)/topo_tables.c
77 CPPFLAGS += -I../common -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I.
78 CFLAGS += $(C_BIGPICFLAGS)
79 CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
80 CFLAGS64 += $(C_BIGPICFLAGS)
81 CERRWARN += -Wno-uninitialized
82 CERRWARN += -Wno-switch
83 CERRWARN += -Wno-parentheses
86 $(DYNLIB) := LDLIBS += \
87 -lnvpair -lelf -lumem -lxml2 -lkstat -luuid -ldevinfo \
88 -lsmbios -lc -ldevid -lipmi -lscf
96 pics/%.o: ../$(MACH)/%.c
101 $(COMPILE.c) -o $@ $<
104 ../common/topo_error.c: ../common/mkerror.sh ../common/topo_error.h
105 sh ../common/mkerror.sh liberrors < ../common/topo_error.h > $@
106 sh ../common/mkerror.sh properrors < ../common/libtopo.h >> $@
107 sh ../common/mkerror.sh methoderrors < ../common/libtopo.h >> $@
108 sh ../common/mkerror.sh fmrierrors < ../common/libtopo.h >> $@
109 sh ../common/mkerror.sh hdlerrors < ../common/libtopo.h >> $@
110 sh ../common/mkerror.sh moderrors < ../common/topo_mod.h >> $@
112 $(SRCDIR)/topo_tables.c: $(SRCDIR)/mktables.sh $(SRCDIR)/libtopo.h
113 sh $(SRCDIR)/mktables.sh $(SRCDIR)/libtopo.h > $@
115 include ../../../../Makefile.targ
116 include ../../../Makefile.targ