diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2015-08-02 17:39:27 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2015-09-15 22:43:32 -0500 |
commit | e6b5c8182d60ce160b4c4d7e706afaa6b30f5645 (patch) | |
tree | 14a1aae206d47232370661504d5542639f4e8158 /Makefile | |
parent | 6f2e5c35da79905fb9a35b36cb0e1a5fe1ec4873 (diff) |
add satmkiso utility
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 $@ |