1 #
   2 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #
   5 #
   6 #       This makefile drives the production of the ACPI CA services
   7 #       kernel module.
   8 #
   9 #       intel architecture dependent
  10 #
  11 
  12 #
  13 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  14 #
  15 UTSBASE         = ../..
  16 
  17 #
  18 #       Define the module and object file sets.
  19 #
  20 MODULE          = acpica
  21 OBJECTS         = $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
  22 LINTS           = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
  23 ROOTMODULE      = $(ROOT_MISC_DIR)/$(MODULE)
  24 INC_PATH        += -I$(UTSBASE)/intel/sys/acpi
  25 INC_PATH        += -I$(UTSBASE)/i86pc
  26 INC_PATH        += -I$(SRC)/common
  27 
  28 #
  29 #       Include common rules.
  30 #
  31 include $(UTSBASE)/intel/Makefile.intel
  32 
  33 #
  34 #       Define targets
  35 #
  36 ALL_TARGET      = $(BINARY) $(CONFMOD)
  37 LINT_TARGET     = $(MODULE).lint
  38 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  39 
  40 #
  41 #       Overrides.
  42 #
  43 DEBUG_DEFS      += $(DEBUG_FLGS)
  44 
  45 #
  46 # lint pass one non-enforcement
  47 #
  48 CFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
  49 
  50 #
  51 # 3rd party code is not lint clean
  52 #
  53 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
  54 
  55 LINTFLAGS += -errchk=%none
  56 LINTFLAGS += -errhdr=%none
  57 LINTFLAGS += -erroff=%all
  58 LINTFLAGS += -errwarn=%none
  59 
  60 CERRWARN        += -_gcc=-Wno-unused-variable
  61 CERRWARN        += -_gcc=-Wno-parentheses
  62 CERRWARN        += -_gcc=-Wno-uninitialized
  63 
  64 #
  65 #       Default build targets.
  66 #
  67 .KEEP_STATE:
  68 
  69 def:            $(DEF_DEPS)
  70 
  71 all:            $(ALL_DEPS)
  72 
  73 clean:          $(CLEAN_DEPS)
  74 
  75 clobber:        $(CLOBBER_DEPS)
  76 
  77 lint:           $(LINT_DEPS)
  78 
  79 modlintlib:     $(MODLINTLIB_DEPS)
  80 
  81 clean.lint:     $(CLEAN_LINT_DEPS)
  82 
  83 install:        $(INSTALL_DEPS)
  84 
  85 #
  86 #       Include common targets.
  87 #
  88 include $(UTSBASE)/intel/Makefile.targ