Subversion Repositories HelenOS

Rev

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

Rev 3024 Rev 3027
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_NAME = elf64-sparc
-
 
36
BFD_ARCH = sparc
35
TARGET = sparc64-linux-gnu
37
TARGET = sparc64-linux-gnu
36
TOOLCHAIN_DIR = /usr/local/sparc64/bin
38
TOOLCHAIN_DIR = /usr/local/sparc64/bin
37
 
39
 
38
ifeq ($(COMPILER),gcc_native)
40
ifeq ($(COMPILER),gcc_native)
39
	CC = gcc
41
	CC = gcc
Line 61... Line 63...
61
	CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
63
	CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
62
endif
64
endif
63
 
65
 
64
SOURCES = \
66
SOURCES = \
65
	main.c \
67
	main.c \
-
 
68
	_components.c \
66
	../../../generic/printf.c \
69
	../../../generic/printf.c \
67
	../../../generic/string.c \
70
	../../../generic/string.c \
68
	../../../genarch/balloc.c \
71
	../../../genarch/balloc.c \
69
	../../../genarch/ofw.c \
72
	../../../genarch/ofw.c \
70
	../../../genarch/ofw_tree.c \
73
	../../../genarch/ofw_tree.c \
Line 101... Line 104...
101
 
104
 
102
depend:
105
depend:
103
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
106
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
104
 
107
 
105
clean:
108
clean:
106
	-rm -f _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot boot.disasm Makefile.depend
109
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot image.map image.disasm Makefile.depend
107
 
110
 
108
_components.h _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
111
_components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS) _link.ld.in
109
	./pack $(IMAGE) $(OBJCOPY) $(COMPONENTS)
112
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 1 "unsigned long" $(COMPONENTS)
110
 
113
 
111
%.o: %.S
114
%.o: %.S
112
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
115
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
113
 
116
 
114
%.o: %.c
117
%.o: %.c
115
	$(CC) $(DEFS) $(CFLAGS) -c $< -o $@
118
	$(CC) $(DEFS) $(CFLAGS) -c $< -o $@
116
 
119
 
117
disasm: image.boot
120
disasm: image.boot
118
	$(OBJDUMP) -d image.boot > boot.disasm
121
	$(OBJDUMP) -d image.boot > image.disasm