Rev 3536 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3536 | Rev 4377 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | # |
27 | # |
28 | 28 | ||
29 | include ../../../../version |
29 | include ../../../../version |
30 | include ../../../Makefile.config |
30 | -include ../../../../Makefile.config |
31 | 31 | ||
32 | ## Toolchain configuration |
32 | ## Toolchain configuration |
33 | # |
33 | # |
34 | 34 | ||
35 | ifndef CROSS_PREFIX |
35 | ifndef CROSS_PREFIX |
Line 55... | Line 55... | ||
55 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
55 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
56 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
56 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
57 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
57 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
58 | endif |
58 | endif |
59 | 59 | ||
60 | CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64 -mno-fpu -pipe |
60 | CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../../genarch -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64 -mno-fpu -pipe |
61 | - | ||
62 | ifdef REVISION |
- | |
63 | CFLAGS += "-DREVISION=\"$(REVISION)\"" |
- | |
64 | endif |
- | |
65 | - | ||
66 | ifdef TIMESTAMP |
- | |
67 | CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" |
- | |
68 | endif |
- | |
69 | 61 | ||
70 | SOURCES = \ |
62 | SOURCES = \ |
71 | main.c \ |
63 | main.c \ |
72 | _components.c \ |
64 | _components.c \ |
73 | ../../../generic/printf.c \ |
65 | ../../../generic/printf.c \ |
Line 107... | Line 99... | ||
107 | 99 | ||
108 | RD_SRVS = \ |
100 | RD_SRVS = \ |
109 | $(USPACEDIR)/srv/fb/fb \ |
101 | $(USPACEDIR)/srv/fb/fb \ |
110 | $(USPACEDIR)/srv/kbd/kbd \ |
102 | $(USPACEDIR)/srv/kbd/kbd \ |
111 | $(USPACEDIR)/srv/console/console \ |
103 | $(USPACEDIR)/srv/console/console \ |
112 | $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ |
104 | $(USPACEDIR)/srv/fs/tmpfs/tmpfs |
- | 105 | ||
- | 106 | ifeq ($(MACHINE),generic) |
|
- | 107 | RD_SRVS += \ |
|
113 | $(USPACEDIR)/srv/fs/fat/fat |
108 | $(USPACEDIR)/srv/fs/fat/fat \ |
- | 109 | $(USPACEDIR)/srv/fhc/fhc \ |
|
- | 110 | $(USPACEDIR)/srv/obio/obio |
|
- | 111 | endif |
|
114 | 112 | ||
115 | RD_APPS = \ |
113 | RD_APPS = \ |
116 | $(USPACEDIR)/app/trace/trace \ |
114 | $(USPACEDIR)/app/trace/trace \ |
117 | $(USPACEDIR)/app/tetris/tetris \ |
115 | $(USPACEDIR)/app/tetris/tetris \ |
118 | $(USPACEDIR)/app/tester/tester \ |
- | |
119 | $(USPACEDIR)/app/trace/trace \ |
116 | $(USPACEDIR)/app/trace/trace \ |
120 | $(USPACEDIR)/app/bdsh/bdsh \ |
117 | $(USPACEDIR)/app/bdsh/bdsh \ |
121 | $(USPACEDIR)/app/klog/klog |
118 | $(USPACEDIR)/app/klog/klog |
122 | 119 | ||
- | 120 | ifeq ($(MACHINE),generic) |
|
- | 121 | RD_APPS += \ |
|
- | 122 | $(USPACEDIR)/app/tester/tester |
|
- | 123 | endif |
|
- | 124 | ||
123 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
125 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
124 | ALL_COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(ALL_COMPONENTS)))) |
126 | ALL_COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(ALL_COMPONENTS)))) |
125 | 127 | ||
126 | .PHONY: all clean depend |
128 | .PHONY: all clean depend |
127 | 129 |