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 INC_PATH        += -I$(SRC)/common/acpica/include
  28 
  29 #
  30 #       Include common rules.
  31 #
  32 include $(UTSBASE)/intel/Makefile.intel
  33 
  34 #
  35 #       Define targets
  36 #
  37 ALL_TARGET      = $(BINARY) $(CONFMOD)
  38 LINT_TARGET     = $(MODULE).lint
  39 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  40 
  41 #
  42 #       Overrides.
  43 #
  44 DEBUG_DEFS      += $(DEBUG_FLGS)
  45 
  46 #
  47 # lint pass one non-enforcement
  48 #
  49 CFLAGS          += $(CCVERBOSE) -DACPI_USE_LOCAL_CACHE
  50 
  51 #
  52 # 3rd party code is not lint clean
  53 #
  54 LINTFLAGS       += -errchk=%none
  55 LINTFLAGS       += -errhdr=%none
  56 LINTFLAGS       += -erroff=%all
  57 LINTFLAGS       += -errwarn=%none
  58 
  59 CERRWARN        += -_cc=-erroff=E_STATEMENT_NOT_REACHED
  60 
  61 CERRWARN        += -_gcc=-Wno-unused-variable
  62 CERRWARN        += -_gcc=-Wno-parentheses
  63 CERRWARN        += -_gcc=-Wno-uninitialized
  64 
  65 #
  66 #       Default build targets.
  67 #
  68 .KEEP_STATE:
  69 
  70 def:            $(DEF_DEPS)
  71 
  72 all:            $(ALL_DEPS)
  73 
  74 clean:          $(CLEAN_DEPS)
  75 
  76 clobber:        $(CLOBBER_DEPS)
  77 
  78 lint:           $(LINT_DEPS)
  79 
  80 modlintlib:     $(MODLINTLIB_DEPS)
  81 
  82 clean.lint:     $(CLEAN_LINT_DEPS)
  83 
  84 install:        $(INSTALL_DEPS)
  85 
  86 #
  87 #       Include common targets.
  88 #
  89 include $(UTSBASE)/intel/Makefile.targ