summaryrefslogtreecommitdiffstats
path: root/src/boot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/Makefile')
-rw-r--r--src/boot/Makefile22
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 @@
1include ../Makefile.header
2
3LDFLAGS += -Ttext 0
4
5all: bootsect setup
6
7bootsect: 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
13setup: 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
18head.o: head.s
19 @$(AS) -o head.o head.s
20
21clean:
22 @rm -f bootsect bootsect.o setup setup.o head.o