Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan#
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# CDDL HEADER START
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan#
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# The contents of this file are subject to the terms of the
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# Common Development and Distribution License (the "License").
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# You may not use this file except in compliance with the License.
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan#
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# or http://www.opensolaris.org/os/licensing.
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# See the License for the specific language governing permissions
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# and limitations under the License.
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan#
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# When distributing Covered Code, include this CDDL HEADER in each
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# If applicable, add the following below this CDDL HEADER, with the
0b03f6a75c899702be840c5d00531d234bcb0810Dirk Hogan# fields enclosed by brackets "[]" replaced with your own identifying
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan# information: Portions Copyright [yyyy] [name of copyright owner]
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan#
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan# CDDL HEADER END
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts#
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts#
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts# Use is subject to license terms.
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan#
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan#
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan# Path to the base of the uts directory tree (usually /usr/src/uts).
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperUTSBASE = ../..
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper# Define the module and object file sets.
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperMODULE = dcam1394
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperOBJECTS = $(DCAM1394_OBJS:%=$(OBJS_DIR)/%)
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperLINTS = $(DCAM1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper# Include common rules.
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpottsinclude $(UTSBASE)/intel/Makefile.intel
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts
823e51c0030fd4707670a6fd76d09f40c521900bJames Phillpotts#
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan# Define targets
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperALL_TARGET = $(BINARY)
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperLINT_TARGET = $(MODULE).lint
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper# lint pass one enforcement
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperCFLAGS += $(CCVERBOSE)
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper# depends on misc/s1394
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperLDFLAGS += -dy -Nmisc/s1394
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper# For now, disable these lint checks; maintainers should endeavor
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper# to investigate and remove these for maximum lint coverage.
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper# Please do not carry these forward to new Makefiles.
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de Reeper#
c5b9e284d8f496e320459da77cabdd794da7b3d8Mark de ReeperLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk Hogan
f38706c3921a6bb47ba4bbe177d1a7da432368e1Dirk HoganCERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ