don't want handle trap now
This commit is contained in:
2024-12-02 10:19:57 +09:00
parent 8301f87815
commit cb56f42e08
8 changed files with 220 additions and 53 deletions

View File

@@ -7,11 +7,13 @@ OBJS = $(SSRCS:.S=.o) $(CSRCS:.c=.o)
CFLAGS+=-c -fno-pie
CPPFLAGS+=-nostdinc -DLOADADDR=$(LOADADDR) -DLINKADDR=$(LINKADDR) -DBOOTMAGIC=$(BOOTMAGIC)
LDFLAGS+= -s -T ld.script -Ttext=$(LINKADDR) --no-omagic
LDFLAGS+= -s -T ld.script -Ttext=$(LINKADDR) --no-omagic -M
${PROG}: $(OBJS)
@rm -f $(PROG)
$(LD) $(LDFLAGS) -o $(BDIR)/$(PROG) $(OBJS)
$(OBJS): conf.h pio.h
clean:
rm -f $(PROG) $(PROG).bin $(OBJS)
rm -f $(PROG) $(PROG).bin *.o