update copyrights and bump library version
[AROS.git] / rom / kernel / mmakefile.src
blob2e4601356842bfa76f5a6490c70a6c466628ab89
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) -D__AROS_EXEC_LIBRARY__ \
15                 -DAROS_ARCHITECTURE="\"$(AROS_TARGET_PLATFORM)\"" \
17 # Allow to add architecture-specific options
18 -include $(SRCDIR)/arch/all-$(ARCH)/kernel/make.opts
19 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel/make.opts
20 ifneq ($(AROS_TARGET_VARIANT),)
21 -include $(SRCDIR)/arch/$(CPU)-$(ARCH)/$(AROS_TARGET_VARIANT)/kernel/make.opts
22 endif
24 FUNCS :=     addexceptionhandler addirqhandler bug cause cli createcontext deletecontext        \
25              displayalert dispatch getbootinfo getscheduler issuper mapglobal modifyirqhandler  \
26              remexceptionhandler remirqhandler schedule setprotection setscheduler sti          \
27              switch unmapglobal virtualtophysical obtaininput releaseinput                      \
28              putchar maygetchar allocpages freepages getsystemattr formatstr                    \
29              initmemory statmemory _bug _displayalert getcpucount getcpunumber                  \
30              allockernelbase prepareexecbase
31 FILES     := kernel_init cpu_init kernel_cpu kernel_debug kernel_panic kernel_intr \
32              kernel_memory kernel_romtags kernel_scheduler kernel_globals tlsf
33 MMU_FILES := kernel_mm
34 # You can replace this with own algorithm
35 ALLOCATOR := mm_linear
37 ifeq ($(USE_MMU),1)
38     FILES += $(MMU_FILES) $(ALLOCATOR)
39 endif
41 %build_module mmake=kernel-kernel \
42   modname=kernel modtype=resource version=$(AROS_TARGET_PLATFORM) \
43   files="$(FILES) $(FUNCS)" nostartup=no archspecific=yes
45 %common