summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 5 insertions, 7 deletions
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 $@