Rev 1908 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1908 | Rev 2285 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | # $Id: Makefile |
1 | # $Id: Makefile 2285 2014-04-16 20:12:57Z arune $ |
| 2 | BIOS_VERSION = 0x1342 |
2 | BIOS_VERSION = 0x1342 |
| 3 | 3 | ||
| 4 | # Paths: set default pathnames if they are not |
4 | # Paths: set default pathnames if they are not |
| 5 | # passed on from parent Makefile. |
5 | # passed on from parent Makefile. |
| 6 | ifndef TARGET |
6 | ifndef TARGET |
| Line 179... | Line 179... | ||
| 179 | DEP = $(OBJ:.o=.d) |
179 | DEP = $(OBJ:.o=.d) |
| 180 | 180 | ||
| 181 | BUILDDIRS = $(sort $(filter-out ./,$(dir $(OBJ)))) |
181 | BUILDDIRS = $(sort $(filter-out ./,$(dir $(OBJ)))) |
| 182 | 182 | ||
| 183 | # Compiler flags to generate dependency files. |
183 | # Compiler flags to generate dependency files. |
| 184 | GENDEPFLAGS = -MMD -MP |
184 | GENDEPFLAGS = -MMD -MP |
| 185 | 185 | ||
| 186 | # Default target. |
186 | # Default target. |
| 187 | all: check_binaries sizebefore buildtree build lib sizeafter |
187 | all: check_binaries sizebefore buildtree build lib sizeafter |
| 188 | 188 | ||
| 189 | build: elf hex eep lss sym |
189 | build: elf hex eep lss sym |
| Line 308... | Line 308... | ||
| 308 | 308 | ||
| 309 | # Assemble: create object files from assembler source files. |
309 | # Assemble: create object files from assembler source files. |
| 310 | %.o : %.S |
310 | %.o : %.S |
| 311 | @$(ECHO) $(MSG_ASSEMBLING) $< |
311 | @$(ECHO) $(MSG_ASSEMBLING) $< |
| 312 | @$(CC) -c $(ASFLAGS) $< -o $@ |
312 | @$(CC) -c $(ASFLAGS) $< -o $@ |
| 313 | - | ||
| 314 | # Depends: create dependency files from c source files. |
- | |
| 315 | #%.d : %.c | $(BUILDDIRS) |
- | |
| 316 | # @$(ECHO) $(MSG_DEPEND) $< |
- | |
| 317 | # @$(CC) -c $(CFLAGS) $(GENDEPFLAGS) $< |
- | |
| 318 | 313 | ||
| 319 | # Buildtree: create directories for output files. |
314 | # Buildtree: create directories for output files. |
| 320 | $(BUILDDIRS) : |
315 | $(BUILDDIRS) : |
| 321 | @$(ECHO) $(MSG_CREATE) $@ |
316 | @$(ECHO) $(MSG_CREATE) $@ |
| 322 | @$(MKDIR) -p $@ |
317 | @$(MKDIR) -p $@ |