Subversion Repositories HelenOS

Rev

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

Rev 2648 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
ifeq ($(IMAGE),binary)
-
 
36
	BFD = binary
-
 
37
endif
-
 
38
ifeq ($(IMAGE),ecoff)
-
 
39
	BFD = ecoff-littlemips
-
 
40
endif
-
 
41
BFD_NAME = elf32-tradlittlemips
-
 
42
BFD_ARCH = mips
35
TARGET = mipsel-linux-gnu
43
TARGET = mipsel-linux-gnu
36
TOOLCHAIN_DIR = /usr/local/mipsel/bin
44
TOOLCHAIN_DIR = /usr/local/mipsel/bin
37
 
45
 
38
ifeq ($(COMPILER),gcc_native)
46
ifeq ($(COMPILER),gcc_native)
39
	CC = gcc
47
	CC = gcc
Line 70... Line 78...
70
endif
78
endif
71
 
79
 
72
SOURCES = \
80
SOURCES = \
73
	main.c \
81
	main.c \
74
	msim.c \
82
	msim.c \
-
 
83
	_components.c \
75
	../../../generic/printf.c \
84
	../../../generic/printf.c \
76
	asm.S \
85
	asm.S \
77
	boot.S
86
	boot.S
78
 
87
 
79
COMPONENTS = \
88
COMPONENTS = \
Line 105... Line 114...
105
 
114
 
106
depend:
115
depend:
107
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
116
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
108
 
117
 
109
clean:
118
clean:
110
	-rm -f _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
119
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
111
 
120
 
112
_components.h _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
121
_components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
113
	./pack $(IMAGE) $(OBJCOPY) $(COMPONENTS)
122
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD) $(BFD_ARCH) 4096 $(COMPONENTS)
114
 
123
 
115
%.o: %.S
124
%.o: %.S
116
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
125
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
117
 
126
 
118
%.o: %.c
127
%.o: %.c