head	1.1;
access;
symbols
	rel_1_1:1.1;
locks; strict;
comment	@# @;


1.1
date	2008.04.12.21.27.07;	author arniml;	state Exp;
branches;
next	;
commitid	5053480129294567;


desc
@@


1.1
log
@initial check-in
@
text
@##############################################################################
#
# Generic Makefile for ISE projects
#
# $Id$
#
# Execute with 'make <target>', where target is one of
#   ise           : build ISE project from
#                   - files in compile_list
#                   - project settings in timing.ucf and <board>.ucf
#                   - project settings applied in gen_ise_project.tcl
#   compile       : compile ISE project by means of tcl script
#                   compile_project.tcl
#   <blank> | all : run through all targets above
#
##############################################################################

export MODULE := t8048

export COMPILE_LIST := compile_list
SOURCE_FILES := $(shell cat $(COMPILE_LIST))
export BLD := bld

.PHONY: all
all: $(BLD)/$(MODULE).bit

.PHONY: ise
ise: $(BLD)/$(MODULE).ise

.PHONY: compile
compile: $(BLD)/$(MODULE).bit

$(BLD)/$(MODULE).ise: $(COMPILE_LIST) *.ucf gen_ise_project.tcl
	xtclsh gen_ise_project.tcl

$(BLD)/$(MODULE).bit: $(SOURCE_FILES) $(BLD)/$(MODULE).ise compile_project.tcl
	xtclsh compile_project.tcl
	touch $@@

.PHONY: clean
clean:
	rm -rf *~ bld
@
