145a4b79dSSebastien Roy# 245a4b79dSSebastien Roy# CDDL HEADER START 345a4b79dSSebastien Roy# 445a4b79dSSebastien Roy# This file and its contents are supplied under the terms of the 545a4b79dSSebastien Roy# Common Development and Distribution License ("CDDL"), version 1.0. 645a4b79dSSebastien Roy# You may only use this file in accordance with the terms of version 745a4b79dSSebastien Roy# 1.0 of the CDDL. 845a4b79dSSebastien Roy# 945a4b79dSSebastien Roy# A full copy of the text of the CDDL should have accompanied this 1045a4b79dSSebastien Roy# source. A copy of the CDDL is also available via the Internet at 1145a4b79dSSebastien Roy# http://www.illumos.org/license/CDDL. 1245a4b79dSSebastien Roy# 1345a4b79dSSebastien Roy# CDDL HEADER END 1445a4b79dSSebastien Roy# 1545a4b79dSSebastien Roy# Copyright (c) 2017 by Delphix. All rights reserved. 1645a4b79dSSebastien Roy# 1745a4b79dSSebastien Roy 1845a4b79dSSebastien Roy# 1945a4b79dSSebastien Roy# Path to the base of the uts directory tree (usually /usr/src/uts). 2045a4b79dSSebastien Roy# 2145a4b79dSSebastien RoyUTSBASE = ../.. 2245a4b79dSSebastien Roy 2345a4b79dSSebastien Roy# 2445a4b79dSSebastien Roy# Define the module and object file sets. 2545a4b79dSSebastien Roy# 2645a4b79dSSebastien RoyMODULE = cc_cubic 2745a4b79dSSebastien RoyOBJECTS = $(CC_CUBIC_OBJS:%=$(OBJS_DIR)/%) 2845a4b79dSSebastien RoyROOTMODULE = $(ROOT_CC_DIR)/$(MODULE) 2945a4b79dSSebastien Roy 3045a4b79dSSebastien Roy# 3145a4b79dSSebastien Roy# Include common rules. 3245a4b79dSSebastien Roy# 3345a4b79dSSebastien Royinclude $(UTSBASE)/intel/Makefile.intel 3445a4b79dSSebastien Roy 3545a4b79dSSebastien Roy# 3645a4b79dSSebastien Roy# Define targets 3745a4b79dSSebastien Roy# 3845a4b79dSSebastien RoyALL_TARGET = $(BINARY) 3945a4b79dSSebastien RoyINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 4045a4b79dSSebastien Roy 4145a4b79dSSebastien Roy# 4245a4b79dSSebastien Roy# Overrides. 4345a4b79dSSebastien Roy# 4445a4b79dSSebastien RoyCFLAGS += $(CCVERBOSE) 45*82d0151aSRichard LoweLDFLAGS += -N misc/cc -N cc/cc_newreno 4645a4b79dSSebastien Roy 4745a4b79dSSebastien Roy# 4845a4b79dSSebastien Roy# Default build targets. 4945a4b79dSSebastien Roy# 5045a4b79dSSebastien Roy.KEEP_STATE: 5145a4b79dSSebastien Roy 5245a4b79dSSebastien Roydef: $(DEF_DEPS) 5345a4b79dSSebastien Roy 5445a4b79dSSebastien Royall: $(ALL_DEPS) 5545a4b79dSSebastien Roy 5645a4b79dSSebastien Royclean: $(CLEAN_DEPS) 5745a4b79dSSebastien Roy 5845a4b79dSSebastien Royclobber: $(CLOBBER_DEPS) 5945a4b79dSSebastien Roy 6045a4b79dSSebastien Royinstall: $(INSTALL_DEPS) 6145a4b79dSSebastien Roy 6245a4b79dSSebastien Roy# 6345a4b79dSSebastien Roy# Include common targets. 6445a4b79dSSebastien Roy# 6545a4b79dSSebastien Royinclude $(UTSBASE)/intel/Makefile.targ 66