xref: /illumos-gate/usr/src/uts/intel/cc/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1*45a4b79dSSebastien Roy#
2*45a4b79dSSebastien Roy# This file and its contents are supplied under the terms of the
3*45a4b79dSSebastien Roy# Common Development and Distribution License ("CDDL"), version 1.0.
4*45a4b79dSSebastien Roy# You may only use this file in accordance with the terms of version
5*45a4b79dSSebastien Roy# 1.0 of the CDDL.
6*45a4b79dSSebastien Roy#
7*45a4b79dSSebastien Roy# A full copy of the text of the CDDL should have accompanied this
8*45a4b79dSSebastien Roy# source.  A copy of the CDDL is also available via the Internet at
9*45a4b79dSSebastien Roy# http://www.illumos.org/license/CDDL.
10*45a4b79dSSebastien Roy#
11*45a4b79dSSebastien Roy# Copyright 2019 Joyent, Inc.
12*45a4b79dSSebastien Roy#
13*45a4b79dSSebastien Roy
14*45a4b79dSSebastien Roy#
15*45a4b79dSSebastien Roy#	Path to the base of the uts directory tree (usually /usr/src/uts).
16*45a4b79dSSebastien Roy#
17*45a4b79dSSebastien RoyUTSBASE	= ../..
18*45a4b79dSSebastien Roy
19*45a4b79dSSebastien Roy#
20*45a4b79dSSebastien Roy#	Define the module and object file sets.
21*45a4b79dSSebastien Roy#
22*45a4b79dSSebastien RoyMODULE		= cc
23*45a4b79dSSebastien RoyOBJECTS		= $(CC_OBJS:%=$(OBJS_DIR)/%)
24*45a4b79dSSebastien RoyROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
25*45a4b79dSSebastien Roy
26*45a4b79dSSebastien Roy#
27*45a4b79dSSebastien Roy#	Include common rules.
28*45a4b79dSSebastien Roy#
29*45a4b79dSSebastien Royinclude $(UTSBASE)/intel/Makefile.intel
30*45a4b79dSSebastien Roy
31*45a4b79dSSebastien Roy#
32*45a4b79dSSebastien Roy#	Define targets
33*45a4b79dSSebastien Roy#
34*45a4b79dSSebastien RoyALL_TARGET	= $(BINARY)
35*45a4b79dSSebastien RoyINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
36*45a4b79dSSebastien Roy
37*45a4b79dSSebastien Roy#
38*45a4b79dSSebastien Roy#	Overrides.
39*45a4b79dSSebastien Roy#
40*45a4b79dSSebastien RoyCFLAGS		+= $(CCVERBOSE)
41*45a4b79dSSebastien Roy
42*45a4b79dSSebastien Roy#
43*45a4b79dSSebastien Roy#	Default build targets.
44*45a4b79dSSebastien Roy#
45*45a4b79dSSebastien Roy.KEEP_STATE:
46*45a4b79dSSebastien Roy
47*45a4b79dSSebastien Roydef:		$(DEF_DEPS)
48*45a4b79dSSebastien Roy
49*45a4b79dSSebastien Royall:		$(ALL_DEPS)
50*45a4b79dSSebastien Roy
51*45a4b79dSSebastien Royclean:		$(CLEAN_DEPS)
52*45a4b79dSSebastien Roy
53*45a4b79dSSebastien Royclobber:	$(CLOBBER_DEPS)
54*45a4b79dSSebastien Roy
55*45a4b79dSSebastien Royinstall:	$(INSTALL_DEPS)
56*45a4b79dSSebastien Roy
57*45a4b79dSSebastien Roy#
58*45a4b79dSSebastien Roy#	Include common targets.
59*45a4b79dSSebastien Roy#
60*45a4b79dSSebastien Royinclude $(UTSBASE)/intel/Makefile.targ
61