revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-unix / exec / mmakefile.src
blobeb23d1c8f6639c6c262eef4bfa6fe19673efbb76
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 FILES := platform_init coldreboot shutdowna
7 # swapcontext() and friends are not implemented on ARM Linux and are totally missing on Android
8 ifneq ($(AROS_TARGET_CPU), arm)
9 ifneq ($(AROS_TARGET_VARIANT), android)
10 USER_CPPFLAGS := -DHAVE_SWAPCONTEXT
11 FILES += newstackswap
12 endif
13 endif
15 ifeq ($(ARCH),darwin)
16 USER_CPPFLAGS += -D_FORTIFY_SOURCE=0
17 endif
19 USER_INCLUDES := $(PRIV_KERNEL_INCLUDES) $(PRIV_EXEC_INCLUDES) \
20                  -isystem $(GENINCDIR) $(KERNEL_INCLUDES)
21 USER_CPPFLAGS += -DHOST_OS_$(ARCH)
23 ifneq ($(AROS_TARGET_VARIANT),)
24 USER_CPPFLAGS += -DHOST_OS_$(AROS_TARGET_VARIANT)
25 endif
27 %build_archspecific \
28   mainmmake=kernel-exec modname=exec maindir=rom/exec \
29   arch=unix files=$(FILES)
31 #MM kernel-exec-unix: kernel-kernel-includes kernel-hostlib-includes
33 %common