Subversion Repositories freemyipod

Rev

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

Rev 545 Rev 671
Line 4... Line 4...
4
 
4
 
5
EMCOREDIR ?= ../../emcore/trunk/
5
EMCOREDIR ?= ../../emcore/trunk/
6
LIBBOOTDIR ?= ../../libs/boot/
6
LIBBOOTDIR ?= ../../libs/boot/
7
LIBPNGDIR ?= ../../libs/png/
7
LIBPNGDIR ?= ../../libs/png/
8
LIBUIDIR ?= ../../libs/ui/
8
LIBUIDIR ?= ../../libs/ui/
-
 
9
LIBMKFAT32DIR ?= ../../libs/mkfat32/
9
 
10
 
10
ifeq ($(shell uname),WindowsNT)
11
ifeq ($(shell uname),WindowsNT)
11
CCACHE :=
12
CCACHE :=
12
else
13
else
13
CCACHE := $(shell which ccache)
14
CCACHE := $(shell which ccache)
Line 18... Line 19...
18
AS      := $(CROSS)as
19
AS      := $(CROSS)as
19
LD      := $(CROSS)ld
20
LD      := $(CROSS)ld
20
OBJCOPY := $(CROSS)objcopy
21
OBJCOPY := $(CROSS)objcopy
21
ELF2ECA := $(CROSS)elf2emcoreapp
22
ELF2ECA := $(CROSS)elf2emcoreapp
22
 
23
 
23
LIBINCLUDES := -I$(LIBBOOTDIR)/export -I$(LIBPNGDIR)/export -I$(LIBUIDIR)/export
24
LIBINCLUDES := -I$(LIBBOOTDIR)/export -I$(LIBPNGDIR)/export -I$(LIBUIDIR)/export -I$(LIBMKFAT32DIR)/export
24
 
25
 
25
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMCOREDIR)/export $(LIBINCLUDES) -ffunction-sections -fdata-sections -mcpu=arm940t -DARM_ARCH=4
26
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMCOREDIR)/export $(LIBINCLUDES) -ffunction-sections -fdata-sections -mcpu=arm940t -DARM_ARCH=4
26
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --emit-relocs --gc-sections
27
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --emit-relocs --gc-sections
27
 
28
 
28
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
29
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
29
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
30
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:" | sed -e "s:^\\./::")
30
 
31
 
31
REVISION := $(shell svnversion .)
32
REVISION := $(shell svnversion .)
32
REVISIONINT := $(shell echo $(REVISION) | sed -e "s/[^0-9].*$$//")
33
REVISIONINT := $(shell echo $(REVISION) | sed -e "s/[^0-9].*$$//")
33
 
34
 
34
HELPERS := build/__emcore_armhelpers.o
35
HELPERS := build/__emcore_armhelpers.o