xref: /titanic_51/usr/src/uts/intel/arcflush/Makefile (revision 110570ceb08d1961475cc4922fdf73e6ffc65924)
1#
2#	Path to the base of the uts directory tree (usually /usr/src/uts).
3#
4UTSBASE	= ../..
5
6ARCHDIR:sh = cd ..; basename `pwd`
7
8#
9#	Define the module and object file sets.
10#
11MODULE		= arcflush
12OBJECTS		= $(ARCFLUSH_OBJS:%=$(OBJS_DIR)/%)
13LINTS		= $(ARCFLUSH_OBJS:%.o=$(LINTS_DIR)/%.ln)
14ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
15CONF_SRCDIR	= $(UTSBASE)/common/fs/arcflush
16
17#
18#	Include common rules.
19#
20include ../Makefile.$(ARCHDIR)
21
22#
23#	Define targets
24#
25ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
26LINT_TARGET	= $(MODULE).lint
27INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
28
29#
30#	Overrides and depends_on
31#
32MODSTUBS_DIR	 = $(OBJS_DIR)
33LDFLAGS		+= -dy -Nzfs
34
35INC_PATH	+= -I$(UTSBASE)/common/fs/arcflush
36INC_PATH	+= -I$(UTSBASE)/common/fs/zfs
37INC_PATH	+= -I$(SRC)/common
38INC_PATH	+= -I$(COMMONBASE)/arcflush
39INC_PATH        += -I$(COMMONBASE)/zfs
40
41
42C99MODE=	-xc99=%all
43C99LMODE=	-Xc99=%all
44
45#
46# For now, disable these lint checks; maintainers should endeavor
47# to investigate and remove these for maximum lint coverage.
48# Please do not carry these forward to new Makefiles.
49#
50LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
51
52CERRWARN	+= -_gcc=-Wno-parentheses
53CERRWARN	+= -_gcc=-Wno-uninitialized
54
55#
56#	Default build targets.
57#
58.KEEP_STATE:
59
60def:		$(DEF_DEPS)
61
62all:		$(ALL_DEPS)
63
64clean:		$(CLEAN_DEPS)
65
66clobber:	$(CLOBBER_DEPS)
67
68lint:		$(LINT_DEPS)
69
70modlintlib:	$(MODLINTLIB_DEPS)
71
72clean.lint:	$(CLEAN_LINT_DEPS)
73
74install:	$(INSTALL_DEPS)
75
76#
77#	Include common targets.
78#
79include ../Makefile.targ
80