first commit

This commit is contained in:
2024-11-27 17:06:47 +09:00
commit 3f556cba19
23 changed files with 1498 additions and 0 deletions

18
biosboot/Makefile Normal file
View File

@@ -0,0 +1,18 @@
include ../*.inc
PROG=biosboot
SRCS=$(wildcard *.S)
OBJS=$(SRCS:.S=.o)
CFLAGS+=-c -fno-pie
LDFLAGS+=-Ttext 0 -T ld.script
CPPFLAGS+=-nostdinc -DLOADADDR=$(LOADADDR) -DLINKADDR=$(LINKADDR) -DBOOTMAGIC=$(BOOTMAGIC)
CPPFLAGS+=-I $(IDIR)
$(PROG): $(OBJS)
$(LD) $(LDFLAGS) -o $(BDIR)/$(PROG) $(OBJS)
$(OBJS): ../def.h
clean:
rm -f $(PROG) $(OBJS)