forked from ghaerr/elks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (60 loc) · 1.67 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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 image images kclean
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
ifeq ($(shell uname), Linux)
$(MAKE) -C elksemu PREFIX='$(TOPDIR)/cross' elksemu
endif
image:
$(MAKE) -C image
images:
$(MAKE) -C image images
kimage: kernel image
kernel:
$(MAKE) -C elks
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
ifeq ($(shell uname), Linux)
$(MAKE) -C elksemu clean
endif
@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
.PHONY: tags
tags:
ctags -R --exclude=cross --exclude=elkscmd .