#!/bin/sh
FSYN=../flash-midi/fluidsynth/fluidsynth-1.0.8
cat \
    $FSYN/src/fluid_list.c \
    $FSYN/src/fluid_settings.c \
    $FSYN/src/fluid_hash.c \
    $FSYN/src/fluid_synth.c \
    $FSYN/src/fluid_sys.c \
    $FSYN/src/fluid_cmd.c \
    $FSYN/src/fluid_adriver.c \
    $FSYN/src/fluid_mdriver.c \
    $FSYN/src/fluid_conv.c \
    $FSYN/src/fluid_defsfont.c \
    $FSYN/src/fluid_chan.c \
    $FSYN/src/fluid_voice.c \
    $FSYN/src/fluid_rev.c \
    $FSYN/src/fluid_chorus.c \
    $FSYN/src/fluid_dsp_float.c \
    $FSYN/src/fluid_mod.c \
    $FSYN/src/fluid_gen.c \
heapsort.c pqueue.c tempotracker.c trackstate.c midievent.c midifile.c midi2fluid.c audioout.c midi2.c midiplayer.c \
    > flall.c

# -MT libfluidsynth_la-fluid_synth.lo -MD -MP -MF .deps/libfluidsynth_la-fluid_synth.Tpo -c fluid_synth.c
# -fPIC -DPIC -o .libs/libfluidsynth_la-fluid_synth.o

#gcc -DHAVE_CONFIG_H -Wall -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -c -o flall.o flall.c -I$FSYN/src -I$FSYN/include -I.

gcc -DHAVE_CONFIG_H -Wall -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -swc -o midi2.swc flall.c -I$FSYN/src -I$FSYN/include -I.
