Rev 1992 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1992 | Rev 2285 | ||
|---|---|---|---|
| Line 186... | Line 186... | ||
| 186 | BUILDDIRS = $(sort $(filter-out ./,$(dir $(OBJ)))) |
186 | BUILDDIRS = $(sort $(filter-out ./,$(dir $(OBJ)))) |
| 187 | 187 | ||
| 188 | BIOS_RAM_END := $(shell $(AWK) '/0x[0-9a-f]+.*__bios_ram_end/ { print $$1 }' $(BIOSDIR)/bios.map) |
188 | BIOS_RAM_END := $(shell $(AWK) '/0x[0-9a-f]+.*__bios_ram_end/ { print $$1 }' $(BIOSDIR)/bios.map) |
| 189 | 189 | ||
| 190 | # Compiler flags to generate dependency files. |
190 | # Compiler flags to generate dependency files. |
| 191 | GENDEPFLAGS = -MMD -MP |
191 | GENDEPFLAGS = -MMD -MP |
| 192 | 192 | ||
| 193 | # Default target. |
193 | # Default target. |
| 194 | all: sizebefore buildtree config.h build sizeafter |
194 | all: sizebefore buildtree config.h build sizeafter |
| 195 | 195 | ||
| 196 | build: elf hex eep lss sym |
196 | build: elf hex eep lss sym |
| Line 287... | Line 287... | ||
| 287 | 287 | ||
| 288 | # Assemble: create object files from assembler source files. |
288 | # Assemble: create object files from assembler source files. |
| 289 | %.o : %.S |
289 | %.o : %.S |
| 290 | @echo $(MSG_ASSEMBLING) $< |
290 | @echo $(MSG_ASSEMBLING) $< |
| 291 | $(CC) -c $(ASFLAGS) $< -o $@ |
291 | $(CC) -c $(ASFLAGS) $< -o $@ |
| 292 | - | ||
| 293 | # Depends: create dependency files from c source files. |
- | |
| 294 | #%.d : %.c | $(BUILDDIRS) |
- | |
| 295 | # @echo $(MSG_DEPEND) $< |
- | |
| 296 | # @$(CC) -c $(CFLAGS) $(GENDEPFLAGS) $< |
- | |
| 297 | 292 | ||
| 298 | # Buildtree: create directories for output files. |
293 | # Buildtree: create directories for output files. |
| 299 | $(BUILDDIRS) : |
294 | $(BUILDDIRS) : |
| 300 | @echo $(MSG_CREATE) $@ |
295 | @echo $(MSG_CREATE) $@ |
| 301 | @$(MKDIR) -p $@ |
296 | @$(MKDIR) -p $@ |