8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / uts / intel / acpica / Makefile
bloba72d55bacb21e72fdbb263023b33a4686a0ff82e
2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # Copyright 2016 Joyent, Inc.
8 # This makefile drives the production of the ACPI CA services
9 # kernel module.
11 # intel architecture dependent
15 # Path to the base of the uts directory tree (usually /usr/src/uts).
17 UTSBASE = ../..
20 # Define the module and object file sets.
22 MODULE = acpica
23 OBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
24 LINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
25 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
26 INC_PATH += -I$(UTSBASE)/intel/sys/acpi
27 INC_PATH += -I$(UTSBASE)/i86pc
28 INC_PATH += -I$(SRC)/common
31 # Include common rules.
33 include $(UTSBASE)/intel/Makefile.intel
36 # Define targets
38 ALL_TARGET = $(BINARY) $(CONFMOD)
39 LINT_TARGET = $(MODULE).lint
40 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
43 # Overrides.
45 DEBUG_DEFS += $(DEBUG_FLGS)
48 # lint pass one non-enforcement
50 CFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
53 # 3rd party code is not lint clean
55 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
57 LINTFLAGS += -errchk=%none
58 LINTFLAGS += -errhdr=%none
59 LINTFLAGS += -erroff=%all
60 LINTFLAGS += -errwarn=%none
62 CERRWARN += -_gcc=-Wno-unused-variable
63 CERRWARN += -_gcc=-Wno-parentheses
64 CERRWARN += -_gcc=-Wno-uninitialized
65 CERRWARN += -_gcc=-Wno-unused-function
68 # Default build targets.
70 .KEEP_STATE:
72 def: $(DEF_DEPS)
74 all: $(ALL_DEPS)
76 clean: $(CLEAN_DEPS)
78 clobber: $(CLOBBER_DEPS)
80 lint: $(LINT_DEPS)
82 modlintlib: $(MODLINTLIB_DEPS)
84 clean.lint: $(CLEAN_LINT_DEPS)
86 install: $(INSTALL_DEPS)
89 # Include common targets.
91 include $(UTSBASE)/intel/Makefile.targ