Subversion Repositories HelenOS

Rev

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

Rev 3693 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=powerpc -msoft-float -m32 -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=powerpc -msoft-float -m32 -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
	ofwarch.c \
64
	ofwarch.c \
73
	_components.c \
65
	_components.c \
74
	../../../genarch/ofw.c \
66
	../../../genarch/ofw.c \
75
	../../../generic/printf.c \
67
	../../../generic/printf.c \
-
 
68
	../../../generic/string.c \
76
	asm.S \
69
	asm.S \
77
	boot.S
70
	boot.S
78
 
71
 
79
COMPONENTS = \
72
COMPONENTS = \
80
	$(KERNELDIR)/kernel.bin \
73
	$(KERNELDIR)/kernel.bin \
81
	$(USPACEDIR)/srv/ns/ns \
74
	$(USPACEDIR)/srv/ns/ns \
82
	$(USPACEDIR)/srv/loader/loader \
75
	$(USPACEDIR)/srv/loader/loader \
83
	$(USPACEDIR)/app/init/init \
76
	$(USPACEDIR)/app/init/init \
84
	$(USPACEDIR)/srv/devmap/devmap \
77
	$(USPACEDIR)/srv/devmap/devmap \
85
	$(USPACEDIR)/srv/rd/rd \
78
	$(USPACEDIR)/srv/rd/rd \
86
	$(USPACEDIR)/srv/vfs/vfs 
79
	$(USPACEDIR)/srv/vfs/vfs
87
ifeq ($(RDFMT),tmpfs)
80
ifeq ($(RDFMT),tmpfs)
88
	COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs
81
	COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs
89
endif
82
endif
90
ifeq ($(RDFMT),fat)
83
ifeq ($(RDFMT),fat)
91
	COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat
84
	COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat