Rev 3424 | Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3424 | Rev 3425 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | $(addsuffix .o,$(basename $(IMAGES))) |
57 | $(addsuffix .o,$(basename $(IMAGES))) |
58 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
58 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
59 | 59 | ||
60 | .PHONY: all clean depend disasm |
60 | .PHONY: all clean depend disasm |
61 | 61 | ||
62 | all: $(OUTPUT) disasm |
62 | all: $(OUTPUT) $(OUTPUT).disasm |
63 | 63 | ||
64 | -include Makefile.depend |
64 | -include Makefile.depend |
65 | 65 | ||
66 | clean: |
66 | clean: |
67 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
67 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
Line 70... | Line 70... | ||
70 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
70 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
71 | 71 | ||
72 | $(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(LIBS) |
72 | $(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(LIBS) |
73 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
73 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
74 | 74 | ||
75 | disasm: |
75 | disasm: $(OUTPUT).disasm |
- | 76 | ||
- | 77 | $(OUTPUT).disasm: $(OUTPUT) |
|
76 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
78 | $(OBJDUMP) -d $< >$@ |
77 | 79 | ||
78 | %.o: %.S |
80 | %.o: %.S |
79 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
81 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
80 | 82 | ||
81 | %.o: %.s |
83 | %.o: %.s |