tweak make more

This commit is contained in:
Jeff Epler 2022-10-23 11:43:36 -05:00
parent f45e9572e2
commit 2a6e706c2c
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -32,15 +32,17 @@ LDFLAGS += -Wl,-T,link.ld
.PHONY: default
default: a.out-stripped
py/minidump.py
a.out-stripped: a.out
$(STRIP) -g -o $@ $<
a.out: $(SRCS) | link.ld Makefile
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
a.out: $(SRCS) link.ld Makefile
$(CC) $(CFLAGS) $(SRCS) -o $@ $(LDFLAGS)
.PHONY: clean
clean:
rm -f a.out* link.ld
link.ld: ulp.riscv.ld
link.ld: ulp.riscv.ld Makefile
$(CC) -E -P -xc $(CFLAGS) -o $@ $<