2015-04-03 20:10:25 +02:00
|
|
|
all : embeddedcc
|
|
|
|
|
2015-07-23 06:52:52 +02:00
|
|
|
CFLAGS:=-Ofast -DCCEMBEDDED -I.. -flto -m32 -DDFREQ=11025 -I../embeddedcommon -DNUM_LIN_LEDS=20
|
2015-04-03 20:10:25 +02:00
|
|
|
LDFLAGS:=-ffunction-sections -Wl,--gc-sections -fno-asynchronous-unwind-tables -Wl,--strip-all
|
|
|
|
|
2015-04-05 04:16:55 +02:00
|
|
|
embeddedcc : ../embeddedcommon/embeddednf.c ../embeddedcommon/DFT32.c embeddedcc.c ../embeddedcommon/embeddedout.c
|
2015-04-03 20:10:25 +02:00
|
|
|
gcc -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
|
|
|
|
2015-07-27 09:35:02 +02:00
|
|
|
|
|
|
|
#SOUNDDEVICE:= --device=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
|
|
|
|
|
2015-04-03 20:10:25 +02:00
|
|
|
runembedded : embeddedcc
|
2015-07-27 09:35:02 +02:00
|
|
|
parec --format=u8 --rate=11025 --channels=1 $(SOUNDDEVICE) --latency=128 | ./embeddedcc 192.168.4.1 0
|
2015-04-03 20:10:25 +02:00
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -rf embeddedcc *~
|