let "make load" and "make flash" work for other projects, too
xc3sprog $(PROJECT).bit
load: $(PROJECT).bit
- @sed -e "s|%CABLE%|$(CABLE)|g" xc3s1500.batch >xc3s1500.batch.tmp
+ @sed -e "s|%CABLE%|$(CABLE)|g" -e "s|%PROJECT%|$(PROJECT)|g" ../common/xc3s1500.batch >xc3s1500.batch.tmp
impact -batch xc3s1500.batch.tmp
@rm xc3s1500.batch.tmp
flash: $(PROJECT)-xcf02s.mcs $(PROJECT)-xcf04s.mcs
- @sed -e "s|%CABLE%|$(CABLE)|g" xcf.batch >xcf.batch.tmp
+ @sed -e "s|%CABLE%|$(CABLE)|g" -e "s|%PROJECT%|$(PROJECT)|g" ../common/xcf.batch >xcf.batch.tmp
impact -batch xcf.batch.tmp
@rm xcf.batch.tmp
setmode -bscan
setcable -p %CABLE%
identify
-assignFile -p 3 -file raggedstone.bit
+assignFile -p 3 -file %PROJECT%.bit
program -p 3
quit
setmode -bscan
setcable -p %CABLE%
identify
-assignFile -p 1 -file raggedstone-xcf02s.mcs
-assignFile -p 2 -file raggedstone-xcf04s.mcs
+assignFile -p 1 -file %PROJECT%-xcf02s.mcs
+assignFile -p 2 -file %PROJECT%-xcf04s.mcs
program -e -v -p 1
program -e -v -p 2
quit
PROJECT := raggedstone
-include ../Makefile.common
+include ../common/Makefile.common