Subversion Repositories freemyipod

Rev

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

Rev 551 Rev 660
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 "^\#")