2 ## This file is part of the fx2lafw project.
4 ## Copyright (C) 2013 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 ACLOCAL_AMFLAGS = -I autostuff
23 SUBDIRS = include fx2lib hw
25 EXTRA_DIST = fx2lafw.c gpif-acquisition.c
28 fx2lafw: fx2lafw.rel gpif-acquisition.rel
31 $(AM_V_GEN)$(SDCC) -mmcs51 -I$(srcdir)/include -I${srcdir}/fx2lib/include -c $< -o $@
33 MAINTAINERCLEANFILES = ChangeLog
37 $(AM_V_at)git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
41 # Creates a convenience tarball with just the generated *.fw files, so that
42 # the users don't have to build them manually.
43 TARBALL=$(PACKAGE)-bin-$(VERSION)
44 distbin: all ChangeLog
45 $(AM_V_at)$(MKDIR_P) $(TARBALL)
46 $(AM_V_at)$(INSTALL_DATA) hw/*/*.fw $(TARBALL)
47 $(AM_V_at)$(INSTALL_DATA) README NEWS ChangeLog COPYING* $(TARBALL)
48 $(AM_V_at)tar -c -z -f $(TARBALL).tar.gz $(TARBALL)
49 $(AM_V_at)-rm -rf $(TARBALL)
50 $(AM_V_at)-rm -f ChangeLog
53 $(AM_V_at)-rm -f *.asm *.lst *.rel *.rst *.sym