1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-16 08:38:32 +00:00
morpheus/config.mk
2014-03-05 17:05:30 +00:00

21 lines
777 B
Makefile

top = `{pwd}
root = ${top}/root
#arch = i486
arch = x86_64
libcroot = ${root}/opt/cross/${arch}-linux-musl/${arch}-linux-musl
nprocs = 4 # number of processes for building separate packages
NPROC = 4 # number of processes for mk concurrency
version = 0.0
mirror = http://dl.2f30.org/morpheus-pkgs/${arch}/${version}
CC = ${arch}-linux-musl-gcc
# 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
CFLAGS = -I${libcroot}/include ${CPPFLAGS} # ${optcflags}
LDFLAGS = -L${libcroot}/lib -static ${optldflags}
PATH = ${root}/opt/cross/${arch}-linux-musl/bin:${PATH}