1 # Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
3 # This file is part of GNU Radio
5 # GNU Radio is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
10 # GNU Radio is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with GNU Radio; see the file COPYING. If not, write to
17 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 # Boston, MA 02111-1307, USA.
20 include $(top_srcdir)/Makefile.common
22 datadir = $(prefix)/share/ezdop
24 # Use avr-gcc versions of compiler and binutils
28 # What's defined for rest of project not good for avr-gcc (no -pthread for instance)
38 dopctrl_elf_CFLAGS=-mmcu=atmega8 -funsigned-char -funsigned-bitfields \
39 -fpack-struct -fshort-enums -Wall -Wstrict-prototypes \
40 -Wa,-adhlns=$(<:.c=.lst)
42 dopctrl_elf_SOURCES = \
45 #dopctrl_elfdir = $(includedir)
51 $(OBJCOPY) -O ihex -R .eeprom $< $@
53 dopctrl.hex : dopctrl.elf
56 $(INSTALL_DATA) -D $(top_builddir)/ezdop/src/firmware/dopctrl.hex $(DESTDIR)$(datadir)/dopctrl.hex
59 $(RM) $(DESTDIR)$(datadir)/dopctrl.hex