hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

config.example.mk (744B)


      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 = linux
     10 ARCH = x86_64
     11 HAREFLAGS =
     12 HARECFLAGS =
     13 QBEFLAGS =
     14 ASFLAGS =
     15 LDLINKFLAGS =
     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 AARCH64_AS=aarch64-as
     33 AARCH64_CC=aarch64-cc
     34 AARCH64_LD=aarch64-ld
     35 
     36 RISCV64_AS=riscv64-as
     37 RISCV64_CC=riscv64-cc
     38 RISCV64_LD=riscv64-ld
     39 
     40 X86_64_AS=as
     41 X86_64_CC=cc
     42 X86_64_LD=ld