2015-04-03 20:10:25 +02:00
|
|
|
all : embeddedcc
|
|
|
|
|
2015-04-03 21:34:11 +02:00
|
|
|
CFLAGS:=-Ofast -DCCEMBEDDED -I.. -flto -m32 -DDFREQ=11025
|
2015-04-03 20:10:25 +02:00
|
|
|
LDFLAGS:=-ffunction-sections -Wl,--gc-sections -fno-asynchronous-unwind-tables -Wl,--strip-all
|
|
|
|
|
2015-04-04 08:23:53 +02:00
|
|
|
embeddedcc : ../embeddednf.c ../DFT32.c embeddedcc.c ../embeddedout.c
|
2015-04-03 20:10:25 +02:00
|
|
|
gcc -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
|
|
|
|
|
|
|
runembedded : embeddedcc
|
2015-04-04 08:23:53 +02:00
|
|
|
parec --format=u8 --rate=11025 --channels=1 --device=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor --latency=128 | ./embeddedcc
|
2015-04-03 20:10:25 +02:00
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -rf embeddedcc *~
|