Subversion Repositories freemyipod

Rev

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

Rev 462 Rev 666
Line 15... Line 15...
15
 
15
 
16
CFLAGS  += -Os -mthumb -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections
16
CFLAGS  += -Os -mthumb -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections
17
LDFLAGS += --gc-sections
17
LDFLAGS += --gc-sections
18
 
18
 
19
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
19
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
20
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
20
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:" | sed -e "s:^\\./::")
21
 
21
 
22
SRC := $(call preprocesspaths,SOURCES,)
22
SRC := $(call preprocesspaths,SOURCES,)
23
OBJ := $(SRC:%.c=build/%.o)
23
OBJ := $(SRC:%.c=build/%.o)
24
OBJ := $(OBJ:%.S=build/%.o)
24
OBJ := $(OBJ:%.S=build/%.o)
25
 
25