openbsd.mk (892B)
1 # install locations 2 PREFIX = /usr/local 3 BINDIR = $(PREFIX)/bin 4 MANDIR = $(PREFIX)/man 5 SRCDIR = $(PREFIX)/src 6 STDLIB = $(SRCDIR)/hare/stdlib 7 8 # variables used during build 9 PLATFORM = openbsd 10 ARCH = x86_64 11 HAREFLAGS = 12 HARECFLAGS = 13 QBEFLAGS = 14 ASFLAGS = 15 LDLINKFLAGS = -z nobtcfi 16 17 # commands used by the build script 18 HAREC = harec 19 QBE = qbe 20 # gas is in the "binutils" package; as from the base system is too old. the "gas" 21 # package also works on all arches except riscv64. 22 AS = gas 23 LD = cc 24 SCDOC = scdoc 25 26 # build locations 27 HARECACHE = .cache 28 BINOUT = .bin 29 30 # variables that will be embedded in the binary with -D definitions 31 HAREPATH = $(SRCDIR)/hare/stdlib:$(SRCDIR)/hare/third-party 32 VERSION=$$(./scripts/version) 33 34 # for cross-compilation, modify the variables below 35 AARCH64_AS=gas 36 AARCH64_CC=cc 37 AARCH64_LD=cc 38 39 RISCV64_AS=gas 40 RISCV64_CC=cc 41 RISCV64_LD=cc 42 43 X86_64_AS=gas 44 X86_64_CC=cc 45 X86_64_LD=cc