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

Subversion Repositories rise

[/] [rise/] [trunk/] [examples/] [Makefile.simple] - Rev 148

Compare with Previous | Blame | View Log

#
# RISE- Makefile
#
# Copyright (c) 2006 Christian Walter, Vienna 2006.
#
# $Id: Makefile.simple,v 1.2 2007-01-25 22:52:58 cwalter Exp $
#
# ---------------------------------------------------------------------------

BASE        = /opt/gcc-rise/bin
AS              = $(BASE)/rise-as
OBJCOPY     = $(BASE)/rise-objcopy
LD              = $(BASE)/rise-ld
BIN2VHD     = bin2vhd

ASFLAGS     =
LDFLAGS     = 

TGT         = uart_complex
ASRC        = uart_complex.s
OBJS        = $(ASRC:.s=.o)

.PHONY: clean all

all: $(TGT).bin $(TGT).vhd 

clean:
        rm -f $(OBJS)
        rm -f $(BIN) 

# ---------------------------------------------------------------------------
# rules for code generation
# ---------------------------------------------------------------------------

%.o:    %.s
        $(AS) $(ASFLAGS) -o $@ $<

%.bin: %.o
        $(OBJCOPY) -j .text -O binary $< $@

%.vhd: %.bin
        $(BIN2VHD) $< $@

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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