Port the SB128 code to AROS.
[AROS.git] / rom / kernel / mmakefile.src
blob047752ab911b07cae90808a0f008bbdffd8ba705
1 # $Id$
2 include $(TOP)/config/make.cfg
4 # Allow to override include files by placing them in arch-specific directories
5 # Note that kernel_#?.h files must be included using #include <name>, not #include "name"
6 # for this to work.
7 USER_CFLAGS := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel \
8                -I$(SRCDIR)/arch/all-$(ARCH)/kernel
9 ifneq ($(FAMILY),)
10 USER_CFLAGS += -I$(SRCDIR)/arch/all-$(FAMILY)/kernel
11 endif
12 USER_CFLAGS += -I$(SRCDIR)/arch/$(CPU)-all/kernel -I$(SRCDIR)/rom/kernel \
13                -I$(SRCDIR)/rom/exec \
14                -DAROS_ARCHITECTURE="\"$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU)\"" \
15                -D__AROS_EXEC_LIBRARY__
17 # Allow to add architecture-specific options
18 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel/make.opts
19 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/$(AROS_TARGET_VARIANT)/kernel/make.opts
21 FUNCS :=     addexceptionhandler addirqhandler bug cause cli createcontext deletecontext    \
22              displayalert dispatch getbootinfo getscheduler issuper mapglobal               \
23              remexceptionhandler remirqhandler schedule setprotection setscheduler sti      \
24              switch unmapglobal virtualtophysical obtaininput releaseinput                  \
25              putchar maygetchar allocpages freepages getsystemattr setsystemattr            \
26              initmemory statmemory
27 FILES     := kernel_init cpu_init kernel_cpu kernel_debug kernel_intr   \
28              kernel_memory kernel_romtags kernel_scheduler kernel_timer
29 MMU_FILES := kernel_mm
30 # You can replace this with own algorithm
31 ALLOCATOR := mm_linear
33 ifeq ($(USE_MMU),1)
34     FILES += $(MMU_FILES) $(ALLOCATOR)
35 endif
37 %build_module mmake=kernel-kernel \
38   modname=kernel modtype=resource \
39   files="$(FILES) $(FUNCS)" uselibs="rom $(USER_LIBS)" nostartup=no
41 %common