RandMus/Makefile

16 lines
260 B
Makefile
Raw Permalink Normal View History

2022-03-19 13:03:00 +01:00
.DEFAULT_GOAL := all
clean:
2022-04-18 12:40:26 +02:00
rm -f build/*
2022-03-19 13:03:00 +01:00
compile: clean
2022-04-18 12:40:26 +02:00
gcc -o build/randMus -ggdb randMus.c
2022-03-19 13:03:00 +01:00
run: compile
2022-04-18 12:40:26 +02:00
./build/randMus | aplay
2022-03-19 13:03:00 +01:00
record: compile
rm -f out.ogg
2022-04-18 12:40:26 +02:00
./build/randMus|ffmpeg -f u16le -ar 8000 -ac 1 -i - -to 00:05:00 out.ogg
2022-03-19 13:03:00 +01:00
all: compile run