17c2fbfb3SApril Chin# 27c2fbfb3SApril Chin# CDDL HEADER START 37c2fbfb3SApril Chin# 47c2fbfb3SApril Chin# The contents of this file are subject to the terms of the 57c2fbfb3SApril Chin# Common Development and Distribution License (the "License"). 67c2fbfb3SApril Chin# You may not use this file except in compliance with the License. 77c2fbfb3SApril Chin# 87c2fbfb3SApril Chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c2fbfb3SApril Chin# or http://www.opensolaris.org/os/licensing. 107c2fbfb3SApril Chin# See the License for the specific language governing permissions 117c2fbfb3SApril Chin# and limitations under the License. 127c2fbfb3SApril Chin# 137c2fbfb3SApril Chin# When distributing Covered Code, include this CDDL HEADER in each 147c2fbfb3SApril Chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c2fbfb3SApril Chin# If applicable, add the following below this CDDL HEADER, with the 167c2fbfb3SApril Chin# fields enclosed by brackets "[]" replaced with your own identifying 177c2fbfb3SApril Chin# information: Portions Copyright [yyyy] [name of copyright owner] 187c2fbfb3SApril Chin# 197c2fbfb3SApril Chin# CDDL HEADER END 207c2fbfb3SApril Chin# 217c2fbfb3SApril Chin 227c2fbfb3SApril Chin# 237c2fbfb3SApril Chin# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 247c2fbfb3SApril Chin# Use is subject to license terms. 257c2fbfb3SApril Chin# 267c2fbfb3SApril Chin 277c2fbfb3SApril Chin# This makefile drives the production of the shbinexec (shell binary (ksh93)) 287c2fbfb3SApril Chin# exec kernel module. 297c2fbfb3SApril Chin# 307c2fbfb3SApril Chin# intel architecture dependent 317c2fbfb3SApril Chin# 327c2fbfb3SApril Chin 337c2fbfb3SApril Chin# 347c2fbfb3SApril Chin# Path to the base of the uts directory tree (usually /usr/src/uts). 357c2fbfb3SApril Chin# 367c2fbfb3SApril ChinUTSBASE = ../.. 377c2fbfb3SApril Chin 387c2fbfb3SApril Chin# 397c2fbfb3SApril Chin# Define the module and object file sets. 407c2fbfb3SApril Chin# 417c2fbfb3SApril ChinMODULE = shbinexec 427c2fbfb3SApril ChinOBJECTS = $(SHBINEXEC_OBJS:%=$(OBJS_DIR)/%) 437c2fbfb3SApril ChinLINTS = $(SHBINEXEC_OBJS:%.o=$(LINTS_DIR)/%.ln) 447c2fbfb3SApril ChinROOTMODULE = $(USR_EXEC_DIR)/$(MODULE) 457c2fbfb3SApril Chin 467c2fbfb3SApril Chin# 477c2fbfb3SApril Chin# Include common rules. 487c2fbfb3SApril Chin# 497c2fbfb3SApril Chininclude $(UTSBASE)/intel/Makefile.intel 507c2fbfb3SApril Chin 51*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 52*7014882cSRichard Lowe 537c2fbfb3SApril Chin# 547c2fbfb3SApril Chin# Define targets 557c2fbfb3SApril Chin# 567c2fbfb3SApril ChinALL_TARGET = $(BINARY) 577c2fbfb3SApril ChinLINT_TARGET = $(MODULE).lint 587c2fbfb3SApril ChinINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 597c2fbfb3SApril Chin 607c2fbfb3SApril Chin# 617c2fbfb3SApril Chin# Default build targets. 627c2fbfb3SApril Chin# 637c2fbfb3SApril Chin.KEEP_STATE: 647c2fbfb3SApril Chin 657c2fbfb3SApril Chindef: $(DEF_DEPS) 667c2fbfb3SApril Chin 677c2fbfb3SApril Chinall: $(ALL_DEPS) 687c2fbfb3SApril Chin 697c2fbfb3SApril Chinclean: $(CLEAN_DEPS) 707c2fbfb3SApril Chin 717c2fbfb3SApril Chinclobber: $(CLOBBER_DEPS) 727c2fbfb3SApril Chin 737c2fbfb3SApril Chinlint: $(LINT_DEPS) 747c2fbfb3SApril Chin 757c2fbfb3SApril Chinmodlintlib: $(MODLINTLIB_DEPS) 767c2fbfb3SApril Chin 777c2fbfb3SApril Chinclean.lint: $(CLEAN_LINT_DEPS) 787c2fbfb3SApril Chin 797c2fbfb3SApril Chininstall: $(INSTALL_DEPS) 807c2fbfb3SApril Chin 817c2fbfb3SApril Chin# 827c2fbfb3SApril Chin# Include common targets. 837c2fbfb3SApril Chin# 847c2fbfb3SApril Chininclude $(UTSBASE)/intel/Makefile.targ 85