-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 920 Bytes
/
Makefile
File metadata and controls
45 lines (34 loc) · 920 Bytes
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
ifeq ($(filter --no-print-directory,$(MAKEFLAGS)),)
MAKEFLAGS += --no-print-directory
endif
ifeq ($(filter --silent,$(MAKEFLAGS)),)
MAKEFLAGS += --silent
endif
include config.mk
all: iso
kernel:
@$(MAKE) -C kernel
userspace:
@$(MAKE) -C userspace
rootfs:
@$(MAKE) -C rootfs
tools:
@$(MAKE) -C tools
iso:
@$(MAKE) -C iso
run:
@printf " %-7s %s\n" "RUN" "$(ISOFILE)"
@qemu-system-x86_64 -cdrom $(ISOFILE) -enable-kvm -smp 1 -m 512 -serial stdio -audiodev alsa,id=audio0 -device ac97,audiodev=audio0 -netdev user,id=net0 -device rtl8139,netdev=net0
clean:
@$(MAKE) -C kernel clean
@$(MAKE) -C rootfs clean
@$(MAKE) -C tools clean
@$(MAKE) -C iso clean
@$(MAKE) -C userspace clean
mrproper:
@$(MAKE) -C kernel mrproper
@$(MAKE) -C rootfs mrproper
@$(MAKE) -C tools mrproper
@$(MAKE) -C iso mrproper
@$(MAKE) -C userspace mrproper
.PHONY: all tools kernel rootfs userspace iso run clean mrproper