mkbuild

mk based build system
git clone git://git.2f30.org/mkbuild
Log | Files | Refs | LICENSE

config.mk (514B)


      1 arch = x86_64
      2 nprocs = 2
      3 
      4 TOOLCHAIN_TRIPLET = ${arch}-musl-linux
      5 CC = ${TOOLCHAIN_TRIPLET}-gcc
      6 HOSTCC = $CC -static
      7 LD = $CC
      8 AR = ${TOOLCHAIN_TRIPLET}-ar
      9 RANLIB = ${TOOLCHAIN_TRIPLET}-ranlib
     10 STRIP = ${TOOLCHAIN_TRIPLET}-strip
     11 #STRIP = true
     12 SHELL = /bin/sh
     13 
     14 PREFIX =
     15 BINDIR = ${PREFIX}/bin
     16 LIBDIR = ${PREFIX}/lib
     17 ETCDIR = ${PREFIX}/etc
     18 DFLDIR = ${ETCDIR}/default
     19 MANDIR = ${PREFIX}/share/man
     20 
     21 INSTALL = /usr/bin/install
     22 SUM = sha512sum
     23 
     24 CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE
     25 CFLAGS = ${CPPFLAGS}
     26 LDFLAGS = -static