forked from zirandu/linux-0.11-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 838 Bytes
/
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
# Check running envrionment
LAB_ENV_ID=/home/ubuntu/Desktop/lab.desktop
# ifneq ($(LAB_ENV_ID),$(wildcard $(LAB_ENV_ID)))
# $(error ERR: Please not try Linux 0.11 Lab in local host, but use it with Cloud Lab, please refer to 'Run and login the lab' part of README.md)
# endif
include Makefile.head
all: Image
$(LINUX_SRC): $(LINUX_VERSION)
$(Q)rm -rf $@
$(Q)ln -sf $< $@
Image: $(LINUX_SRC)
$(Q)(cd $(LINUX_SRC); make $@)
clean: $(LINUX_SRC)
$(Q)(cd $(ROOTFS_DIR); make $@)
$(Q)(cd $(CALLGRAPH_DIR); make $@)
$(Q)(cd $(LINUX_SRC); make $@)
$(Q)rm -rf bochsout.txt
distclean: clean
$(Q)(cd $(LINUX_SRC); make $@)
# Test on emulators with different prebuilt rootfs
include Makefile.emu
# Tags for source code reading
include Makefile.tags
# For Call graph generation
include Makefile.cg
# For help
include Makefile.help