head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2007.01.25.22.52.58;	author cwalter;	state Exp;
branches;
next	1.1;
commitid	539a45b934c84567;

1.1
date	2007.01.25.21.20.06;	author cwalter;	state Exp;
branches;
next	;
commitid	2dbb45b91f054567;


desc
@@


1.2
log
@ - Changed to compile UART example.
@
text
@#
# RISE- Makefile
#
# Copyright (c) 2006 Christian Walter, Vienna 2006.
#
# $Id: Makefile.simple,v 1.1 2007/01/25 21:20:06 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) $< $@@

@


1.1
log
@ - Added makefile example to improve design flow.
 - Added subroutine example.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.1 2007/01/25 20:32:15 cwalter Exp $
d19 2
a20 2
TGT         = subroutine
ASRC        = subroutine.s
@

