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

Subversion Repositories rise

[/] [rise/] [trunk/] [examples/] [Makefile.simple] - Blame information for rev 139

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 139 cwalter
#
2
# RISE- Makefile
3
#
4
# Copyright (c) 2006 Christian Walter, Vienna 2006.
5
#
6
# $Id: Makefile.simple,v 1.1 2007-01-25 21:20:06 cwalter Exp $
7
#
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
LDFLAGS     =
18
 
19
TGT         = subroutine
20
ASRC        = subroutine.s
21
OBJS        = $(ASRC:.s=.o)
22
 
23
.PHONY: clean all
24
 
25
all: $(TGT).bin $(TGT).vhd
26
 
27
clean:
28
        rm -f $(OBJS)
29
        rm -f $(BIN)
30
 
31
# ---------------------------------------------------------------------------
32
# rules for code generation
33
# ---------------------------------------------------------------------------
34
 
35
%.o:    %.s
36
        $(AS) $(ASFLAGS) -o $@ $<
37
 
38
%.bin: %.o
39
        $(OBJCOPY) -j .text -O binary $< $@
40
 
41
%.vhd: %.bin
42
        $(BIN2VHD) $< $@
43
 

powered by: WebSVN 2.1.0

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