Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
17895aa4b66b8af02d8788b15cb92e1f6a8ecafcwrowe#
a2d4f1da4e19836b2d6a673f80f33381a926a8bddougm# CDDL HEADER START
82630c4a04be47f39298d3284b2c596244fb509bbrianp#
82630c4a04be47f39298d3284b2c596244fb509bbrianp# The contents of this file are subject to the terms of the
35d682920b0b7073bb9ff8c8794f0f73e3ee1a47slive# Common Development and Distribution License (the "License").
35d682920b0b7073bb9ff8c8794f0f73e3ee1a47slive# You may not use this file except in compliance with the License.
35d682920b0b7073bb9ff8c8794f0f73e3ee1a47slive#
a2d4f1da4e19836b2d6a673f80f33381a926a8bddougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a2d4f1da4e19836b2d6a673f80f33381a926a8bddougm# or http://www.opensolaris.org/os/licensing.
a2d4f1da4e19836b2d6a673f80f33381a926a8bddougm# See the License for the specific language governing permissions
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard# and limitations under the License.
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard#
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard# When distributing Covered Code, include this CDDL HEADER in each
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard# If applicable, add the following below this CDDL HEADER, with the
17895aa4b66b8af02d8788b15cb92e1f6a8ecafcwrowe# fields enclosed by brackets "[]" replaced with your own identifying
983988ac7b8faaf037f4df0ab29729cd047a3ffdtrawick# information: Portions Copyright [yyyy] [name of copyright owner]
983988ac7b8faaf037f4df0ab29729cd047a3ffdtrawick#
7a64b871b8b5e5a427b570e90f0e38e88266c783jim# CDDL HEADER END
7a64b871b8b5e5a427b570e90f0e38e88266c783jim#
7a64b871b8b5e5a427b570e90f0e38e88266c783jim#
7a64b871b8b5e5a427b570e90f0e38e88266c783jim# uts/sparc/c2audit/Makefile
17895aa4b66b8af02d8788b15cb92e1f6a8ecafcwrowe#
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
71f891073f6fa0209870791f64cbbf28d77ffdc1brianp# Use is subject to license terms.
a736bac16e58d5e96945f35ee3c43a2cd2f5d37ejerenkrantz# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
a736bac16e58d5e96945f35ee3c43a2cd2f5d37ejerenkrantz#
a736bac16e58d5e96945f35ee3c43a2cd2f5d37ejerenkrantz# This makefile drives the production of the c2audit driver kernel module.
797d596a95d4f9900e83ec18295b4ca4951bf763jerenkrantz#
797d596a95d4f9900e83ec18295b4ca4951bf763jerenkrantz# sparc architecture dependent
797d596a95d4f9900e83ec18295b4ca4951bf763jerenkrantz#
5842e6b336b1cc0252b6cc2944dd81c7d3a19a1bbrianp
5842e6b336b1cc0252b6cc2944dd81c7d3a19a1bbrianp#
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin# Path to the base of the uts directory tree (usually /usr/src/uts).
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin#
2532433e80d73506f7bcc18bd0dab686f1c39397minfrinUTSBASE = ../..
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin
c148bc6b4eea544af816783400362f741c5f5fc2trawick#
c148bc6b4eea544af816783400362f741c5f5fc2trawick# Define the module and object file sets.
c148bc6b4eea544af816783400362f741c5f5fc2trawick#
9d432e23f6025b78322cbee43e8e89262a108e5eaaronMODULE = c2audit
9d432e23f6025b78322cbee43e8e89262a108e5eaaronOBJECTS = $(C2AUDIT_OBJS:%=$(OBJS_DIR)/%)
9d432e23f6025b78322cbee43e8e89262a108e5eaaronLINTS = $(C2AUDIT_OBJS:%.o=$(LINTS_DIR)/%.ln)
9d432e23f6025b78322cbee43e8e89262a108e5eaaronROOTMODULE = $(ROOT_SYS_DIR)/$(MODULE)
9d432e23f6025b78322cbee43e8e89262a108e5eaaron
9d432e23f6025b78322cbee43e8e89262a108e5eaaron#
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# Include common rules.
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick#
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawickinclude $(UTSBASE)/sparc/Makefile.sparc
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin#
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin# Define targets
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin#
10306ac2c175f420e6989568f4c8535a5dbc1349minfrinALL_TARGET = $(BINARY)
b4e4d76bf454e1b603b410110356dbcf12f3bc42jimLINT_TARGET = $(MODULE).lint
b4e4d76bf454e1b603b410110356dbcf12f3bc42jimINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
b4e4d76bf454e1b603b410110356dbcf12f3bc42jim
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick#
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick# lint pass one enforcement
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick#
71f891073f6fa0209870791f64cbbf28d77ffdc1brianpCFLAGS += $(CCVERBOSE)
71f891073f6fa0209870791f64cbbf28d77ffdc1brianp
2864362ca8266097928e84f101010bdf814ffa08stoddard#
2864362ca8266097928e84f101010bdf814ffa08stoddard# Define dependency on sockfs
2864362ca8266097928e84f101010bdf814ffa08stoddard#
2864362ca8266097928e84f101010bdf814ffa08stoddardLDFLAGS += -dy -N fs/sockfs
2864362ca8266097928e84f101010bdf814ffa08stoddard
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawick#
893c106ae59d8e96d921524b123ae26dea8ad37fgstein# For now, disable these lint checks; maintainers should endeavor
893c106ae59d8e96d921524b123ae26dea8ad37fgstein# to investigate and remove these for maximum lint coverage.
893c106ae59d8e96d921524b123ae26dea8ad37fgstein# Please do not carry these forward to new Makefiles.
893c106ae59d8e96d921524b123ae26dea8ad37fgstein#
3aa6444bcee4e9fc32ec8860d832ff83a15784efianhLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
3aa6444bcee4e9fc32ec8860d832ff83a15784efianhLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
e2bdfd25d9d0461e0a3ab18ceff2113215e3e115brianpLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
e2bdfd25d9d0461e0a3ab18ceff2113215e3e115brianpLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
e2bdfd25d9d0461e0a3ab18ceff2113215e3e115brianp
b9fe73991e7c592a634242a7e11f924689f58e1fgstein#
b9fe73991e7c592a634242a7e11f924689f58e1fgstein# Default build targets.
b9fe73991e7c592a634242a7e11f924689f58e1fgstein#
b9fe73991e7c592a634242a7e11f924689f58e1fgstein.KEEP_STATE:
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawickdef: $(DEF_DEPS)
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawickall: $(ALL_DEPS)
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick
81b8d0f83e9d0bc2bf6900fc680737e0cac439a2brianpclean: $(CLEAN_DEPS)
81b8d0f83e9d0bc2bf6900fc680737e0cac439a2brianp
b5033962c73a470b6f36a3ac796c542a6ab4ddf6brianpclobber: $(CLOBBER_DEPS)
b5033962c73a470b6f36a3ac796c542a6ab4ddf6brianp
d7856f850b9b51165f23ae381a891bda894e1373ianhlint: $(LINT_DEPS)
d7856f850b9b51165f23ae381a891bda894e1373ianh
d7856f850b9b51165f23ae381a891bda894e1373ianhmodlintlib: $(MODLINTLIB_DEPS)
d7856f850b9b51165f23ae381a891bda894e1373ianh
d7856f850b9b51165f23ae381a891bda894e1373ianhclean.lint: $(CLEAN_LINT_DEPS)
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick
d75626f0952c6152a99acd013a4f127d46f0f9edtrawickinstall: $(INSTALL_DEPS)
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick#
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick# Include common targets.
ab2053f3cdda69cfa5e4ce0800ea7af203cc6d5ddougm#
ab2053f3cdda69cfa5e4ce0800ea7af203cc6d5ddougminclude $(UTSBASE)/sparc/Makefile.targ
ab2053f3cdda69cfa5e4ce0800ea7af203cc6d5ddougm