| Line 5... |
Line 5... |
| 5 |
AS := $(CROSS)as
|
5 |
AS := $(CROSS)as
|
| 6 |
LD := $(CROSS)ld
|
6 |
LD := $(CROSS)ld
|
| 7 |
OBJCOPY := $(CROSS)objcopy
|
7 |
OBJCOPY := $(CROSS)objcopy
|
| 8 |
UCLPACK := ucl2e10singleblk
|
8 |
UCLPACK := ucl2e10singleblk
|
| 9 |
|
9 |
|
| 10 |
CFLAGS += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections
|
10 |
CFLAGS += -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections
|
| 11 |
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
|
11 |
LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --gc-sections
|
| 12 |
|
12 |
|
| 13 |
ifeq ($(shell uname),Linux)
|
- |
|
| 14 |
CFLAGS += -I/usr/include
|
- |
|
| 15 |
endif
|
- |
|
| 16 |
|
- |
|
| 17 |
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
|
13 |
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
|
| 18 |
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
|
14 |
preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
|
| 19 |
|
15 |
|
| 20 |
REVISION := $(shell svnversion .)
|
16 |
REVISION := $(shell svnversion .)
|
| 21 |
REVISIONINT := $(shell echo $(REVISION) | sed -e "s/[^0-9].*$$//")
|
17 |
REVISIONINT := $(shell echo $(REVISION) | sed -e "s/[^0-9].*$$//")
|