##############################################################################
|
##############################################################################
|
#
|
#
|
# Generic Makefile for ISE projects
|
# Generic Makefile for ISE projects
|
#
|
#
|
# $Id: Makefile,v 1.1 2008-04-26 22:13:59 arniml Exp $
|
# $Id: Makefile 179 2009-04-01 19:48:38Z arniml $
|
#
|
#
|
# Execute with 'make ', where target is one of
|
# Execute with 'make ', where target is one of
|
# ise : build ISE project from
|
# ise : build ISE project from
|
# - files in compile_list
|
# - files in compile_list
|
# - project settings in timing.ucf and .ucf
|
# - project settings in timing.ucf and .ucf
|
# - project settings applied in gen_ise_project.tcl
|
# - project settings applied in gen_ise_project.tcl
|
# compile : compile ISE project by means of tcl script
|
# compile : compile ISE project by means of tcl script
|
# compile_project.tcl
|
# compile_project.tcl
|
# | all : run through all targets above
|
# | all : run through all targets above
|
#
|
#
|
##############################################################################
|
##############################################################################
|
|
|
export MODULE := t421
|
export MODULE := t421
|
|
|
export COMPILE_LIST := compile_list
|
export COMPILE_LIST := compile_list
|
SOURCE_FILES := $(shell cat $(COMPILE_LIST))
|
SOURCE_FILES := $(shell cat $(COMPILE_LIST))
|
export BLD := bld
|
export BLD := bld
|
|
|
.PHONY: all
|
.PHONY: all
|
all: $(BLD)/$(MODULE).bit
|
all: $(BLD)/$(MODULE).bit
|
|
|
.PHONY: ise
|
.PHONY: ise
|
ise: $(BLD)/$(MODULE).ise
|
ise: $(BLD)/$(MODULE).ise
|
|
|
.PHONY: compile
|
.PHONY: compile
|
compile: $(BLD)/$(MODULE).bit
|
compile: $(BLD)/$(MODULE).bit
|
|
|
$(BLD)/$(MODULE).ise: $(COMPILE_LIST) *.ucf gen_ise_project.tcl
|
$(BLD)/$(MODULE).ise: $(COMPILE_LIST) *.ucf gen_ise_project.tcl
|
xtclsh gen_ise_project.tcl
|
xtclsh gen_ise_project.tcl
|
|
|
$(BLD)/$(MODULE).bit: $(SOURCE_FILES) $(BLD)/$(MODULE).ise compile_project.tcl
|
$(BLD)/$(MODULE).bit: $(SOURCE_FILES) $(BLD)/$(MODULE).ise compile_project.tcl
|
xtclsh compile_project.tcl
|
xtclsh compile_project.tcl
|
touch $@
|
touch $@
|
|
|
.PHONY: clean
|
.PHONY: clean
|
clean:
|
clean:
|
rm -rf *~ bld
|
rm -rf *~ bld
|
|
|