blob: 98e390a2e53c0c392f4f65948eb27a85471ab182 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
## Install configuration
PREFIX = /usr
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man
SRCDIR = $(PREFIX)/src
# Where to install the stdlib tree
STDLIB = $(SRCDIR)/hare/stdlib
# Default HAREPATH
HAREPATH = $(SRCDIR)/hare/stdlib:$(SRCDIR)/hare/third-party
## Build configuration
# Platform to build for
PLATFORM = linux
ARCH = x86_64
# External tools and flags
HAREC = harec
HAREFLAGS =
QBE = qbe
AS = as
LD = ld
AR = ar
SCDOC = scdoc
# Where to store build artifacts
HARECACHE = .cache
BINOUT = .bin
# Cross-compiler toolchains
AARCH64_AS=aarch64-linux-gnu-as
AARCH64_AR=aarch64-linux-gnu-ar
AARCH64_CC=aarch64-linux-gnu-gcc
AARCH64_LD=aarch64-linux-gnu-ld
RISCV64_AS=riscv64-linux-gnu-as
RISCV64_AR=riscv64-linux-gnu-ar
RISCV64_CC=riscv64-linux-gnu-gcc
RISCV64_LD=riscv64-linux-gnu-ld
X86_64_AS=as
X86_64_AR=ar
X86_64_CC=cc
X86_64_LD=ld
|