Unleashed v1.4
[unleashed.git] / usr / src / uts / intel / procfs / Makefile
blob41f80fb444a9f268709c0db9704f49340438d7c2
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # uts/intel/procfs/Makefile
24 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
27 # Copyright (c) 2018, Joyent, Inc.
30 # This makefile drives the production of the procfs file system
31 # kernel module.
33 # intel architecture dependent
37 # Path to the base of the uts directory tree (usually /usr/src/uts).
39 UTSBASE = ../..
42 # Define the module and object file sets.
44 MODULE = procfs
45 OBJECTS = $(PROC_OBJS:%=$(OBJS_DIR)/%)
46 ROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
49 # Include common rules.
51 include $(UTSBASE)/intel/Makefile.intel
54 # Define targets
56 ALL_TARGET = $(BINARY)
57 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
60 # Overrides.
62 MODSTUBS_DIR = $(OBJS_DIR)
63 $(MODSTUBS_O) := AS_CPPFLAGS += -DPROC_MODULE
64 CLEANFILES += $(MODSTUBS_O)
67 # For now, disable these compiler warnings; maintainers should endeavor to
68 # investigate and remove these for maximum coverage. Please do not carry
69 # these forward to new Makefiles.
72 CERRWARN += -Wno-parentheses
73 CERRWARN += -Wno-switch
74 CERRWARN += -Wno-uninitialized
76 # needs work
77 $(OBJS_DIR)/prsubr.o := SMOFF += all_func_returns
78 $(OBJS_DIR)/prcontrol.o := SMOFF += all_func_returns
79 $(OBJS_DIR)/prioctl.o := SMOFF += signed
81 # false positives
82 $(OBJS_DIR)/prvnops.o := SMOFF += strcpy_overflow
85 # Default build targets.
87 .KEEP_STATE:
89 def: $(DEF_DEPS)
91 all: $(ALL_DEPS)
93 clean: $(CLEAN_DEPS)
95 clobber: $(CLOBBER_DEPS)
97 install: $(INSTALL_DEPS)
100 # Include common targets.
102 include $(UTSBASE)/intel/Makefile.targ