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 2015 Gary Mills
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 $(PROG): objs .WAIT $(POBJS)
29 $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
32 # conditional assignment of default permissions for the installed
33 # DYNLIB/DYNLIBCCC. Set here and in Makefile.mach, instead of Makefile.lib,
34 # because ROOTLIBDIR may be changed in the including makefile after it has
35 # included Makefile.lib.
37 $(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
38 $(ROOTLIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
40 $(ROOTLIBDIR64)/$(DYNLIB) := FILEMODE= 755
41 $(ROOTLIBDIR64)/$(DYNLIBCCC) := FILEMODE= 755
43 # library install rules
49 $(ROOTLIBDIR)/$(LIBLINKS): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
51 $(ROOTLIBDIR64)/$(LIBLINKS): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
54 $(ROOTLIBDIR)/$(LIBLINKSCCC): $(ROOTLIBDIR)/$(LIBLINKSCCC)$(VERS)
56 $(ROOTLIBDIR64)/$(LIBLINKSCCC): $(ROOTLIBDIR64)/$(LIBLINKSCCC)$(VERS)
62 $(LIBRARY): objs .WAIT $$(OBJS)
66 $(DYNLIB): pics .WAIT $$(PICS)
70 $(DYNLIBCCC): pics .WAIT $$(PICS)
74 objs/%_w.o pics/%_w.o objs/%_e.o pics/%_e.o: ../common/%.c
78 objs/%.o pics/%.o: ../common/%.c
82 # install rule for lint library target
83 $(ROOTLINTDIR)/%: ../common/%
86 $(DYNLINKLIBDIR)/%: %$(VERS)
90 $(RM) $(POBJS) $(OBJS) $(PICS) $(CLEANFILES)
93 $(LINT.c) -o $(LIBNAME) $(SRCS) > $(LINTOUT) 2>&1
96 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS)