xref: /titanic_41/usr/src/lib/librt/Makefile.com (revision 260921a4509dd7666c6613f413be409b66181642)
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 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/librt/Makefile.com
29
30LIBRARY=	librt.a
31VERS=		.1
32
33OBJECTS=	\
34	aio.o		\
35	clock_timer.o	\
36	fallocate.o	\
37	fdatasync.o	\
38	mqueue.o	\
39	pos4.o		\
40	pos4obj.o	\
41	sched.o		\
42	sem.o		\
43	shm.o		\
44	sigrt.o
45
46include ../../Makefile.lib
47include ../../Makefile.rootfs
48
49LIBS =		$(DYNLIB) $(LINTLIB)
50LDLIBS += 	-laio -lmd5 -lc
51$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
52
53SRCDIR=		../common
54MAPDIR=		../spec/$(TRANSMACH)
55SPECMAPFILE=	$(MAPDIR)/mapfile
56
57ROOTLINTDIR64=	$(ROOTLIBDIR64)
58ROOTLINKS64=    $(ROOTLIBDIR64)/$(LIBLINKS)
59
60CFLAGS	+=	$(CCVERBOSE)
61CPPFLAGS +=	-D_REENTRANT -I../../common/inc
62
63#
64# If and when somebody gets around to messaging this, CLOBBERFILE should not
65# be cleared (so that any .po file will be clobbered.
66#
67CLOBBERFILES=	test
68
69.KEEP_STATE:
70
71all: $(LIBS) fnamecheck
72
73lint: lintcheck
74
75# install rule for 64 bit lint library target
76$(ROOTLINTDIR64)/%.ln:	%.ln
77	$(INS.file)
78	cd $(ROOTLINTDIR64); \
79		$(RM) llib-lposix4.ln ; \
80		$(SYMLINK) ./llib-lrt.ln llib-lposix4.ln ;
81
82# install rule for lint library target
83$(ROOTLINTDIR)/%.ln:	%.ln
84	$(INS.file)
85	cd $(ROOTLINTDIR); \
86		$(RM) llib-lposix4 ; \
87		$(SYMLINK) ./llib-lrt llib-lposix4 ; \
88		$(RM) llib-lposix4.ln ; \
89		$(SYMLINK) ./llib-lrt.ln llib-lposix4.ln ;
90
91include ../../Makefile.targ
92
93# install rules for 32-bit librt.so in /usr/lib
94$(ROOTLINKS) := INS.liblink= \
95	$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@; \
96		cd $(ROOTLIBDIR); \
97		$(RM)  libposix4.so$(VERS) libposix4.so; \
98		$(SYMLINK) librt.so$(VERS) libposix4.so$(VERS); \
99		$(SYMLINK) libposix4.so$(VERS) libposix4.so;
100
101# install rules for 64-bit librt.so in /usr/lib/sparcv9
102$(ROOTLIBDIR64)/$(LIBLINKS) := INS.liblink64 = \
103	-$(RM) $@; \
104	cd $(ROOTLIBDIR64); \
105	$(RM) libposix4.so$(VERS) libposix4.so ; \
106	$(SYMLINK) $(LIBLINKS)$(VERS) $(LIBLINKS); \
107	$(SYMLINK) librt.so$(VERS) libposix4.so$(VERS); \
108	$(SYMLINK) libposix4.so$(VERS) libposix4.so
109
110