From e6b5c8182d60ce160b4c4d7e706afaa6b30f5645 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sun, 2 Aug 2015 17:39:27 -0500 Subject: add satmkiso utility --- Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index de590e8..c788d7e 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ -- cgit v1.2.3