forked from ghaerr/elks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (46 loc) · 1.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
ifndef TOPDIR
$(error TOPDIR is not defined; did you mean to run './build.sh' instead?)
endif
include $(TOPDIR)/Make.defs
.PHONY: all clean libc kconfig defconfig config menuconfig
all: .config include/autoconf.h
$(MAKE) -C libc all
$(MAKE) -C libc DESTDIR='$(TOPDIR)/cross' install
$(MAKE) -C elks all
$(MAKE) -C bootblocks all
$(MAKE) -C elkscmd all
$(MAKE) -C image all
$(MAKE) -C elksemu PREFIX='$(TOPDIR)/cross' elksemu
kclean:
$(MAKE) -C elks kclean
clean:
$(MAKE) -C libc clean
$(MAKE) -C libc DESTDIR='$(TOPDIR)/cross' uninstall
$(MAKE) -C elks clean
$(MAKE) -C bootblocks clean
$(MAKE) -C elkscmd clean
$(MAKE) -C image clean
$(MAKE) -C elksemu clean
@echo
@if [ ! -f .config ]; then \
echo ' * This system is not configured. You need to run' ;\
echo ' * `make config` or `make menuconfig` to configure it.' ;\
echo ;\
fi
libc:
$(MAKE) -C libc DESTDIR='$(TOPDIR)/cross' uninstall
$(MAKE) -C libc all
$(MAKE) -C libc DESTDIR='$(TOPDIR)/cross' install
elks/arch/i86/drivers/char/KeyMaps/config.in:
$(MAKE) -C elks/arch/i86/drivers/char/KeyMaps config.in
kconfig:
$(MAKE) -C config all
defconfig:
$(RM) .config
@yes '' | ${MAKE} config
include/autoconf.h: .config
@yes '' | config/Configure -D config.in
config: elks/arch/i86/drivers/char/KeyMaps/config.in kconfig
config/Configure config.in
menuconfig: elks/arch/i86/drivers/char/KeyMaps/config.in kconfig
config/Menuconfig config.in