revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-mingw32 / kernel / mmakefile.src
blob948e5be445de2666edc3ba9419e21eb8af9731b7
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 USER_INCLUDES  := $(PRIV_KERNEL_INCLUDES)
7 #MM kernel-kernel-mingw32: kernel-kernel-mingw32-native
9 FUNCS := addirqhandler cli _displayalert issuper setprotection sti maygetchar putchar obtaininput
10 FILES := kernel_startup kernel_debug kernel_intr kernel_cpu cpu_$(CPU)
12 %build_archspecific \
13   mainmmake=kernel-kernel modname=kernel maindir=rom/kernel \
14   arch=mingw32 \
15   files="$(FILES) $(FUNCS)"
17 NATIVE_BINDIR := $(AROSDIR)/Libs/Host
18 NATIVE_LIBDIR := $(AROS_DEVELOPER)/$(CPU)-mingw32/lib
20 NATIVE_FILES  := host_debug host_intr host_mmu
21 NATIVE_AFILES := leaveinterrupt_$(CPU)
23 NATIVE_CFLAGS := $(KERNEL_CLFAGS) -Winline
24 NATIVE_LDFLAGS := -shared -Wl,--out-implib,$(NATIVE_LIBDIR)/libaroskernel.a
26 USER_INCLUDES :=
28 #MM
29 kernel-kernel-mingw32-native: $(NATIVE_LIBDIR)
31 $(NATIVE_LIBDIR):
32         @$(MKDIR) $(NATIVE_LIBDIR)
34 %build_prog mmake=kernel-kernel-mingw32-native \
35     progname=kernel.dll targetdir=$(NATIVE_BINDIR) \
36     files=$(NATIVE_FILES) asmfiles=$(NATIVE_AFILES) compiler=kernel \
37     cflags=$(NATIVE_FLAGS) ldflags=$(NATIVE_LDFLAGS)
39 %common