Rev 913 | Rev 1022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 913 | Rev 933 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | 58 | ||
59 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
59 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
60 | 60 | ||
61 | .PHONY: all clean depend |
61 | .PHONY: all clean depend |
62 | 62 | ||
63 | all: ../image.boot |
63 | all: image.boot |
64 | 64 | ||
65 | -include Makefile.depend |
65 | -include Makefile.depend |
66 | 66 | ||
67 | ../image.boot: depend $(OBJECTS) kernel.o |
67 | image.boot: depend $(OBJECTS) kernel.o |
68 | $(LD) -no-check-sections -N -T _link.ld $(OBJECTS) kernel.o -o $@ |
68 | $(LD) -no-check-sections -N -T _link.ld $(OBJECTS) kernel.o -o $@ |
69 | 69 | ||
70 | depend: |
70 | depend: |
71 | -makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null |
71 | -makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null |
72 | 72 | ||
73 | clean: |
73 | clean: |
74 | -rm -f $(OBJECTS) ../image.boot kernel.o Makefile.depend |
74 | -rm -f $(OBJECTS) image.boot kernel.o Makefile.depend |
75 | 75 | ||
76 | kernel.o: $(KERNEL) |
76 | kernel.o: $(KERNEL) |
77 | $(OBJCOPY) -I binary -O elf32-powerpc -B powerpc $(KERNEL) $@ |
77 | $(OBJCOPY) -I binary -O elf32-powerpc -B powerpc $(KERNEL) $@ |
78 | 78 | ||
79 | %.o: %.S |
79 | %.o: %.S |