freemyipod r38 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r37‎ | r38 | r39 >
Date:05:08, 6 August 2010
Author:cmwslw
Status:new
Tags:
Comment:
Automatically includes /usr/include on Linux.
Modified paths:
  • /embios/branches/4g_compat/Makefile (modified) (history)
  • /embios/trunk/Makefile (modified) (history)

Diff [purge]

Index: embios/trunk/Makefile
@@ -10,6 +10,10 @@
1111 CFLAGS += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections
1212 LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
1313
 14+ifeq ($(shell uname),Linux)
 15+ CFLAGS += -I/usr/include
 16+endif
 17+
1418 preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
1519 preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
1620
Index: embios/branches/4g_compat/Makefile
@@ -1,7 +1,7 @@
22 NAME := embios
33 TARGETS := ipodnano2g ipodnano4g
44
5 -CROSS := arm-none-eabi-
 5+CROSS := arm-elf-eabi-
66 CC := $(CROSS)gcc
77 AS := $(CROSS)as
88 LD := $(CROSS)ld
@@ -11,6 +11,10 @@
1212 CFLAGS ?= -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections
1313 LDFLAGS ?= "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
1414
 15+ifeq ($(shell uname),Linux)
 16+ CFLAGS += -I/usr/include
 17+endif
 18+
1519 preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
1620
1721 define TARGET_template