URL
https://opencores.org/ocsvn/rise/rise/trunk
Subversion Repositories rise
[/] [rise/] [trunk/] [examples/] [Makefile.simple] - Rev 151
Go to most recent revision | 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) $< $@
Go to most recent revision | Compare with Previous | Blame | View Log