File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -26,30 +26,25 @@ build-cross-gcc: $(GCC_SRC)
26
26
$(GCC_SRC ) /configure --target=$(TARGET ) --prefix=" $( CROSSDIR) " --disable-nls --enable-languages=c --without-headers && \
27
27
make all-gcc && make all-target-libgcc && make install-gcc && make install-target-libgcc
28
28
29
- build/ :
30
- mkdir -p $@
31
-
32
- build/boot.o : build/ src/boot.asm
29
+ build/boot.o : src/boot.asm
33
30
nasm -felf $< -o $@
34
31
35
- build/kernel.o : build/ src/kernel.c
32
+ build/kernel.o : src/kernel.c
36
33
export PATH=" $( CROSSBINDIR) :$( PATH) " && \
37
34
i586-elf-gcc -c $< -o $@ -std=gnu99 -ffreestanding -O2 -Wall -Wextra
38
35
39
- build/jdsos.bin : build/ build/ boot.o build/kernel.o
36
+ build/jdsos.bin : build/boot.o build/kernel.o
40
37
export PATH=" $( CROSSBINDIR) :$( PATH) " && \
41
38
i586-elf-gcc -T src/linker.ld -o $@ -ffreestanding -O2 -nostdlib $? -lgcc
42
39
43
40
image/boot/jdsos.bin : build/jdsos.bin
44
41
cp $< $@
45
42
46
- dist/ :
47
- mkdir -p $@
48
-
49
- dist/jdsos.iso : dist/ image/boot/jdsos.bin
43
+ dist/jdsos.iso : image/boot/jdsos.bin
50
44
grub-mkrescue -o $@ image
51
45
52
46
dist : dist/jdsos.iso
47
+ all : dist
53
48
54
49
bochs : dist/jdsos.iso
55
50
bochs -f .bochsrc
You can’t perform that action at this time.
0 commit comments