Print this page
    
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
    
      
        | Split | Close | 
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/lib/fm/topo/libtopo/Makefile.com
          +++ new/usr/src/lib/fm/topo/libtopo/Makefile.com
   1    1  #
   2    2  # CDDL HEADER START
   3    3  #
   4    4  # The contents of this file are subject to the terms of the
   5    5  # Common Development and Distribution License (the "License").
   6    6  # You may not use this file except in compliance with the License.
   7    7  #
   8    8  # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9  # or http://www.opensolaris.org/os/licensing.
  10   10  # See the License for the specific language governing permissions
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright (c) 2019, Joyent, Inc.
  24   24  #
  25   25  
  26   26  LIBRARY = libtopo.a
  27   27  VERS = .1
  28   28  
  29   29  BUILTINSRCS = \
  30   30          cpu.c \
  31   31          dev.c \
  32   32          fmd.c \
  33   33          hc.c \
  34   34          legacy_hc.c \
  35   35          mem.c \
  36   36          mod.c \
  37   37          pkg.c \
  38   38          svc.c \
  39   39          sw.c \
  40   40          zfs.c
  41   41  
  42   42  LIBSRCS = \
  43   43          topo_2xml.c \
  44   44          topo_alloc.c \
  45   45          topo_builtin.c \
  46   46          topo_error.c \
  47   47          topo_file.c \
  48   48          topo_fmri.c \
  49   49          topo_list.c \
  50   50          topo_method.c \
  51   51          topo_mod.c \
  52   52          topo_module.c \
  53   53          topo_node.c \
  54   54          topo_nvl.c \
  55   55          topo_parse.c \
  56   56          topo_prop.c \
  57   57          topo_protocol.c \
  58   58          topo_rtld.c \
  59   59          topo_snap.c \
  60   60          topo_string.c \
  61   61          topo_subr.c \
  62   62          topo_tables.c \
  63   63          topo_tree.c \
  64   64          topo_xml.c
  65   65  
  66   66  OBJECTS = $(BUILTINSRCS:%.c=%.o) $(LIBSRCS:%.c=%.o)
  67   67  
  68   68  include ../../../../Makefile.lib
  69   69  include ../../../Makefile.lib
  70   70  
  71   71  SRCS = $(BUILTINSRCS:%.c=../common/%.c) $(LIBSRCS:%.c=../common/%.c)
  72   72  LIBS = $(DYNLIB) $(LINTLIB)
  
    | ↓ open down ↓ | 72 lines elided | ↑ open up ↑ | 
  73   73  
  74   74  SRCDIR =        ../common
  75   75  
  76   76  CLEANFILES += $(SRCDIR)/topo_error.c $(SRCDIR)/topo_tables.c
  77   77  
  78   78  CPPFLAGS += -I../common -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I.
  79   79  CSTD = $(CSTD_GNU99)
  80   80  CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
  81   81  CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
  82   82  CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
  83      -CERRWARN += -_gcc=-Wno-uninitialized
       83 +CERRWARN += $(CNOWARN_UNINIT)
  84   84  CERRWARN += -_gcc=-Wno-switch
  85   85  CERRWARN += -_gcc=-Wno-parentheses
  86   86  
  87   87  LINTFLAGS = -msux
  88   88  LINTFLAGS64 = -msux -m64
  89   89  
  90   90  $(DYNLIB)  := LDLIBS += \
  91   91          -lnvpair -lelf -lumem -lxml2 -lkstat -luuid -ldevinfo \
  92   92          -lsmbios -lc -ldevid -lipmi -lscf -lpcidb
  93   93  
  94   94  $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
  95   95  $(LINTLIB) := LINTFLAGS = -nsvx
  96   96  $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
  97   97  $(LINTLIB) := LDLIBS += -lnvpair -lumem -lc
  98   98  
  99   99  .KEEP_STATE:
 100  100  
 101  101  all: $(LIBS)
 102  102  
 103  103  lint: $(LINTLIB) lintcheck
 104  104  
 105  105  pics/%.o: ../$(MACH)/%.c
 106  106          $(COMPILE.c) -o $@ $<
 107  107          $(POST_PROCESS_O)
 108  108  
 109  109  %.o: ../common/%.c
 110  110          $(COMPILE.c) -o $@ $<
 111  111          $(POST_PROCESS_O)
 112  112  
 113  113  ../common/topo_error.c: ../common/mkerror.sh ../common/topo_error.h
 114  114          sh ../common/mkerror.sh liberrors < ../common/topo_error.h > $@
 115  115          sh ../common/mkerror.sh properrors < ../common/libtopo.h >> $@
 116  116          sh ../common/mkerror.sh methoderrors < ../common/libtopo.h >> $@
 117  117          sh ../common/mkerror.sh fmrierrors < ../common/libtopo.h >> $@
 118  118          sh ../common/mkerror.sh hdlerrors < ../common/libtopo.h >> $@
 119  119          sh ../common/mkerror.sh moderrors < ../common/topo_mod.h >> $@
 120  120  
 121  121  $(SRCDIR)/topo_tables.c: $(SRCDIR)/mktables.sh $(SRCDIR)/libtopo.h
 122  122          sh $(SRCDIR)/mktables.sh $(SRCDIR)/libtopo.h > $@
 123  123  
 124  124  include ../../../../Makefile.targ
 125  125  include ../../../Makefile.targ
  
    | ↓ open down ↓ | 32 lines elided | ↑ open up ↑ | 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX