Skip to content

Commit 0e906eb

Browse files
author
Phil Elwell
committed
armstubs: Makefile: More specific patterns go first
Makefile rules are processed in order until a match is found, so a more general pattern must appear after a more specific pattern.
1 parent d820ab9 commit 0e906eb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

armstubs/Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,36 @@ all : $(BINS)
1717
clean :
1818
rm -f *.o *.out *.tmp *.bin *.ds *.C armstubs.h bin2c *~
1919

20-
%.o: %.S
21-
$(CC) -DBCM2710=0 -c $< -o $@
22-
2320
%8.o: %8.S
2421
$(CC8) -c $< -o $@
2522

2623
%8-32.o: %7.S
2724
$(CC) -DBCM2710=1 -c $< -o $@
2825

29-
%.elf: %.o
30-
$(LD) --section-start=.init=0 $< -o $@
26+
%.o: %.S
27+
$(CC) -DBCM2710=0 -c $< -o $@
3128

3229
%8.elf: %8.o
3330
$(LD8) --section-start=.text=0 $< -o $@
3431

32+
%.elf: %.o
33+
$(LD) --section-start=.init=0 $< -o $@
34+
%8.tmp: %8.elf
35+
$(OBJCOPY8) $< -O binary $@
36+
3537
%.tmp: %.elf
3638
$(OBJCOPY) $< -O binary $@
3739

38-
%8.tmp: %8.elf
39-
$(OBJCOPY8) $< -O binary $@
4040

4141
%.bin: %.tmp
4242
dd if=$< ibs=256 count=1 of=$@ conv=sync
4343

44-
%.ds: %.bin
45-
$(OBJDUMP) -D --target binary $< > $@
46-
4744
%8.ds: %8.bin
4845
$(OBJDUMP8) -D --target binary $< > $@
4946

47+
%.ds: %.bin
48+
$(OBJDUMP) -D --target binary $< > $@
49+
5050
%.C: %.bin bin2c
5151
$(BIN2C) $< > $@
5252

0 commit comments

Comments
 (0)