Subversion Repositories freemyipod

Rev

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

Rev 99 Rev 110
Line 1... Line 1...
1
NAME := helloworld
1
NAME := helloworld
2
 
2
 
-
 
3
EMBIOSDIR ?= ../../embios/trunk/
-
 
4
 
3
CROSS   ?= arm-none-eabi-
5
CROSS   ?= arm-none-eabi-
4
CC      := $(CROSS)gcc
6
CC      := $(CROSS)gcc
5
AS      := $(CROSS)as
7
AS      := $(CROSS)as
6
LD      := $(CROSS)ld
8
LD      := $(CROSS)ld
7
OBJCOPY := $(CROSS)objcopy
9
OBJCOPY := $(CROSS)objcopy
8
UCLPACK := ucl2e10singleblk
10
UCLPACK := ucl2e10singleblk
9
 
11
 
10
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I.. -ffunction-sections -fdata-sections
12
CFLAGS  += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -I$(EMBIOSDIR)/export -ffunction-sections -fdata-sections
11
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
13
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
12
 
14
 
13
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
15
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
14
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
16
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
15
 
17