xref: /titanic_52/usr/src/uts/intel/nge/Makefile (revision 6f3e57ac9d0b054c3169579f3422080b8ba10105)
1*6f3e57acSmx205022#
2*6f3e57acSmx205022# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
3*6f3e57acSmx205022# Use is subject to license terms.
4*6f3e57acSmx205022#
5*6f3e57acSmx205022# This file may contain confidential information of Nvidia
6*6f3e57acSmx205022# and should not be distributed in source form without approval
7*6f3e57acSmx205022# from Sun Legal.
8*6f3e57acSmx205022#
9*6f3e57acSmx205022#ident	"%Z%%M%	%I%	%E% SMI"
10*6f3e57acSmx205022#
11*6f3e57acSmx205022#	This makefile drives the production of the nvidia toe/ge
12*6f3e57acSmx205022#	driver.
13*6f3e57acSmx205022#
14*6f3e57acSmx205022
15*6f3e57acSmx205022#
16*6f3e57acSmx205022#	Path to the base of the uts directory tree (usually /usr/src/uts).
17*6f3e57acSmx205022#
18*6f3e57acSmx205022UTSBASE   = ../..
19*6f3e57acSmx205022
20*6f3e57acSmx205022#
21*6f3e57acSmx205022#	Define the module and object file sets.
22*6f3e57acSmx205022#
23*6f3e57acSmx205022MODULE		= nge
24*6f3e57acSmx205022OBJECTS		= $(NGE_OBJS:%=$(OBJS_DIR)/%)
25*6f3e57acSmx205022LINTS		= $(NGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
26*6f3e57acSmx205022ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
27*6f3e57acSmx205022CONF_SRCDIR     = $(UTSBASE)/common/io/nge
28*6f3e57acSmx205022
29*6f3e57acSmx205022#
30*6f3e57acSmx205022#	Include common rules.
31*6f3e57acSmx205022#
32*6f3e57acSmx205022include $(UTSBASE)/intel/Makefile.intel
33*6f3e57acSmx205022
34*6f3e57acSmx205022#
35*6f3e57acSmx205022#	Define targets
36*6f3e57acSmx205022#
37*6f3e57acSmx205022ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
38*6f3e57acSmx205022LINT_TARGET	= $(MODULE).lint
39*6f3e57acSmx205022INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
40*6f3e57acSmx205022
41*6f3e57acSmx205022#
42*6f3e57acSmx205022#	Override defaults
43*6f3e57acSmx205022#
44*6f3e57acSmx205022INC_PATH	+= -I$(CONF_SRCDIR)
45*6f3e57acSmx205022
46*6f3e57acSmx205022# CFLAGS += $(CINLINEFLAGS)
47*6f3e57acSmx205022
48*6f3e57acSmx205022#
49*6f3e57acSmx205022# Driver depends on GLD & IP
50*6f3e57acSmx205022#
51*6f3e57acSmx205022LDFLAGS		+= -dy -N misc/mac -N drv/ip
52*6f3e57acSmx205022
53*6f3e57acSmx205022#
54*6f3e57acSmx205022# For now, disable these lint checks; maintainers should endeavor
55*6f3e57acSmx205022# to investigate and remove these for maximum lint coverage.
56*6f3e57acSmx205022# Please do not carry these forward to new Makefiles.
57*6f3e57acSmx205022#
58*6f3e57acSmx205022LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
59*6f3e57acSmx205022LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
60*6f3e57acSmx205022LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
61*6f3e57acSmx205022LINTTAGS	+= -erroff=E_STATIC_UNUSED
62*6f3e57acSmx205022
63*6f3e57acSmx205022#
64*6f3e57acSmx205022#	Default build targets.
65*6f3e57acSmx205022#
66*6f3e57acSmx205022.KEEP_STATE:
67*6f3e57acSmx205022
68*6f3e57acSmx205022def:		$(DEF_DEPS)
69*6f3e57acSmx205022
70*6f3e57acSmx205022all:		$(ALL_DEPS)
71*6f3e57acSmx205022
72*6f3e57acSmx205022clean:		$(CLEAN_DEPS)
73*6f3e57acSmx205022
74*6f3e57acSmx205022clobber:	$(CLOBBER_DEPS)
75*6f3e57acSmx205022
76*6f3e57acSmx205022lint:		$(LINT_DEPS)
77*6f3e57acSmx205022
78*6f3e57acSmx205022modlintlib:	$(MODLINTLIB_DEPS)
79*6f3e57acSmx205022
80*6f3e57acSmx205022clean.lint:	$(CLEAN_LINT_DEPS)
81*6f3e57acSmx205022
82*6f3e57acSmx205022install:	$(INSTALL_DEPS)
83*6f3e57acSmx205022
84*6f3e57acSmx205022#
85*6f3e57acSmx205022#	Include common targets.
86*6f3e57acSmx205022#
87*6f3e57acSmx205022include $(UTSBASE)/intel/Makefile.targ
88