Subversion Repositories freemyipod

Rev

Rev 13 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 14
Line 12... Line 12...
12
LDFLAGS ?= "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
12
LDFLAGS ?= "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
13
 
13
 
14
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
14
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
15
 
15
 
16
define TARGET_template
16
define TARGET_template
17
SRC_$(1) := $$(call preprocess,SOURCES,-DTARGET_$(1))
17
SRC_$(1) := $$(call preprocess,SOURCES,-DTARGET_$(1) -Itarget/$(1) -I.)
18
OBJ_$(1) := $$(SRC_$(1):%.c=build/$(1)/%.o)
18
OBJ_$(1) := $$(SRC_$(1):%.c=build/$(1)/%.o)
19
OBJ_$(1) := $$(OBJ_$(1):%.S=build/$(1)/%.o)
19
OBJ_$(1) := $$(OBJ_$(1):%.S=build/$(1)/%.o)
20
 
20
 
21
-include $$(OBJ_$(1):%=%.dep)
21
-include $$(OBJ_$(1):%=%.dep)
22
 
22