forked from crazyss/hypervisor_last
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (34 loc) · 860 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
MKDIR = mkdir
TOPDIR = $(CURDIR)
export TOPDIR
OBJDIR := $(CURDIR)/obj
export OBJDIR
LDSCRITP = $(TOPDIR)/configure/helloos.lds
SUBDIRS = bsp hypervisor lib
CFLAGS = -m32
ASFLAGS = --32 -march=i486 -mtune=i486
#LDFLAGS = -T $(LDSCRITP) --print-map -N
SOBJS = helloos.o lowlevel_init.o begin.o lib.o int_entry.o keyboard.o
#SOBJS += dummy.o
COBJS = start.o font.o mouse.o
all: $(OBJDIR) $(SUBDIRS)
$(OBJDIR):
$(MKDIR) -p $(OBJDIR)
$(SUBDIRS)::
$(MAKE) -C $@
include buildrules/linker.rules
#
#helloos: $(SOBJS) $(LDSCRITP) $(COBJS)
# ld $(SOBJS) $(COBJS) -o $@ $(LDFLAGS)
#helloos.bin: helloos
# objcopy -O binary $< $@
#dump: helloos.bin
# objdump -b binary -D -mi8086 $<
#boot.img: helloos.bin
# dd if=$< of=boot.img bs=512 count=1024
#run.x86: boot.img
# kvm -d cpu -fda $< -net none -no-kvm
#
.PHONY: clean
clean:
@$(RM) -r obj