2N/A# The contents of this file are subject to the terms of the 2N/A# Common Development and Distribution License (the "License"). 2N/A# You may not use this file except in compliance with the License. 2N/A# See the License for the specific language governing permissions 2N/A# and limitations under the License. 2N/A# When distributing Covered Code, include this CDDL HEADER in each 2N/A# If applicable, add the following below this CDDL HEADER, with the 2N/A# fields enclosed by brackets "[]" replaced with your own identifying 2N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2N/A# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A# The build process for libdisasm is sightly different from that used by other 2N/A# libraries, because libdisasm must be built in two flavors - as a standalone 2N/A# for use by kmdb and as a normal library. We use $(CURTYPE) to indicate the 2N/A# current flavor being built. 2N/A# The SPARC library is built from the closed gate. This Makefile is shared 2N/A# between both environments, so all paths must be absolute. 2N/A# By default, we build the shared library. Construction of the standalone 2N/A# is specifically requested by architecture-specific Makefiles. 2N/A# Architecture-dependent files common to both versions of libdisasm 2N/A# Architecture-independent files common to both version of libdisasm 2N/A# Used to verify that the standalone doesn't have any unexpected external 2N/A# We want the thread-specific errno in the library, but we don't want it in 2N/A# the standalone. $(DTS_ERRNO) is designed to add -D_TS_ERRNO to $(CPPFLAGS), 2N/A# in order to enable this feature. Conveniently, -D_REENTRANT does the same 2N/A# thing. As such, we null out $(DTS_ERRNO) to ensure that the standalone 2N/A# We need to rename some standard functions so we can easily implement them