Rev 2698 | Rev 3343 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2698 | Rev 3201 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | 50 | ||
51 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
51 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
52 | 52 | ||
53 | .PHONY: all clean depend disasm |
53 | .PHONY: all clean depend disasm |
54 | 54 | ||
55 | all: $(OUTPUT) disasm |
55 | all: $(OUTPUT) $(OUTPUT).disasm |
56 | 56 | ||
57 | -include Makefile.depend |
57 | -include Makefile.depend |
58 | 58 | ||
59 | clean: |
59 | clean: |
60 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
60 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
Line 63... | Line 63... | ||
63 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
63 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
64 | 64 | ||
65 | $(OUTPUT): $(OBJECTS) $(LIBS) |
65 | $(OUTPUT): $(OBJECTS) $(LIBS) |
66 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
66 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
67 | 67 | ||
68 | disasm: |
68 | disasm: $(OUTPUT).disasm |
- | 69 | ||
- | 70 | $(OUTPUT).disasm: $(OUTPUT) |
|
69 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
71 | $(OBJDUMP) -d $< >$@ |
70 | 72 | ||
71 | %.o: %.S |
73 | %.o: %.S |
72 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
74 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
73 | 75 | ||
74 | %.o: %.s |
76 | %.o: %.s |