Rev 2969 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2969 | Rev 2988 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | main.c \ |
58 | main.c \ |
59 | elf_load.c |
59 | elf_load.c |
60 | 60 | ||
61 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
61 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
62 | 62 | ||
63 | .PHONY: all clean depend disasm |
63 | .PHONY: all clean depend disasm inc |
64 | 64 | ||
65 | all: $(OUTPUT) disasm |
65 | all: inc $(OUTPUT) disasm |
- | 66 | ||
- | 67 | inc: |
|
- | 68 | ln -sfn ../arch/$(ARCH)/include include/arch |
|
66 | 69 | ||
67 | -include Makefile.depend |
70 | -include Makefile.depend |
68 | 71 | ||
69 | clean: |
72 | clean: |
70 | -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm arch/$(ARCH)/_link.ld Makefile.depend |
73 | -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm arch/$(ARCH)/_link.ld Makefile.depend include/arch |
71 | 74 | ||
72 | depend: |
75 | depend: |
73 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
76 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
74 | 77 | ||
75 | $(OUTPUT): $(OBJECTS) $(LIBS) arch/$(ARCH)/_link.ld |
78 | $(OUTPUT): $(OBJECTS) $(LIBS) arch/$(ARCH)/_link.ld |