diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -8,7 +8,7 @@ BOOTBINS = $(patsubst boot/%.c,share/%.boot,$(BOOTSRCS)) SRCS = $(sort $(wildcard src/*.c)) DATA = $(sort $(wildcard src/*.bin)) OBJS = $(SRCS:.c=.o) $(DATA:.bin=.o) -BINS = bin/satmkboot +BINS = bin/satmkboot bin/satmkiso .PHONY: all clean @@ -17,10 +17,10 @@ all: $(BINS) $(BOOTBINS) clean: rm -f $(BINS) $(OBJS) $(BOOTBINS) $(BOOTELFS) -bin/satmkboot: \ - src/satmkboot.o \ - src/securitycode.o \ - src/symbols.o +bin/satmkboot: src/securitycode.o src/symbols.o + +bin/%: src/%.o + $(CC) $(LDFLAGS) $^ -o $@ share/%.boot: boot/%.elf saturn-objcopy -O binary $< $@ @@ -34,5 +34,3 @@ share/%.boot: boot/%.elf %.o: %.c $(CC) $(CFLAGS) -c $< -o $@ -%: - $(CC) $(LDFLAGS) $^ -o $@ |