1*3d729aecSJerry Jelinek# 2*3d729aecSJerry Jelinek# This file and its contents are supplied under the terms of the 3*3d729aecSJerry Jelinek# Common Development and Distribution License ("CDDL"), version 1.0. 4*3d729aecSJerry Jelinek# You may only use this file in accordance with the terms of version 5*3d729aecSJerry Jelinek# 1.0 of the CDDL. 6*3d729aecSJerry Jelinek# 7*3d729aecSJerry Jelinek# A full copy of the text of the CDDL should have accompanied this 8*3d729aecSJerry Jelinek# source. A copy of the CDDL is also available via the Internet at 9*3d729aecSJerry Jelinek# http://www.illumos.org/license/CDDL. 10*3d729aecSJerry Jelinek# 11*3d729aecSJerry Jelinek 12*3d729aecSJerry Jelinek# 13*3d729aecSJerry Jelinek# Copyright 2015 Joyent, Inc. 14*3d729aecSJerry Jelinek# 15*3d729aecSJerry Jelinek 16*3d729aecSJerry Jelinek# 17*3d729aecSJerry Jelinek# Path to the base of the uts directory tree (usually /usr/src/uts). 18*3d729aecSJerry Jelinek# 19*3d729aecSJerry JelinekUTSBASE = ../.. 20*3d729aecSJerry Jelinek 21*3d729aecSJerry Jelinek# 22*3d729aecSJerry Jelinek# Define the module and object file sets. 23*3d729aecSJerry Jelinek# 24*3d729aecSJerry JelinekMODULE = signalfd 25*3d729aecSJerry JelinekOBJECTS = $(SIGNALFD_OBJS:%=$(OBJS_DIR)/%) 26*3d729aecSJerry JelinekLINTS = $(SIGNALFD_OBJS:%.o=$(LINTS_DIR)/%.ln) 27*3d729aecSJerry JelinekROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 28*3d729aecSJerry JelinekCONF_SRCDIR = $(UTSBASE)/common/io 29*3d729aecSJerry Jelinek 30*3d729aecSJerry Jelinek# 31*3d729aecSJerry Jelinek# Include common rules. 32*3d729aecSJerry Jelinek# 33*3d729aecSJerry Jelinekinclude $(UTSBASE)/intel/Makefile.intel 34*3d729aecSJerry Jelinek 35*3d729aecSJerry JelinekCERRWARN += -_gcc=-Wno-parentheses 36*3d729aecSJerry Jelinek 37*3d729aecSJerry Jelinek# 38*3d729aecSJerry Jelinek# Define targets 39*3d729aecSJerry Jelinek# 40*3d729aecSJerry JelinekALL_TARGET = $(BINARY) $(SRC_CONFILE) 41*3d729aecSJerry JelinekLINT_TARGET = $(MODULE).lint 42*3d729aecSJerry JelinekINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 43*3d729aecSJerry Jelinek 44*3d729aecSJerry Jelinek# 45*3d729aecSJerry Jelinek# Default build targets. 46*3d729aecSJerry Jelinek# 47*3d729aecSJerry Jelinek.KEEP_STATE: 48*3d729aecSJerry Jelinek 49*3d729aecSJerry Jelinekdef: $(DEF_DEPS) 50*3d729aecSJerry Jelinek 51*3d729aecSJerry Jelinekall: $(ALL_DEPS) 52*3d729aecSJerry Jelinek 53*3d729aecSJerry Jelinekclean: $(CLEAN_DEPS) 54*3d729aecSJerry Jelinek 55*3d729aecSJerry Jelinekclobber: $(CLOBBER_DEPS) 56*3d729aecSJerry Jelinek 57*3d729aecSJerry Jelineklint: $(LINT_DEPS) 58*3d729aecSJerry Jelinek 59*3d729aecSJerry Jelinekmodlintlib: $(MODLINTLIB_DEPS) 60*3d729aecSJerry Jelinek 61*3d729aecSJerry Jelinekclean.lint: $(CLEAN_LINT_DEPS) 62*3d729aecSJerry Jelinek 63*3d729aecSJerry Jelinekinstall: $(INSTALL_DEPS) 64*3d729aecSJerry Jelinek 65*3d729aecSJerry Jelinek# 66*3d729aecSJerry Jelinek# Include common targets. 67*3d729aecSJerry Jelinek# 68*3d729aecSJerry Jelinekinclude $(UTSBASE)/intel/Makefile.targ 69