freebsd.mk (779B)
1 # install locations 2 PREFIX = /usr/local 3 BINDIR = $(PREFIX)/bin 4 MANDIR = $(PREFIX)/share/man 5 SRCDIR = $(PREFIX)/src 6 STDLIB = $(SRCDIR)/hare/stdlib 7 8 # variables used during build 9 PLATFORM = freebsd 10 ARCH = x86_64 11 HAREFLAGS = 12 HARECFLAGS = 13 QBEFLAGS = 14 ASFLAGS = 15 LDLINKFLAGS = --gc-sections -z noexecstack 16 17 # commands used by the build script 18 HAREC = harec 19 QBE = qbe 20 AS = as 21 LD = ld 22 SCDOC = scdoc 23 24 # build locations 25 HARECACHE = .cache 26 BINOUT = .bin 27 28 # variables that will be embedded in the binary with -D definitions 29 HAREPATH = $(SRCDIR)/hare/stdlib:$(SRCDIR)/hare/third-party 30 VERSION=$$(./scripts/version) 31 32 # For cross-compilation, modify the variables below 33 AARCH64_AS=as 34 AARCH64_CC=cc 35 AARCH64_LD=ld 36 37 RISCV64_AS=as 38 RISCV64_CC=cc 39 RISCV64_LD=ld 40 41 X86_64_AS=as 42 X86_64_CC=cc 43 X86_64_LD=ld