]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blame - Makefile.am
GPL headers: Use correct project name.
[sigrok-firmware-fx2lafw.git] / Makefile.am
CommitLineData
d5f5ea73 1##
a986cfff 2## This file is part of the sigrok-firmware-fx2lafw project.
d5f5ea73 3##
36074319 4## Copyright (C) 2013 Uwe Hermann <uwe@hermann-uwe.de>
d5f5ea73
UH
5##
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.
10##
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.
15##
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
19##
20
36074319 21ACLOCAL_AMFLAGS = -I autostuff
60b99ccc 22
36074319
UH
23SUBDIRS = include fx2lib hw
24
25EXTRA_DIST = fx2lafw.c gpif-acquisition.c
26
27.PHONY: fx2lafw
28fx2lafw: fx2lafw.rel gpif-acquisition.rel
29
30.c.rel:
31 $(AM_V_GEN)$(SDCC) -mmcs51 -I$(srcdir)/include -I${srcdir}/fx2lib/include -c $< -o $@
32
33MAINTAINERCLEANFILES = ChangeLog
34
35.PHONY: ChangeLog
36ChangeLog:
37 $(AM_V_at)git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
38
39dist-hook: ChangeLog
40
3cdd4722
UH
41# Creates a convenience tarball with just the generated *.fw files, so that
42# the users don't have to build them manually.
43TARBALL=$(PACKAGE)-bin-$(VERSION)
44distbin: 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
51
36074319
UH
52clean-local:
53 $(AM_V_at)-rm -f *.asm *.lst *.rel *.rst *.sym
106ee45c 54