xref: /onnv-gate/usr/src/lib/efcode/Makefile.efcode (revision 2522:79989c8fe091)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*2522Sraf# Common Development and Distribution License (the "License").
6*2522Sraf# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*2522Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
27*2522Sraf
28*2522Sraf#
290Sstevel@tonic-gate# Common build rules for efcode shared objects.
300Sstevel@tonic-gate#
310Sstevel@tonic-gate# For historical reasons, these shared objects aren't explicitly versioned, so
320Sstevel@tonic-gate# turn off VERS and LIBLINKS (VERS must be cleared before the inclusion of
330Sstevel@tonic-gate# Makefile.lib, and LIBLINKS must be cleared afterwards).  Also, because of
340Sstevel@tonic-gate# the weird alternate naming scheme, we must define our own symlink macros.
350Sstevel@tonic-gate#
360Sstevel@tonic-gate
370Sstevel@tonic-gateVERS	=
380Sstevel@tonic-gate
390Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib
400Sstevel@tonic-gate
410Sstevel@tonic-gateLIBS	= $(DYNLIB)
420Sstevel@tonic-gateLDLIBS	+= -lc
430Sstevel@tonic-gateLIBLINKS =
440Sstevel@tonic-gate
45*2522SrafMAPFILES =
46*2522Sraf
470Sstevel@tonic-gateCPPFLAGS += -DDEBUG -DFCODE_INTERNAL
480Sstevel@tonic-gateCPPFLAGS += -I $(SRC)/lib/efcode/include -I $(ROOT)/usr/platform/sun4u/include
490Sstevel@tonic-gateDYNFLAGS += -R\$$ORIGIN
500Sstevel@tonic-gate
510Sstevel@tonic-gateEFCODE64DIR = /usr/lib/efcode/$(MACH64)
520Sstevel@tonic-gateROOTLIBDIR = $(ROOT)/usr/lib/efcode
530Sstevel@tonic-gateROOTLIBDIR64 = $(ROOT)/usr/lib/efcode/$(MACH64)
540Sstevel@tonic-gateROOTSYMLINKS64 = $(SYMLINKS:%=$(ROOTLIBDIR64)/%)
550Sstevel@tonic-gate
560Sstevel@tonic-gate#
570Sstevel@tonic-gate# Since a number of efcode shared objects depend on fcode.so, fcdriver.so, and
580Sstevel@tonic-gate# fcpackage.so, provide macros that expand to their full paths.
590Sstevel@tonic-gate#
600Sstevel@tonic-gateFCODE64 = $(ROOTLIBDIR64)/fcode.so
610Sstevel@tonic-gateFCDRIVER64 = $(ROOTLIBDIR64)/fcdriver.so
620Sstevel@tonic-gateFCPACKAGE64 = $(ROOTLIBDIR64)/fcpackage.so
630Sstevel@tonic-gate
640Sstevel@tonic-gate.KEEP_STATE:
650Sstevel@tonic-gate
660Sstevel@tonic-gateall: $(LIBS)
670Sstevel@tonic-gate
680Sstevel@tonic-gatelint: lintcheck
690Sstevel@tonic-gate
700Sstevel@tonic-gate$(ROOTSYMLINKS64): $(ROOTLIBDIR64)/$(DYNLIB)
710Sstevel@tonic-gate	-$(RM) $@; $(SYMLINK) $(DYNLIB) $@
720Sstevel@tonic-gate
730Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
74