Makefile revision 8348:4137e18bfaf0
14887Schin# 24887Schin# CDDL HEADER START 34887Schin# 44887Schin# The contents of this file are subject to the terms of the 54887Schin# Common Development and Distribution License (the "License"). 612068SRoger.Faulkner@Oracle.COM# You may not use this file except in compliance with the License. 74887Schin# 84887Schin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 98462SApril.Chin@Sun.COM# or http://www.opensolaris.org/os/licensing. 104887Schin# See the License for the specific language governing permissions 114887Schin# and limitations under the License. 124887Schin# 134887Schin# When distributing Covered Code, include this CDDL HEADER in each 144887Schin# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154887Schin# If applicable, add the following below this CDDL HEADER, with the 164887Schin# fields enclosed by brackets "[]" replaced with your own identifying 174887Schin# information: Portions Copyright [yyyy] [name of copyright owner] 184887Schin# 194887Schin# CDDL HEADER END 204887Schin# 214887Schin# 224887Schin# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 234887Schin# Use is subject to license terms. 244887Schin 254887Schin# 264887Schin# This makefile drives the production of the nca driver 274887Schin# kernel module. 284887Schin# 294887Schin# sparc architecture dependent 304887Schin# 314887Schin 324887Schin# 334887Schin# Path to the base of the uts directory tree (usually /usr/src/uts). 344887Schin# 354887SchinUTSBASE = ../.. 364887Schin 374887Schin# 384887Schin# Define the module and object file sets. 394887Schin# 404887SchinMODULE = socksctp 414887SchinOBJECTS = $(SCTP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%) 424887SchinLINTS = $(SCTP_SOCK_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln) 434887SchinROOTMODULE = $(ROOT_SOCK_DIR)/$(MODULE) 444887Schin 454887Schin# 464887Schin# Include common rules. 474887Schin# 484887Schininclude $(UTSBASE)/sparc/Makefile.sparc 494887Schin 504887Schin# 514887Schin# Define targets 524887Schin# 534887SchinALL_TARGET = $(BINARY) 544887SchinLINT_TARGET = $(MODULE).lint 554887SchinINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 564887Schin 57# 58# lint pass one enforcement and OS version 59# 60CFLAGS += $(CCVERBOSE) 61 62LDFLAGS += -dy -Nfs/sockfs -Ndrv/ip 63 64# 65# For now, disable these lint checks; maintainers should endeavor 66# to investigate and remove these for maximum lint coverage. 67# Please do not carry these forward to new Makefiles. 68# 69LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 70LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 71 72# 73# Default build targets. 74# 75.KEEP_STATE: 76 77def: $(DEF_DEPS) 78 79all: $(ALL_DEPS) 80 81clean: $(CLEAN_DEPS) 82 83clobber: $(CLOBBER_DEPS) 84 85lint: $(LINT_DEPS) 86 87modlintlib: $(MODLINTLIB_DEPS) 88 89clean.lint: $(CLEAN_LINT_DEPS) 90 91install: $(INSTALL_DEPS) 92 93# 94# Include common targets. 95# 96include $(UTSBASE)/sparc/Makefile.targ 97