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


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

1.1
date	2007.01.25.20.32.15;	author cwalter;	state Exp;
branches;
next	;
commitid	13b045b913cc4567;


desc
@@


1.2
log
@ - Added makefile example to improve design flow.
 - Added subroutine example.
@
text
@#
# RISE- Makefile
#
# Copyright (c) 2006 Christian Walter, Vienna 2006.
#
# $Id: Makefile,v 1.1 2007/01/25 20:32:15 cwalter Exp $
#
# ---------------------------------------------------------------------------

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

ASFLAGS     =
LDSCRIPT    = m5235-ram.ld
LDFLAGS	    = 

TGT         = demo
ASRC        = subroutine.s
OBJS        = $(ASRC:.s=.o)
BIN         = $(TGT).elf $(TGT).bin $(TGT).vhd

.PHONY: clean all

all: $(BIN)

$(TGT).elf: $(OBJS) 
	$(LD) -o $(TGT).elf $(OBJS)

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

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

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

%.bin: %.elf
	$(OBJCOPY) -O binary $< $@@
#	$(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.2 2006/08/30 23:18:06 wolti Exp $
d45 1
@

