11 lines
482 B
Bash
Executable File
11 lines
482 B
Bash
Executable File
#!/bin/bash
|
|
# Builds render_tfmx, a tiny standalone harness around tfmx.h (see NOTICE.md
|
|
# in this directory for provenance/license). Produces ./render_tfmx which
|
|
# takes <mdat.tfx> <smpl.sam> <out.wav> [seconds] and writes a stereo
|
|
# 16-bit/44100Hz WAV rendering of the TFMX module.
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
gcc -std=gnu99 -O2 -Wall -Wno-unused-function -Wno-unused-variable -Wno-unused-parameter \
|
|
-o render_tfmx render_tfmx.c -lm
|
|
echo "built: $(dirname "$0")/render_tfmx"
|