revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-unix / kernel / mmakefile.src
blob4724279ae34f338c67b5b2602ec20ff74684292d
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 MAINDIR     := rom/kernel
6 USER_INCLUDES := $(PRIV_KERNEL_INCLUDES) -I$(GENDIR)/$(MAINDIR)/include \
7                -isystem $(GENINCDIR) $(KERNEL_INCLUDES)
8 USER_CPPFLAGS := -DAROS_ARCHITECTURE="\"$(AROS_TARGET_PLATFORM)\"" \
9                -DHOST_OS_$(ARCH) -DHOST_OS_$(AROS_TARGET_VARIANT)
11 ifneq ("","$(strip $(WARN_ERROR))")
12 CONFIG_CFLAGS := $(subst $(WARN_ERROR),,$(CONFIG_CFLAGS))
13 endif
15 FUNCS := cause cli issuper kernel_debug maygetchar sti setprotection \
16          obtaininput releaseinput getpagesize allockernelbase
17 FILES := kernel_startup kernel kernel_cpu kernel_intr cpu_$(CPU)
19 %build_archspecific \
20   mainmmake=kernel-kernel maindir=rom/kernel \
21   arch=unix files="$(FILES) $(FUNCS)" modname=kernel
23 TESTS           := coretest
25 #MM
26 check-kernel-unix : $(TESTS)
28 % : %.c
29         $(KERNEL_CC) -DTEST $(CFLAGS) $(KERNEL_CFLAGS) $< -o $@
31 %common