Subversion Repositories HelenOS

Rev

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

Rev 3803 Rev 3883
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 37... Line 37...
37
endif
37
endif
38
 
38
 
39
ifeq ($(IMAGE),binary)
39
ifeq ($(IMAGE),binary)
40
	LD_IN = binary
40
	LD_IN = binary
41
endif
41
endif
-
 
42
 
42
ifeq ($(IMAGE),ecoff)
43
ifeq ($(IMAGE),ecoff)
43
	LD_IN = ecoff
44
	LD_IN = ecoff
44
endif
45
endif
-
 
46
 
45
BFD_NAME = elf32-tradlittlemips
47
BFD_NAME = elf32-tradlittlemips
46
BFD_ARCH = mips
48
BFD_ARCH = mips
47
TARGET = mipsel-linux-gnu
49
TARGET = mipsel-linux-gnu
48
TOOLCHAIN_DIR = $(CROSS_PREFIX)/mipsel/bin
50
TOOLCHAIN_DIR = $(CROSS_PREFIX)/mipsel/bin
49
 
51
 
Line 61... Line 63...
61
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
63
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
62
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
64
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
63
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
65
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
64
endif
66
endif
65
 
67
 
66
CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 -pipe
68
CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 -pipe
67
 
-
 
68
ifdef REVISION
-
 
69
	CFLAGS += "-DREVISION=\"$(REVISION)\""
-
 
70
endif
-
 
71
 
-
 
72
ifdef TIMESTAMP
-
 
73
	CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
-
 
74
endif
-
 
75
 
69
 
76
SOURCES = \
70
SOURCES = \
77
	main.c \
71
	main.c \
78
	msim.c \
72
	msim.c \
79
	_components.c \
73
	_components.c \