diff options
author | Matt Ettus <matt@ettus.com> | 2010-06-14 11:59:19 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-06-14 11:59:19 -0700 |
commit | 81ad405f9ddecf13e1238bdc53a251b0b71022b5 (patch) | |
tree | 999d7ebf90ad86e8e56aa8f06a44d5b74fa4833f /usrp2/top/Makefile.common | |
parent | fb704918b285a7d039cda27daf35f628442a7dca (diff) | |
parent | 1935f2a4ed0d0abc90bb3fe7fed745ff84ab6d7c (diff) | |
download | uhd-81ad405f9ddecf13e1238bdc53a251b0b71022b5.tar.gz uhd-81ad405f9ddecf13e1238bdc53a251b0b71022b5.tar.bz2 uhd-81ad405f9ddecf13e1238bdc53a251b0b71022b5.zip |
Merge branch 'master' into u2p
* master:
produces good bin files
first attempt at cleaning up the build system
Diffstat (limited to 'usrp2/top/Makefile.common')
-rw-r--r-- | usrp2/top/Makefile.common | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/usrp2/top/Makefile.common b/usrp2/top/Makefile.common new file mode 100644 index 000000000..02b1b9529 --- /dev/null +++ b/usrp2/top/Makefile.common @@ -0,0 +1,51 @@ +# +# Copyright 2008, 2009, 2010 Ettus Research LLC +# + +################################################## +# Constants +################################################## +BASE_DIR = $(abspath ..) +ISE_HELPER = xtclsh $(BASE_DIR)/tcl/ise_helper.tcl +ISE_FILE = $(BUILD_DIR)/$(TOP_MODULE).ise +BIN_FILE = $(BUILD_DIR)/$(TOP_MODULE).bin +MCS_FILE = $(BUILD_DIR)/$(TOP_MODULE).mcs + +################################################## +# Global Targets +################################################## +all: bin + +proj: $(ISE_FILE) + +check: $(ISE_FILE) + $(ISE_HELPER) "Check Syntax" + +synth: $(ISE_FILE) + $(ISE_HELPER) "Synthesize - XST" + +bin: $(BIN_FILE) + +mcs: $(MCS_FILE) + +clean: + $(RM) -r $(BUILD_DIR) + +.PHONY: all proj check synth bin mcs clean + +################################################## +# Dependency Targets +################################################## +$(ISE_FILE): $(SOURCES) + @echo $@ + $(ISE_HELPER) "" + +$(BIN_FILE): $(ISE_FILE) + @echo $@ + $(ISE_HELPER) "Generate Programming File" + touch $@ + +$(MCS_FILE): $(BIN_FILE) + promgen -w -spi -p mcs -o $(MCS_FILE) -s 4096 -u 0 $(BIN_FILE) + +.EXPORT_ALL_VARIABLES: |