summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJames <james.mckenzie@citrix.com>2013-10-12 13:27:36 +0100
committerJames <james.mckenzie@citrix.com>2013-10-12 13:27:36 +0100
commitbebd13aa0647d237e1c55a4e1338b87361674922 (patch)
treef7c8d22ae00d444ed73deeb32fdb70955e5f9ea3 /Makefile
parent3b3237c2ba1bb29f7d43fda9fdbc08bd0c32e5f9 (diff)
downloadpong-bebd13aa0647d237e1c55a4e1338b87361674922.tar.gz
pong-bebd13aa0647d237e1c55a4e1338b87361674922.tar.bz2
pong-bebd13aa0647d237e1c55a4e1338b87361674922.zip
fish
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 88af64c..57bb799 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,8 @@ asm.stamp:fit.stamp
tools/wrap quartus_asm --read_settings_files=off --write_settings_files=off pong3 -c pong3
touch $@
+${SOF}:asm.stamp
+
fit.stamp: ans.stamp
tools/wrap quartus_fit --read_settings_files=off --write_settings_files=off pong3 -c pong3
touch $@
@@ -37,10 +39,12 @@ ${SOPC_FILE}:ans.stamp
source.stamp:${SRC}
touch source.stamp
-elf.stamp: src/Makefile
+${ELF}: src/Makefile
tools/wrap make -C src
- touch $@
+elf.stamp:${ELF}
+ touch $@
+
src/Makefile: bsp.stamp
tools/wrap nios2-app-generate-makefile --bsp-dir bsp --src-rdir src --app-dir src --elf-name ${PROJ}.elf
@@ -53,7 +57,6 @@ bsp.stamp:${SOPC_FILE}
load_elf.stamp:${ELF} load_sof.stamp
tools/wrap nios2-download ${ELF} -g
- touch $@
load_sof.stamp: ${SOF}
tools/wrap quartus_pgm -m JTAG -o "p;${SOF}"