Run in Linux

- Define Pi to avoid running into too many feature test macros
- Define _DEFAULT_SOURCE if not in OpenBSD
- Add a play target that works in Linux
This commit is contained in:
Lucas 2020-05-14 00:54:51 +00:00
parent afbe512452
commit 06f6a4881c
4 changed files with 25 additions and 2 deletions

View file

@ -31,9 +31,15 @@ arngment: ${OBJ}
${OBJ}: ${HDR}
play: all
play:
@${MAKE} _play_$$(uname)
_play_OpenBSD: all
./arngment ${ARNGMENT_ARGS} | aucat -e s16 -h raw -i -
_play_Linux: all
./arngment ${ARNGMENT_ARGS} | aplay -f dat -t raw -
clean:
rm -f arngment ${OBJ} ${P}-${V}.tgz