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