summaryrefslogtreecommitdiffstats
path: root/fpga/xilinx
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-02 19:02:14 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-02 19:02:14 -0500
commit7643298424eaca1c10dd7ed577b3b77246bbf441 (patch)
treecb1d8bfe16ae956844aeb15cdf52a89d412fadbc /fpga/xilinx
parentd1b70f80180fe4b5ac6078e2be9678fc36d74c5c (diff)
downloadulab-7643298424eaca1c10dd7ed577b3b77246bbf441.tar.gz
ulab-7643298424eaca1c10dd7ed577b3b77246bbf441.zip
Update makefiles
Diffstat (limited to 'fpga/xilinx')
-rw-r--r--fpga/xilinx/programmer/dependencies/libxsvf/Makefile15
-rw-r--r--fpga/xilinx/programmer/svfplayer/Makefile47
2 files changed, 58 insertions, 4 deletions
diff --git a/fpga/xilinx/programmer/dependencies/libxsvf/Makefile b/fpga/xilinx/programmer/dependencies/libxsvf/Makefile
index 396c1b8..3b8505f 100644
--- a/fpga/xilinx/programmer/dependencies/libxsvf/Makefile
+++ b/fpga/xilinx/programmer/dependencies/libxsvf/Makefile
@@ -47,15 +47,22 @@ help:
@echo " .... build the library and all examples"
@echo ""
@echo " $(MAKE) install"
- @echo " .... install everything in /usr/local/"
+ @echo " .... install everything in /usr/"
+ @echo ""
+ @echo " $(MAKE) install_libxsvf"
+ @echo " .... install libxsvf in /usr/"
@echo ""
all: libxsvf.a xsvftool-gpio xsvftool-ft232h xsvftool-xpcu
install: all
- install -Dt /usr/local/bin/ xsvftool-gpio xsvftool-ft232h xsvftool-xpcu
- install -Dt /usr/local/include/ -m 644 libxsvf.h
- install -Dt /usr/local/lib/ -m 644 libxsvf.a
+ install -Dt /usr/bin/ xsvftool-gpio xsvftool-ft232h xsvftool-xpcu
+ install -Dt /usr/include/ -m 644 libxsvf.h
+ install -Dt /usr/lib/ -m 644 libxsvf.a
+
+install_libxsvf: libxsvf.a
+ install -Dt /usr/include/ -m 644 libxsvf.h
+ install -Dt /usr/lib/ -m 644 libxsvf.a
libxsvf.a: tap.o statename.o memname.o svf.o xsvf.o scan.o play.o
rm -f libxsvf.a
diff --git a/fpga/xilinx/programmer/svfplayer/Makefile b/fpga/xilinx/programmer/svfplayer/Makefile
new file mode 100644
index 0000000..176b0a3
--- /dev/null
+++ b/fpga/xilinx/programmer/svfplayer/Makefile
@@ -0,0 +1,47 @@
+# Copyright (C) 2012 Timothy Pearson
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+AR = ar
+RANLIB = ranlib
+CC = gcc
+
+CFLAGS += -Wall -Os -ggdb -MD
+#CFLAGS += -Wextra -Wno-unused-parameter -Werror
+
+help:
+ @echo ""
+ @echo "Usage:"
+ @echo ""
+ @echo " $(MAKE) xsvf-rpi"
+ @echo " .... build xsvf-rpi"
+ @echo ""
+ @echo " $(MAKE) all"
+ @echo " .... build everything"
+ @echo ""
+ @echo " $(MAKE) install"
+ @echo " .... install everything in /usr/"
+ @echo ""
+
+all: xsvf-rpi
+
+install: all
+ install -Dt /usr/bin/ xsvf-rpi
+
+xsvf-rpi: /usr/lib/libxsvf.a xsvf-rpi.o
+
+clean:
+ rm -f xsvf-rpi.o
+
+-include *.d
+