Print this page
6117 Many small bugs prevent a clean build on SPARC


   2 # CDDL HEADER START
   3 #
   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.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #

  22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # ident "%Z%%M% %I%     %E% SMI"
  26 #
  27 
  28 $(PROG): objs .WAIT $(POBJS)
  29         $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
  30         $(POST_PROCESS)
  31 
  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.
  36 #
  37 $(ROOTLIBDIR)/$(DYNLIB) :=      FILEMODE= 755
  38 $(ROOTLIBDIR)/$(DYNLIBCCC) :=   FILEMODE= 755
  39 
  40 $(ROOTLIBDIR64)/$(DYNLIB) :=    FILEMODE= 755
  41 $(ROOTLIBDIR64)/$(DYNLIBCCC) := FILEMODE= 755
  42 
  43 # library install rules
  44 $(ROOTLIBDIR)/%: %
  45         $(INS.file)


  68         $(POST_PROCESS_SO)
  69 
  70 $(DYNLIBCCC): pics .WAIT $$(PICS)
  71         $(BUILDCCC.SO)
  72         $(POST_PROCESS_SO)
  73 
  74 objs/%.o pics/%.o:      ../common/%.c
  75         $(COMPILE.c) -o $@ $<
  76         $(POST_PROCESS_O)
  77 
  78 # install rule for lint library target
  79 $(ROOTLINTDIR)/%: ../common/%
  80         $(INS.file)
  81 
  82 $(DYNLINKLIBDIR)/%: %$(VERS)
  83         $(INS.liblink)
  84 
  85 clean:
  86                 $(RM) $(POBJS) $(OBJS) $(PICS) $(CLEANFILES)
  87 
  88 lint:           $(LINTPOUT) $(LINTLIB)

  89 


  90 
  91 LINT_HDR=       perl ../../tools/lint_hdr.pl
  92 
  93 $(LINTPOUT):    $(SRCS)
  94         $(LINT_HDR) $(PROG)                      > $(LINTPOUT)
  95         $(LINT_HDR) -s yacc                     >> $(LINTPOUT)
  96         $(LINT.c) $(COMSRCS) $(LDLIBS)          2>&1 | tee -a $(LINTPOUT)
  97 
  98         $(LINT_HDR) -s liby.so.1                >> $(LINTPOUT)
  99         $(LINT.c) $(LIBSRCS) $(LDLIBS)          2>&1 | tee -a $(LINTPOUT)
 100 
 101 
 102 $(LINTLIB):     $(LINTSRCS)
 103                 $(LINT.c) -o $(LIBNAME) $(LINTSRCS)


   2 # CDDL HEADER START
   3 #
   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.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2015 Gary Mills
  23 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #

  26 #
  27 
  28 $(PROG): objs .WAIT $(POBJS)
  29         $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
  30         $(POST_PROCESS)
  31 
  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.
  36 #
  37 $(ROOTLIBDIR)/$(DYNLIB) :=      FILEMODE= 755
  38 $(ROOTLIBDIR)/$(DYNLIBCCC) :=   FILEMODE= 755
  39 
  40 $(ROOTLIBDIR64)/$(DYNLIB) :=    FILEMODE= 755
  41 $(ROOTLIBDIR64)/$(DYNLIBCCC) := FILEMODE= 755
  42 
  43 # library install rules
  44 $(ROOTLIBDIR)/%: %
  45         $(INS.file)


  68         $(POST_PROCESS_SO)
  69 
  70 $(DYNLIBCCC): pics .WAIT $$(PICS)
  71         $(BUILDCCC.SO)
  72         $(POST_PROCESS_SO)
  73 
  74 objs/%.o pics/%.o:      ../common/%.c
  75         $(COMPILE.c) -o $@ $<
  76         $(POST_PROCESS_O)
  77 
  78 # install rule for lint library target
  79 $(ROOTLINTDIR)/%: ../common/%
  80         $(INS.file)
  81 
  82 $(DYNLINKLIBDIR)/%: %$(VERS)
  83         $(INS.liblink)
  84 
  85 clean:
  86                 $(RM) $(POBJS) $(OBJS) $(PICS) $(CLEANFILES)
  87 
  88 $(LINTLIB): $$(SRCS) 
  89         $(LINT.c) -o $(LIBNAME) $(SRCS) > $(LINTOUT) 2>&1 
  90 
  91 lintcheck: $$(SRCS)
  92         $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS)
  93