xref: /illumos-gate/usr/src/Makefile.native (revision 7655c6d53c36750b508636f48c73a2de57754e5a)
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
12#
13# Copyright 2023 Richard Lowe
14#
15
16# Configure make to run the native tools with the native paths
17# Similar in spirit to Makefile.master.64.
18
19GNUC_ROOT=	$(NATIVE_GNUC_ROOT)
20GCCLIBDIR=	$(NATIVE_GCCLIBDIR)
21GCCLIBDIR64=	$(NATIVE_GCCLIBDIR64)
22
23CFLAGS=		$(NATIVE_CFLAGS)
24ASFLAGS=	$(NATIVE_ASFLAGS)
25CCFLAGS=	$(NATIVE_CCFLAGS)
26CFLAGS64=	$(NATIVE_CFLAGS64)
27ASFLAGS64=	$(NATIVE_ASFLAGS64)
28CCFLAGS64=	$(NATIVE_CCFLAGS64)
29
30CCNEEDED=	$(NATIVECCNEEDED)
31CCNEEDED64=	$(NATIVECCNEEDED64)
32
33BUILD_CC=	$(NATIVEBUILD_CC)
34BUILD_CCC=	$(NATIVEBUILD_CCC)
35BUILD_CPP=	$(NATIVEBUILD_CPP)
36BUILD_LD=	$(NATIVEBUILD_LD)
37BUILD_AS=	$(NATIVEBUILD_AS)
38
39CC=	$(NATIVECC)
40CCC=	$(NATIVECCC)
41CPP=	$(NATIVECPP)
42AS=	$(NATIVEAS)
43LD=	$(NATIVELD)
44
45CC64=	$(NATIVECC64)
46CCC64=	$(NATIVECCC64)
47CPP64=	$(NATIVECPP64)
48AS64=	$(NATIVEAS64)
49LD64=	$(NATIVELD64)
50
51# If we're building for the build machine, we should use the build-machine
52# link-editor just in case
53CW_LINKER=
54