1 #
2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # Copyright 2016 Joyent, Inc.
6 #
7 #
8 # This makefile drives the production of the ACPI CA services
9 # kernel module.
10 #
11 # intel architecture dependent
12 #
13
14 #
15 # Path to the base of the uts directory tree (usually /usr/src/uts).
16 #
17 UTSBASE = ../..
18
19 #
20 # Define the module and object file sets.
21 #
22 MODULE = acpica
23 OBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
24 LINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
25 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
37 #
38 ALL_TARGET = $(BINARY) $(CONFMOD)
39 LINT_TARGET = $(MODULE).lint
40 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
41
42 #
43 # Overrides.
44 #
45 DEBUG_DEFS += $(DEBUG_FLGS)
46
47 #
48 # lint pass one non-enforcement
49 #
50 CFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
51
52 #
53 # 3rd party code is not lint clean
54 #
55 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
56
57 LINTFLAGS += -errchk=%none
58 LINTFLAGS += -errhdr=%none
59 LINTFLAGS += -erroff=%all
60 LINTFLAGS += -errwarn=%none
61
62 CERRWARN += -_gcc=-Wno-unused-variable
63 CERRWARN += -_gcc=-Wno-parentheses
64 CERRWARN += -_gcc=-Wno-uninitialized
65 CERRWARN += -_gcc=-Wno-unused-function
66
67 #
68 # Default build targets.
69 #
70 .KEEP_STATE:
71
72 def: $(DEF_DEPS)
73
74 all: $(ALL_DEPS)
75
76 clean: $(CLEAN_DEPS)
|
1 #
2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # Copyright (c) 2018, Joyent, Inc.
6 #
7 #
8 # This makefile drives the production of the ACPI CA services
9 # kernel module.
10 #
11 # intel architecture dependent
12 #
13
14 #
15 # Path to the base of the uts directory tree (usually /usr/src/uts).
16 #
17 UTSBASE = ../..
18
19 #
20 # Define the module and object file sets.
21 #
22 MODULE = acpica
23 OBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
24 LINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
25 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
37 #
38 ALL_TARGET = $(BINARY) $(CONFMOD)
39 LINT_TARGET = $(MODULE).lint
40 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
41
42 #
43 # Overrides.
44 #
45 DEBUG_DEFS += $(DEBUG_FLGS)
46
47 #
48 # lint pass one non-enforcement
49 #
50 CFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
51
52 #
53 # 3rd party code is not lint clean
54 #
55 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
56
57 SMOFF += all_func_returns
58
59 LINTFLAGS += -errchk=%none
60 LINTFLAGS += -errhdr=%none
61 LINTFLAGS += -erroff=%all
62 LINTFLAGS += -errwarn=%none
63
64 CERRWARN += -_gcc=-Wno-unused-variable
65 CERRWARN += -_gcc=-Wno-parentheses
66 CERRWARN += -_gcc=-Wno-uninitialized
67 CERRWARN += -_gcc=-Wno-unused-function
68
69 #
70 # Default build targets.
71 #
72 .KEEP_STATE:
73
74 def: $(DEF_DEPS)
75
76 all: $(ALL_DEPS)
77
78 clean: $(CLEAN_DEPS)
|