libk  Artifact [9a8f61d2ca]

Artifact 9a8f61d2caa148f804917a7072e49e51d7f427b2f325d471db9ed7fdc1434613:


#- makerule
# this file contains definitions shared between modmake and
# the top-leve makefile
# vim: ft=make

ARCH ?= ${ARCH}
BITS ?= ${BITS}
OS ?= ${OS}

POSIX ?= ${POSIX}
UNIX ?= ${UNIX}

ROOT ?= ${ROOT}
TMP ?= ${TMP}
OUT ?= ${OUT}

m4 ?= ${m4}

cflags = -std=c11 -isystem $(OUT) -isystem $(TMP) -isystem $(ROOT)/arch -fPIC -nostdlib $(COMPLIB) -L$(OUT)

m-env = atom_target_arch=$(ARCH)
m-env += atom_target_os=$(OS)
ifneq ($(BITS),) #!!! ifdef does NOT work with environment variables
    m-env += atom_target_bits=$(BITS)
endif
m-env += target_posix=$(POSIX)
m-env += target_unix=$(UNIX)

m-comp = $(m4) $(m-env:%=-D%)