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