summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames <james.mckenzie@citrix.com>2013-10-12 11:59:56 +0100
committerJames <james.mckenzie@citrix.com>2013-10-12 11:59:56 +0100
commit8b91c2f0452ce241a2f69481e156d5fd313955dc (patch)
treef1c6a358c556535c848e071a2bae70507852e8f2
parent001378df36e77efdb74d007f140cef1bf9b3fe7e (diff)
downloadpong-8b91c2f0452ce241a2f69481e156d5fd313955dc.zip
pong-8b91c2f0452ce241a2f69481e156d5fd313955dc.tar.gz
pong-8b91c2f0452ce241a2f69481e156d5fd313955dc.tar.bz2
fish
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index afe7547..9214edf 100644
--- a/Makefile
+++ b/Makefile
@@ -33,12 +33,20 @@ ${SOPC_FILE}:ans.stamp
source.stamp:${SRC}
touch source.stamp
+src/Makefile: bsp.stamp
+ nios2-app-generate-makefile --bsp-dir bsp --src-rdir src --app-dir src
+
bsp.stamp:${SOPC_FILE}
/bin/rm -rf ${BSP_DIR}
mkdir -p ${BSP_DIR}
tools/wrap nios2-bsp ${BSP_TYPE} ${BSP_DIR} ${SOPC_FILE} ${NIOS2_BSP_ARGS} ${CPU_NAME}
tools/wrap make -C ${BSP_DIR}
touch $@
+
+clean:
+ /bin/rm -rf ${BSP_DIR}
+ /bin/rm -f ${SOPC_FILE} src/Makefile
+
#