morpheus/config.def.mk

40 lines
1.0 KiB
Makefile
Raw Normal View History

2014-05-21 11:48:42 +00:00
arch = x86_64
2014-02-27 12:41:37 +00:00
version = 0.0
mirror = http://dl.2f30.org/morpheus-pkgs/${arch}/${version}
pkgdirs = $mkbuild/../ports
2014-03-27 20:54:13 +00:00
nprocs = 2
2014-03-26 21:19:02 +00:00
2014-03-27 21:53:29 +00:00
TOOLCHAIN_TRIPLET = ${arch}-musl-linux
CC = ${TOOLCHAIN_TRIPLET}-gcc
CXX = ${TOOLCHAIN_TRIPLET}-g++
2014-03-26 21:19:02 +00:00
LD = $CC
2014-03-27 21:53:29 +00:00
AR = ${TOOLCHAIN_TRIPLET}-ar
RANLIB = ${TOOLCHAIN_TRIPLET}-ranlib
STRIP = ${TOOLCHAIN_TRIPLET}-strip
CPP = ${TOOLCHAIN_TRIPLET}-cpp
HOST_TOOLCHAIN_TRIPLET = ${arch}-musl-linux
HOSTCC = $CC -static
# use STRIP = true instead of the above
# if you do not want stripped binaries
#STRIP = true
2014-03-26 21:19:02 +00:00
SHELL = /bin/sh
PREFIX =
BINDIR = ${PREFIX}/bin
LIBDIR = ${PREFIX}/lib
ETCDIR = ${PREFIX}/etc
DFLDIR = ${ETCDIR}/default
MANDIR = ${PREFIX}/share/man
INSTALL = /usr/bin/install
2014-05-15 09:12:25 +00:00
SUM = sha512sum
2014-02-27 12:41:37 +00:00
# these don't work for all packages yet...
optldflags = -s -Wl,--gc-sections -Wl,-z,relro,-z,now
optcflags = -fdata-sections -ffunction-sections -Os -g0 -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack
CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE
2014-03-26 21:19:02 +00:00
CFLAGS = ${CPPFLAGS} # ${optcflags}
LDFLAGS = -static ${optldflags}