Rev 4307 | Rev 4578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4307 | Rev 4332 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
45 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
46 | DISASMS := $(addsuffix .disasm,$(basename $(OUTPUT))) |
46 | DISASMS := $(addsuffix .disasm,$(basename $(OUTPUT))) |
47 | 47 | ||
48 | .PHONY: all clean depend disasm |
48 | .PHONY: all clean depend disasm |
49 | 49 | ||
50 | all: $(OUTPUT) $(DISAMS) |
50 | all: $(OUTPUT) $(DISASMS) |
51 | 51 | ||
52 | check: |
52 | check: |
53 | $(CC) $(DEFS) $(CFLAGS) $(CHECK_CFLAGS) *.c |
53 | $(CC) $(DEFS) $(CFLAGS) $(CHECK_CFLAGS) *.c |
54 | 54 | ||
55 | -include Makefile.depend |
55 | -include Makefile.depend |
Line 63... | Line 63... | ||
63 | $(OUTPUT): $(OBJECTS) $(LIBS) |
63 | $(OUTPUT): $(OBJECTS) $(LIBS) |
64 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $@.map |
64 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $@.map |
65 | 65 | ||
66 | disasm: $(DISASMS) |
66 | disasm: $(DISASMS) |
67 | 67 | ||
68 | %.disasm: $@ |
68 | %.disasm: % |
69 | $(OBJDUMP) -d $< >$@ |
69 | $(OBJDUMP) -d $< >$@ |
70 | 70 | ||
71 | %.o: %.S |
71 | %.o: %.S |
72 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
72 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
73 | 73 |