diff options
Diffstat (limited to 'src/boot/Makefile')
-rw-r--r-- | src/boot/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/boot/Makefile b/src/boot/Makefile new file mode 100644 index 0000000..df0c5a0 --- /dev/null +++ b/src/boot/Makefile | |||
@@ -0,0 +1,22 @@ | |||
1 | include ../Makefile.header | ||
2 | |||
3 | LDFLAGS += -Ttext 0 | ||
4 | |||
5 | all: bootsect setup | ||
6 | |||
7 | bootsect: bootsect.s | ||
8 | @$(AS) -o bootsect.o bootsect.s | ||
9 | @$(LD) $(LDFLAGS) -o bootsect bootsect.o | ||
10 | @$(OBJCOPY) -R .pdr -R .comment -R.note -S -O binary bootsect | ||
11 | |||
12 | |||
13 | setup: setup.s | ||
14 | @$(AS) -o setup.o setup.s | ||
15 | @$(LD) $(LDFLAGS) -o setup setup.o | ||
16 | @$(OBJCOPY) -R .pdr -R .comment -R.note -S -O binary setup | ||
17 | |||
18 | head.o: head.s | ||
19 | @$(AS) -o head.o head.s | ||
20 | |||
21 | clean: | ||
22 | @rm -f bootsect bootsect.o setup setup.o head.o | ||