Listtree.mcc: forward a number of SET/GET calls to embedded NListtree object.
[AROS.git] / rom / kernel / mmakefile.src
blob4c2cf4c9b4f9958c71ac209a0c09a4f8a0555d1e
1 # $Id$
2 include $(TOP)/config/make.cfg
5 # Allow to override include files by placing them in arch-specific directories
6 # Note that kernel_#?.h files must be included using #include <name>, not #include "name"
7 # for this to work.
8 # __AROS_EXEC_LIBRARY__ definition is needed for UNIX-hosted builds. kernel_base.h includes
9 # kernel_cpu.h, which needs host OS includes for some CPU-specific defintions (host OS CPU context).
10 # The code in rom/kernel is plain AROS code, it must not depend on host includes in any way, in order
11 # not to overcomplicate the build. This definition prevents kernel_cpu.h from including host-specific
12 # stuff. The name of this definition is legacy, in ancient times exec.library included some private
13 # kernel's stuff and needed this.
14 USER_INCLUDES := $(PRIV_KERNEL_INCLUDES) \
15                  -D__AROS_EXEC_LIBRARY__ \
16                 -DAROS_ARCHITECTURE="\"$(AROS_TARGET_PLATFORM)\"" \
18 # Allow to add architecture-specific options
19 -include $(SRCDIR)/arch/all-$(ARCH)/kernel/make.opts
20 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel/make.opts
21 ifneq ($(AROS_TARGET_VARIANT),)
22 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/$(AROS_TARGET_VARIANT)/kernel/make.opts
23 endif
25 FUNCS :=     spininit spinislocked spintrylock spinlock spinunlock addexceptionhandler          \
26              addirqhandler bug cause cli createcontext deletecontext                            \
27              displayalert dispatch getbootinfo getscheduler issuper mapglobal modifyirqhandler  \
28              remexceptionhandler remirqhandler schedule setprotection setscheduler sti          \
29              switch unmapglobal virtualtophysical obtaininput releaseinput                      \
30              putchar maygetchar allocpages freepages getsystemattr formatstr                    \
31              initmemory statmemory _bug _displayalert getcpucount getcpunumber getcpumask       \
32              allockernelbase prepareexecbase
33 FILES     := kernel_init cpu_init kernel_cpu kernel_debug kernel_panic kernel_intr \
34              kernel_memory kernel_romtags kernel_scheduler kernel_globals tlsf
35 MMU_FILES := kernel_mm
36 # You can replace this with own algorithm
37 ALLOCATOR := mm_linear
39 ifeq ($(USE_MMU),1)
40     FILES += $(MMU_FILES) $(ALLOCATOR)
41 endif
43 %build_module mmake=kernel-kernel \
44   modname=kernel modtype=resource version=$(AROS_TARGET_PLATFORM) \
45   files="$(FILES) $(FUNCS)" nostartup=no archspecific=yes
47 %common