2015-04-03 20:10:25 +02:00
|
|
|
all : embeddedcc
|
|
|
|
|
2015-04-05 04:16:55 +02:00
|
|
|
CFLAGS:=-Ofast -DCCEMBEDDED -I.. -flto -m32 -DDFREQ=11025 -I../embeddedcommon
|
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)
|
|
|
|
|
|
|
|
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 *~
|