Subversion Repositories HelenOS

Rev

Rev 2649 | Rev 3024 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2649 Rev 3023
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
BFD = elf32-powerpc
-
 
36
BFD_NAME = elf32-powerpc
-
 
37
BFD_ARCH = powerpc:common
35
TARGET = ppc-linux-gnu
38
TARGET = ppc-linux-gnu
36
TOOLCHAIN_DIR = /usr/local/ppc/bin
39
TOOLCHAIN_DIR = /usr/local/ppc/bin
37
 
40
 
38
ifeq ($(COMPILER),gcc_native)
41
ifeq ($(COMPILER),gcc_native)
39
	CC = gcc
42
	CC = gcc
Line 70... Line 73...
70
endif
73
endif
71
 
74
 
72
SOURCES = \
75
SOURCES = \
73
	main.c \
76
	main.c \
74
	ofwarch.c \
77
	ofwarch.c \
-
 
78
	_components.c \
75
	../../../genarch/ofw.c \
79
	../../../genarch/ofw.c \
76
	../../../generic/printf.c \
80
	../../../generic/printf.c \
77
	asm.S \
81
	asm.S \
78
	boot.S
82
	boot.S
79
 
83
 
Line 106... Line 110...
106
 
110
 
107
depend:
111
depend:
108
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
112
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
109
 
113
 
110
clean:
114
clean:
111
	-rm -f _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
115
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
112
 
116
 
113
_components.h _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
117
_components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
114
	./pack $(OBJCOPY) $(COMPONENTS)
118
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD) $(BFD_ARCH) 4096 $(COMPONENTS)
115
 
119
 
116
%.o: %.S
120
%.o: %.S
117
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
121
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
118
 
122
 
119
%.o: %.c
123
%.o: %.c