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