From 7643298424eaca1c10dd7ed577b3b77246bbf441 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 2 Oct 2012 19:02:14 -0500 Subject: [PATCH] Update makefiles --- .../programmer/dependencies/libxsvf/Makefile | 15 ++++-- fpga/xilinx/programmer/svfplayer/Makefile | 47 +++++++++++++++++++ 2 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 fpga/xilinx/programmer/svfplayer/Makefile 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 +