xref: /illumos-gate/usr/src/uts/intel/timerfd/Makefile (revision 6a72db4a7fa12c3e0d1c1cf91a07390739fa0fbf)
1*6a72db4aSBryan Cantrill#
2*6a72db4aSBryan Cantrill# This file and its contents are supplied under the terms of the
3*6a72db4aSBryan Cantrill# Common Development and Distribution License ("CDDL"), version 1.0.
4*6a72db4aSBryan Cantrill# You may only use this file in accordance with the terms of version
5*6a72db4aSBryan Cantrill# 1.0 of the CDDL.
6*6a72db4aSBryan Cantrill#
7*6a72db4aSBryan Cantrill# A full copy of the text of the CDDL should have accompanied this
8*6a72db4aSBryan Cantrill# source.  A copy of the CDDL is also available via the Internet at
9*6a72db4aSBryan Cantrill# http://www.illumos.org/license/CDDL.
10*6a72db4aSBryan Cantrill#
11*6a72db4aSBryan Cantrill
12*6a72db4aSBryan Cantrill#
13*6a72db4aSBryan Cantrill# Copyright (c) 2015 Joyent, Inc.  All rights reserved.
14*6a72db4aSBryan Cantrill#
15*6a72db4aSBryan Cantrill
16*6a72db4aSBryan Cantrill#
17*6a72db4aSBryan Cantrill#	Path to the base of the uts directory tree (usually /usr/src/uts).
18*6a72db4aSBryan Cantrill#
19*6a72db4aSBryan CantrillUTSBASE	= ../..
20*6a72db4aSBryan Cantrill
21*6a72db4aSBryan Cantrill#
22*6a72db4aSBryan Cantrill#	Define the module and object file sets.
23*6a72db4aSBryan Cantrill#
24*6a72db4aSBryan CantrillMODULE		= timerfd
25*6a72db4aSBryan CantrillOBJECTS		= $(TIMERFD_OBJS:%=$(OBJS_DIR)/%)
26*6a72db4aSBryan CantrillLINTS		= $(TIMERFD_OBJS:%.o=$(LINTS_DIR)/%.ln)
27*6a72db4aSBryan CantrillROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
28*6a72db4aSBryan CantrillCONF_SRCDIR	= $(UTSBASE)/common/io
29*6a72db4aSBryan Cantrill
30*6a72db4aSBryan Cantrill#
31*6a72db4aSBryan Cantrill#	Include common rules.
32*6a72db4aSBryan Cantrill#
33*6a72db4aSBryan Cantrillinclude $(UTSBASE)/intel/Makefile.intel
34*6a72db4aSBryan Cantrill
35*6a72db4aSBryan CantrillCERRWARN	+= -_gcc=-Wno-parentheses
36*6a72db4aSBryan Cantrill
37*6a72db4aSBryan Cantrill#
38*6a72db4aSBryan Cantrill#	Define targets
39*6a72db4aSBryan Cantrill#
40*6a72db4aSBryan CantrillALL_TARGET	= $(BINARY) $(SRC_CONFILE)
41*6a72db4aSBryan CantrillLINT_TARGET	= $(MODULE).lint
42*6a72db4aSBryan CantrillINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
43*6a72db4aSBryan Cantrill
44*6a72db4aSBryan Cantrill#
45*6a72db4aSBryan Cantrill#	Default build targets.
46*6a72db4aSBryan Cantrill#
47*6a72db4aSBryan Cantrill.KEEP_STATE:
48*6a72db4aSBryan Cantrill
49*6a72db4aSBryan Cantrilldef:		$(DEF_DEPS)
50*6a72db4aSBryan Cantrill
51*6a72db4aSBryan Cantrillall:		$(ALL_DEPS)
52*6a72db4aSBryan Cantrill
53*6a72db4aSBryan Cantrillclean:		$(CLEAN_DEPS)
54*6a72db4aSBryan Cantrill
55*6a72db4aSBryan Cantrillclobber:	$(CLOBBER_DEPS)
56*6a72db4aSBryan Cantrill
57*6a72db4aSBryan Cantrilllint:		$(LINT_DEPS)
58*6a72db4aSBryan Cantrill
59*6a72db4aSBryan Cantrillmodlintlib:	$(MODLINTLIB_DEPS)
60*6a72db4aSBryan Cantrill
61*6a72db4aSBryan Cantrillclean.lint:	$(CLEAN_LINT_DEPS)
62*6a72db4aSBryan Cantrill
63*6a72db4aSBryan Cantrillinstall:	$(INSTALL_DEPS)
64*6a72db4aSBryan Cantrill
65*6a72db4aSBryan Cantrill#
66*6a72db4aSBryan Cantrill#	Include common targets.
67*6a72db4aSBryan Cantrill#
68*6a72db4aSBryan Cantrillinclude $(UTSBASE)/intel/Makefile.targ
69