OpenCores
URL https://opencores.org/ocsvn/rise/rise/trunk

Subversion Repositories rise

[/] [rise/] [trunk/] [examples/] [Makefile] - Blame information for rev 148

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 136 cwalter
#
2
# RISE- Makefile
3
#
4
# Copyright (c) 2006 Christian Walter, Vienna 2006.
5
#
6 139 cwalter
# $Id: Makefile,v 1.2 2007-01-25 21:20:06 cwalter Exp $
7 136 cwalter
#
8
# ---------------------------------------------------------------------------
9
 
10
BASE        = /opt/gcc-rise/bin
11
AS              = $(BASE)/rise-as
12
OBJCOPY     = $(BASE)/rise-objcopy
13
LD              = $(BASE)/rise-ld
14
BIN2VHD     = bin2vhd
15
 
16
ASFLAGS     =
17
LDSCRIPT    = m5235-ram.ld
18
LDFLAGS     =
19
 
20
TGT         = demo
21
ASRC        = subroutine.s
22
OBJS        = $(ASRC:.s=.o)
23
BIN         = $(TGT).elf $(TGT).bin $(TGT).vhd
24
 
25
.PHONY: clean all
26
 
27
all: $(BIN)
28
 
29
$(TGT).elf: $(OBJS)
30
        $(LD) -o $(TGT).elf $(OBJS)
31
 
32
clean:
33
        rm -f $(OBJS)
34
        rm -f $(BIN)
35
 
36
# ---------------------------------------------------------------------------
37
# rules for code generation
38
# ---------------------------------------------------------------------------
39
 
40
%.o:    %.s
41
        $(AS) $(ASFLAGS) -o $@ $<
42
 
43
%.bin: %.elf
44
        $(OBJCOPY) -O binary $< $@
45 139 cwalter
#       $(OBJCOPY) -j .text -O binary $< $@
46 136 cwalter
 
47
%.vhd: %.bin
48
        $(BIN2VHD) $< $@

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.