first commit
This commit is contained in:
18
biosboot/Makefile
Normal file
18
biosboot/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user