xref: /titanic_51/usr/src/lib/libbc/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libbc/Makefile
29#
30LIBRARY= libc.a
31VERS= .1.9
32
33# include common library definitions
34include ../Makefile.lib
35
36C99MODE=	$(C99_DISABLE)
37
38# the bcp libraries go in /usr/4lib. override ROOTLIBDIR from ../Makefile.lib
39ROOTLIBDIR=     $(ROOT)/usr/4lib
40
41DYNLIBS5= libc.so.2.9
42
43#DYNLIBS5 is also defined in sparc/Makefile
44
45LIBS = $(DYNLIB) $(DYNLIBS5)
46
47# dynamic libraries should have executable file mode
48FILEMODE= 755
49
50.KEEP_STATE:
51
52all clean clobber: links FRC
53	@cd $(MACH); pwd; $(MAKE) $@
54
55install: links $(MACHLIBS) $(ROOTLIBS)
56
57#
58# NOTE:  all of these processor specific links have been hardcoded
59#        into this Makefile.  This is because the libbc library
60#     	 is for the Binary Compatiblity Package.  The BCP is
61#	 only relevent for Sun4 machines.  Future architectures will
62#	 not use this package!!!
63#
64links:
65	-$(RM) sparc/inc/machine
66	$(SYMLINK) sparc sparc/inc/machine
67	-$(RM) inc/include/machine
68	$(SYMLINK) sun4 inc/include/machine
69	-$(RM) mach
70	$(SYMLINK) sparc mach
71	-$(RM) sparc/inc/sun4
72	$(SYMLINK) sparc sparc/inc/sun4
73
74# include MACH-specific library targets
75include ../Makefile.mach
76