Makefile revision 6a72db4a7fa12c3e0d1c1cf91a07390739fa0fbf
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# This file and its contents are supplied under the terms of the
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Common Development and Distribution License ("CDDL"), version 1.0.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# You may only use this file in accordance with the terms of version
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# 1.0 of the CDDL.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# A full copy of the text of the CDDL should have accompanied this
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# source. A copy of the CDDL is also available via the Internet at
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# http://www.illumos.org/license/CDDL.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Copyright (c) 2015 Joyent, Inc. All rights reserved.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Path to the base of the uts directory tree (usually /usr/src/uts).
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienUTSBASE = ../..
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Define the module and object file sets.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienMODULE = timerfd
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienOBJECTS = $(TIMERFD_OBJS:%=$(OBJS_DIR)/%)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienLINTS = $(TIMERFD_OBJS:%.o=$(LINTS_DIR)/%.ln)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean YeCONF_SRCDIR = $(UTSBASE)/common/io
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Include common rules.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsieninclude $(UTSBASE)/intel/Makefile.intel
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienCERRWARN += -_gcc=-Wno-parentheses
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Define targets
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienALL_TARGET = $(BINARY) $(SRC_CONFILE)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienLINT_TARGET = $(MODULE).lint
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Default build targets.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien.KEEP_STATE:
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsiendef: $(DEF_DEPS)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienall: $(ALL_DEPS)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienclean: $(CLEAN_DEPS)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienclobber: $(CLOBBER_DEPS)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienlint: $(LINT_DEPS)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienmodlintlib: $(MODLINTLIB_DEPS)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienclean.lint: $(CLEAN_LINT_DEPS)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsieninstall: $(INSTALL_DEPS)
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye#
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye# Include common targets.
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye#
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Yeinclude $(UTSBASE)/intel/Makefile.targ
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye