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) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
26 # included to define local library targets
29 # conditional assignment of default permissions for the installed
30 # DYNLIB/DYNLIBCCC. Set here and in Makefile.mach, instead of Makefile.lib,
31 # because ROOTLIBDIR may be changed in the including makefile after it has
32 # included Makefile.lib.
34 $(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
35 $(ROOTLIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
37 $(ROOTFS_LIBDIR)/$(DYNLIB) := FILEMODE= 755
38 $(ROOTFS_LIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
40 $(ROOTLIBDIR64)/$(DYNLIB) := FILEMODE= 755
41 $(ROOTLIBDIR64)/$(DYNLIBCCC) := FILEMODE= 755
43 # conditional assignment of default permissions for the installed headers
44 $(ROOTHDRS) := FILEMODE = 444
47 $(ROOTHDRDIR)/%: $(HDRDIR)/%
56 $(ROOTFS_LIBDIR64)/%: %
59 $(ROOTLIBDIR)/$(LIBLINKS): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
61 $(ROOTLIBDIR64)/$(LIBLINKS): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
64 $(ROOTLIBDIR)/$(LIBLINKSCCC): $(ROOTLIBDIR)/$(LIBLINKSCCC)$(VERS)
66 $(ROOTLIBDIR64)/$(LIBLINKSCCC): $(ROOTLIBDIR64)/$(LIBLINKSCCC)$(VERS)
71 $(ROOTDEMODIRBASE)/%: $(DEMOFILESRCDIR)/%
74 objs/%.o pics/%.o: $(SRCDIR)/%.c
78 objs/%.o pics/%.o: $(SRCDIR)/%.cc
79 $(COMPILE.cc) -o $@ $<
85 $(LIBRARY): objs .WAIT $$(OBJS)
89 $(DYNLIB): $$(MAPFILES)
91 $(DYNLIB): pics .WAIT $$(PICS) $$(ALTPICS) $$(EXTPICS)
95 $(DYNLIBCCC): pics .WAIT $$(PICS) $$(ALTPICS) $$(EXTPICS)
99 $(TYPECHECK): $(TYPECHECK_LIB32) $(TYPECHECK_LIB64)
103 -$(RM) $(CLOBBERTARGFILES)
107 -$(RM) $(PICS) $(DUPLICATE_SRC) $(CLEANFILES)