CC=$(AVRGCC)
OBJCOPY=$(AVROBJCOPY)
-# What's defined for rest of project not good for avr-gcc (no -pthread for instance)
-override CFLAGS=
-
noinst_PROGRAMS = dopctrl.elf dopctrl.hex
-dopctrl_elf_CFLAGS=-mmcu=atmega8 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=$(<:.c=.lst)
+dopctrl_elf_CFLAGS= \
+ -mmcu=atmega8 \
+ -funsigned-char \
+ -funsigned-bitfields \
+ -fpack-struct \
+ -fshort-enums \
+ -Wall \
+ -Wstrict-prototypes \
+ -Wa,-adhlns=$@.lst
dopctrl_elf_SOURCES = dopctrl.c
firmwaredir = $(prefix)/share/ezdop
firmware_DATA = dopctrl.hex
+MOSTLYCLEANFILES = *.lst *~
TESTS = run_tests
LOCAL_IFILES = \
- audio_osx.i
+ $(top_srcdir)/gr-audio-osx/src/audio_osx.i
NON_LOCAL_IFILES = \
$(GNURADIO_I)
_audio_osx_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version -framework AudioUnit -framework CoreAudio -framework AudioToolbox
-audio_osx.cc audio_osx.py: audio_osx.i
- $(SWIG) $(SWIGCPPPYTHONARGS) -module audio_osx -o audio_osx.cc $<
+audio_osx.cc audio_osx.py: $(ALL_IFILES)
+ $(SWIG) $(SWIGCPPPYTHONARGS) -module audio_osx -o audio_osx.cc $(LOCAL_IFILES)
noinst_PYTHON = qa_osx.py test_audio_loop.py