-
Notifications
You must be signed in to change notification settings - Fork 2
/
amd64.mk
executable file
·52 lines (38 loc) · 910 Bytes
/
amd64.mk
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
#
#Makefile for Jicama OS
#
include amd64.inc
OBJS = cpu/amd64/cpu.o devices/driver.o core/kernel.o lib/libc.o
#core/kernel.o
all: clean kern64
cpu/amd64/cpu.o:
$(MAKE) -C cpu/amd64
lib/libc.o:
$(MAKE) -C ./lib
fs/fs.o:
$(MAKE) -C ./fs
net/net.o:
$(MAKE) -C ./net
devices/driver.o:
$(MAKE) -C ./devices
core/kernel.o:
$(MAKE) -C ./core
vin/vin.o:
$(MAKE) -C ./vin
clean:
$(RM) cpu\amd64\cpu.o
$(RM) core\kernel.o
$(RM) devices\driver.o
$(RM) kernel.gz
$(RM) *.bak
BFD_NAME = elf64-x86-64
BFD_ARCH = i386:x86-64
BFD = binary
kern64: $(OBJS) $(LIBS)
$(RM) [email protected]
$(LD) $(LFLAGS64BIN) -o $@ $(OBJS)
sys/gzip $@
image: ./jicama.bin
#rdsk.exe -o kernel.bin ./jicama.bin
#objdump ./jicama.bin --disassemble > kernel.asm
#objcopy -R .note -R .comment -S -O binary jicama.o sh.bin