]>
Commit | Line | Data |
---|---|---|
d5f5ea73 UH |
1 | ## |
2 | ## This file is part of the fx2lafw project. | |
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 | 21 | ACLOCAL_AMFLAGS = -I autostuff |
60b99ccc | 22 | |
36074319 UH |
23 | SUBDIRS = include fx2lib hw |
24 | ||
25 | EXTRA_DIST = fx2lafw.c gpif-acquisition.c | |
26 | ||
27 | .PHONY: fx2lafw | |
28 | fx2lafw: 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 | ||
33 | MAINTAINERCLEANFILES = ChangeLog | |
34 | ||
35 | .PHONY: ChangeLog | |
36 | ChangeLog: | |
37 | $(AM_V_at)git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog | |
38 | ||
39 | dist-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. | |
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 | |
51 | ||
36074319 UH |
52 | clean-local: |
53 | $(AM_V_at)-rm -f *.asm *.lst *.rel *.rst *.sym | |
106ee45c | 54 |