Subversion Repositories freemyipod

Rev

Rev 490 | Rev 665 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 490 Rev 491
Line 14... Line 14...
14
AS      := $(CROSS)as
14
AS      := $(CROSS)as
15
LD      := $(CROSS)ld
15
LD      := $(CROSS)ld
16
OBJCOPY := $(CROSS)objcopy
16
OBJCOPY := $(CROSS)objcopy
17
ELF2ECA := $(CROSS)elf2emcoreapp
17
ELF2ECA := $(CROSS)elf2emcoreapp
18
 
18
 
19
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMCOREDIR)/export -ffunction-sections -fdata-sections -mcpu=arm940t
19
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMCOREDIR)/export -ffunction-sections -fdata-sections -mcpu=arm940t -DARM_ARCH=4
20
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" -d -r --gc-sections
20
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --emit-relocs --gc-sections
21
 
21
 
22
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
22
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
23
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
23
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
24
 
24
 
25
REVISION := $(shell svnversion .)
25
REVISION := $(shell svnversion .)
Line 81... Line 81...
81
else
81
else
82
	@sed -e 's/.*://' -e 's/\\$$//' < $@.dep.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $@.dep
82
	@sed -e 's/.*://' -e 's/\\$$//' < $@.dep.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $@.dep
83
endif
83
endif
84
	@rm -f $@.dep.tmp
84
	@rm -f $@.dep.tmp
85
 
85
 
-
 
86
build/__emcore_%.o: $(EMCOREDIR)/export/%.c
-
 
87
	@echo [CC]     $<
-
 
88
ifeq ($(shell uname),WindowsNT)
-
 
89
	@-if not exist $(subst /,\,$(dir $@)) md $(subst /,\,$(dir $@))
-
 
90
else
-
 
91
	@-mkdir -p $(dir $@)
-
 
92
endif
-
 
93
	@$(CC) -c $(CFLAGS) -o $@ $<
-
 
94
 
86
build/__emcore_%.o: $(EMCOREDIR)/export/%.S
95
build/__emcore_%.o: $(EMCOREDIR)/export/%.S
87
	@echo [CC]     $<
96
	@echo [CC]     $<
88
ifeq ($(shell uname),WindowsNT)
97
ifeq ($(shell uname),WindowsNT)
89
	@-if not exist $(subst /,\,$(dir $@)) md $(subst /,\,$(dir $@))
98
	@-if not exist $(subst /,\,$(dir $@)) md $(subst /,\,$(dir $@))
90
else
99
else