2 ## This file is part of the fx2lafw project.
4 ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 # sigrok-firmware-fx2lafw package/tarball version number.
24 DESTDIR ?= /usr/local/share/sigrok-firmware
26 REPO = git://sigrok.git.sourceforge.net/gitroot/sigrok/fx2lafw
28 TARBALLDIR = sigrok-firmware-fx2lafw-$(VERSION)
32 build-all: saleae-logic cwav-usbeeax cwav-usbeesx cypress-fx2 braintechnology-usb-lps
35 $(MAKE) -C hw/saleae-logic
38 $(MAKE) -C hw/cwav-usbeeax
41 $(MAKE) -C hw/cwav-usbeesx
44 $(MAKE) -C hw/cypress-fx2
46 braintechnology-usb-lps:
47 $(MAKE) -C hw/braintechnology-usb-lps
50 @git log > ChangeLog || touch ChangeLog
53 git clone $(REPO) $(TARBALLDIR)
54 cd $(TARBALLDIR) && $(MAKE) ChangeLog && cd ..
55 @tar -c -z -f $(TARBALLDIR).tar.gz $(TARBALLDIR)
60 @cp hw/saleae-logic/build/*.fw $(DESTDIR)
61 @cp hw/cwav-usbeeax/build/*.fw $(DESTDIR)
62 @cp hw/cwav-usbeesx/build/*.fw $(DESTDIR)
63 @cp hw/cypress-fx2/build/*.fw $(DESTDIR)
64 @cp hw/braintechnology-usb-lps/build/*.fw $(DESTDIR)
67 @rm -rf hw/saleae-logic/build
68 @rm -rf hw/cwav-usbeeax/build
69 @rm -rf hw/cwav-usbeesx/build
70 @rm -rf hw/cypress-fx2/build
71 @rm -rf hw/braintechnology-usb-lps/build
73 .PHONY: saleae-logic cwav-usbeeax cwav-usbeesx cypress-fx2 braintechnology-usb-lps