Rev 3343 | Rev 3492 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3343 | Rev 3397 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | include ../../../Makefile.config |
30 | include ../../../Makefile.config |
31 | 31 | ||
32 | ## Toolchain configuration |
32 | ## Toolchain configuration |
33 | # |
33 | # |
34 | 34 | ||
- | 35 | ifndef CROSS_PREFIX |
|
- | 36 | CROSS_PREFIX = /usr/local |
|
- | 37 | endif |
|
- | 38 | ||
35 | BFD_NAME = elf32-powerpc |
39 | BFD_NAME = elf32-powerpc |
36 | BFD_ARCH = powerpc:common |
40 | BFD_ARCH = powerpc:common |
37 | TARGET = ppc-linux-gnu |
41 | TARGET = ppc-linux-gnu |
38 | TOOLCHAIN_DIR = /usr/local/ppc/bin |
42 | TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc/bin |
39 | 43 | ||
40 | ifeq ($(COMPILER),gcc_native) |
44 | ifeq ($(COMPILER),gcc_native) |
41 | CC = gcc |
45 | CC = gcc |
42 | AS = as |
46 | AS = as |
43 | LD = ld |
47 | LD = ld |
Line 94... | Line 98... | ||
94 | $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ |
98 | $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ |
95 | $(USPACEDIR)/srv/fs/fat/fat \ |
99 | $(USPACEDIR)/srv/fs/fat/fat \ |
96 | $(USPACEDIR)/app/tetris/tetris \ |
100 | $(USPACEDIR)/app/tetris/tetris \ |
97 | $(USPACEDIR)/app/tester/tester \ |
101 | $(USPACEDIR)/app/tester/tester \ |
98 | $(USPACEDIR)/app/klog/klog \ |
102 | $(USPACEDIR)/app/klog/klog \ |
99 | $(USPACEDIR)/app/cli/cli |
103 | $(USPACEDIR)/app/bdsh/bdsh |
100 | 104 | ||
101 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
105 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
102 | COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS)))) |
106 | COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS)))) |
103 | 107 | ||
104 | .PHONY: all clean depend |
108 | .PHONY: all clean depend |