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

Subversion Repositories rise

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

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 146 cwalter
# $Id: Makefile.simple,v 1.2 2007-01-25 22:52:58 cwalter Exp $
7 139 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
LDFLAGS     =
18
 
19 146 cwalter
TGT         = uart_complex
20
ASRC        = uart_complex.s
21 139 cwalter
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.