Rev 3150 | Rev 3569 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3150 | Rev 3211 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | 44 | ||
45 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
45 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
46 | 46 | ||
47 | .PHONY: all clean depend disasm |
47 | .PHONY: all clean depend disasm |
48 | 48 | ||
49 | all: $(OUTPUT) disasm |
49 | all: $(OUTPUT) $(OUTPUT).disasm |
50 | 50 | ||
51 | -include Makefile.depend |
51 | -include Makefile.depend |
52 | 52 | ||
53 | clean: |
53 | clean: |
54 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
54 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
Line 57... | Line 57... | ||
57 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
57 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
58 | 58 | ||
59 | $(OUTPUT): $(OBJECTS) $(LIBS) |
59 | $(OUTPUT): $(OBJECTS) $(LIBS) |
60 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
60 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
61 | 61 | ||
62 | disasm: |
62 | disasm: $(OUTPUT).disasm |
- | 63 | ||
- | 64 | $(OUTPUT).disasm: $(OUTPUT) |
|
63 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
65 | $(OBJDUMP) -d $< >$@ |
64 | 66 | ||
65 | %.o: %.S |
67 | %.o: %.S |
66 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
68 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
67 | 69 | ||
68 | %.o: %.s |
70 | %.o: %.s |