Print this page
10077 usr/src/uts/ Makefile changes for smatch
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
  14 #

  15 
  16 UTSBASE         = ../..
  17 
  18 MODULE          = sfxge
  19 OBJECTS         = $(SFXGE_OBJS:%=$(OBJS_DIR)/%)
  20 OBJECTS         += $(SFXGE_SF_OBJS:%=$(OBJS_DIR)/%)
  21 LINTS           = $(SFXGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
  22 LINTS           += $(SFXGE_SF_OBJS:%.o=$(LINTS_DIR)/%.ln)
  23 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  24 
  25 include $(UTSBASE)/intel/Makefile.intel
  26 
  27 #
  28 # Targets
  29 #
  30 ALL_TARGET      = $(BINARY)
  31 LINT_TARGET     = $(MODULE).lint
  32 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  33 
  34 #
  35 # Overrides
  36 #
  37 
  38 INC_PATH += -I$(UTSBASE)/common/io/sfxge -I$(UTSBASE)/common/io/sfxge/common
  39 
  40 #
  41 # TODO:
  42 # These are specific to this driver.  We will unidef these out later.
  43 # Some of them need further cleanup as well (e.g. we shouldn't bother with
  44 # supporting NDD directly.)
  45 #
  46 CPPFLAGS += -U_USE_MTU_UPDATE
  47 
  48 CFLAGS += $(CCVERBOSE)
  49 
  50 #
  51 # Driver depends on GLDv3 (mac)
  52 #
  53 LDFLAGS         += -dy -N misc/mac
  54 




  55 #
  56 # Default build targets.
  57 #
  58 .KEEP_STATE:
  59 
  60 def:            $(DEF_DEPS)
  61 
  62 all:            $(ALL_DEPS)
  63 
  64 clean:          $(CLEAN_DEPS)
  65 
  66 clobber:        $(CLOBBER_DEPS)
  67 
  68 lint:           $(LINT_DEPS)
  69 
  70 modlintlib:     $(MODLINTLIB_DEPS)
  71 
  72 clean.lint:     $(CLEAN_LINT_DEPS)
  73 
  74 install:        $(INSTALL_DEPS)
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
  14 #
  15 # Copyright (c) 2018, Joyent, Inc.
  16 
  17 UTSBASE         = ../..
  18 
  19 MODULE          = sfxge
  20 OBJECTS         = $(SFXGE_OBJS:%=$(OBJS_DIR)/%)
  21 OBJECTS         += $(SFXGE_SF_OBJS:%=$(OBJS_DIR)/%)
  22 LINTS           = $(SFXGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
  23 LINTS           += $(SFXGE_SF_OBJS:%.o=$(LINTS_DIR)/%.ln)
  24 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  25 
  26 include $(UTSBASE)/intel/Makefile.intel
  27 
  28 #
  29 # Targets
  30 #
  31 ALL_TARGET      = $(BINARY)
  32 LINT_TARGET     = $(MODULE).lint
  33 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  34 
  35 #
  36 # Overrides
  37 #
  38 
  39 INC_PATH += -I$(UTSBASE)/common/io/sfxge -I$(UTSBASE)/common/io/sfxge/common
  40 
  41 #
  42 # TODO:
  43 # These are specific to this driver.  We will unidef these out later.
  44 # Some of them need further cleanup as well (e.g. we shouldn't bother with
  45 # supporting NDD directly.)
  46 #
  47 CPPFLAGS += -U_USE_MTU_UPDATE
  48 
  49 CFLAGS += $(CCVERBOSE)
  50 
  51 #
  52 # Driver depends on GLDv3 (mac)
  53 #
  54 LDFLAGS         += -dy -N misc/mac
  55 
  56 # needs work
  57 $(OBJS_DIR)/sfxge_ev.o := SMOFF += index_overflow
  58 SMOFF += all_func_returns
  59 
  60 #
  61 # Default build targets.
  62 #
  63 .KEEP_STATE:
  64 
  65 def:            $(DEF_DEPS)
  66 
  67 all:            $(ALL_DEPS)
  68 
  69 clean:          $(CLEAN_DEPS)
  70 
  71 clobber:        $(CLOBBER_DEPS)
  72 
  73 lint:           $(LINT_DEPS)
  74 
  75 modlintlib:     $(MODLINTLIB_DEPS)
  76 
  77 clean.lint:     $(CLEAN_LINT_DEPS)
  78 
  79 install:        $(INSTALL_DEPS)