16a72db4aSBryan Cantrill# 26a72db4aSBryan Cantrill# This file and its contents are supplied under the terms of the 36a72db4aSBryan Cantrill# Common Development and Distribution License ("CDDL"), version 1.0. 46a72db4aSBryan Cantrill# You may only use this file in accordance with the terms of version 56a72db4aSBryan Cantrill# 1.0 of the CDDL. 66a72db4aSBryan Cantrill# 76a72db4aSBryan Cantrill# A full copy of the text of the CDDL should have accompanied this 86a72db4aSBryan Cantrill# source. A copy of the CDDL is also available via the Internet at 96a72db4aSBryan Cantrill# http://www.illumos.org/license/CDDL. 106a72db4aSBryan Cantrill# 116a72db4aSBryan Cantrill 126a72db4aSBryan Cantrill# 13*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 146a72db4aSBryan Cantrill# 156a72db4aSBryan Cantrill 166a72db4aSBryan Cantrill# 176a72db4aSBryan Cantrill# Path to the base of the uts directory tree (usually /usr/src/uts). 186a72db4aSBryan Cantrill# 196a72db4aSBryan CantrillUTSBASE = ../.. 206a72db4aSBryan Cantrill 216a72db4aSBryan Cantrill# 226a72db4aSBryan Cantrill# Define the module and object file sets. 236a72db4aSBryan Cantrill# 246a72db4aSBryan CantrillMODULE = timerfd 256a72db4aSBryan CantrillOBJECTS = $(TIMERFD_OBJS:%=$(OBJS_DIR)/%) 266a72db4aSBryan CantrillLINTS = $(TIMERFD_OBJS:%.o=$(LINTS_DIR)/%.ln) 276a72db4aSBryan CantrillROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 286a72db4aSBryan CantrillCONF_SRCDIR = $(UTSBASE)/common/io 296a72db4aSBryan Cantrill 306a72db4aSBryan Cantrill# 316a72db4aSBryan Cantrill# Include common rules. 326a72db4aSBryan Cantrill# 336a72db4aSBryan Cantrillinclude $(UTSBASE)/intel/Makefile.intel 346a72db4aSBryan Cantrill 356a72db4aSBryan CantrillCERRWARN += -_gcc=-Wno-parentheses 366a72db4aSBryan Cantrill 37*b6b206fcSJohn Levon# needs work 38*b6b206fcSJohn LevonSMOFF += all_func_returns 39*b6b206fcSJohn Levon 406a72db4aSBryan Cantrill# 416a72db4aSBryan Cantrill# Define targets 426a72db4aSBryan Cantrill# 436a72db4aSBryan CantrillALL_TARGET = $(BINARY) $(SRC_CONFILE) 446a72db4aSBryan CantrillLINT_TARGET = $(MODULE).lint 456a72db4aSBryan CantrillINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 466a72db4aSBryan Cantrill 476a72db4aSBryan Cantrill# 486a72db4aSBryan Cantrill# Default build targets. 496a72db4aSBryan Cantrill# 506a72db4aSBryan Cantrill.KEEP_STATE: 516a72db4aSBryan Cantrill 526a72db4aSBryan Cantrilldef: $(DEF_DEPS) 536a72db4aSBryan Cantrill 546a72db4aSBryan Cantrillall: $(ALL_DEPS) 556a72db4aSBryan Cantrill 566a72db4aSBryan Cantrillclean: $(CLEAN_DEPS) 576a72db4aSBryan Cantrill 586a72db4aSBryan Cantrillclobber: $(CLOBBER_DEPS) 596a72db4aSBryan Cantrill 606a72db4aSBryan Cantrilllint: $(LINT_DEPS) 616a72db4aSBryan Cantrill 626a72db4aSBryan Cantrillmodlintlib: $(MODLINTLIB_DEPS) 636a72db4aSBryan Cantrill 646a72db4aSBryan Cantrillclean.lint: $(CLEAN_LINT_DEPS) 656a72db4aSBryan Cantrill 666a72db4aSBryan Cantrillinstall: $(INSTALL_DEPS) 676a72db4aSBryan Cantrill 686a72db4aSBryan Cantrill# 696a72db4aSBryan Cantrill# Include common targets. 706a72db4aSBryan Cantrill# 716a72db4aSBryan Cantrillinclude $(UTSBASE)/intel/Makefile.targ 72