2008-03-10 19:20:40 +00:00
|
|
|
export SHELL = /bin/sh
|
2015-01-24 21:08:25 -08:00
|
|
|
export CFLAGS=-Wall -O3 -DVGM_USE_G7221 -DVGM_USE_G719 -DVGM_USE_MAIATRAC3PLUS -DVAR_ARRAYS -I../ext_includes
|
|
|
|
export LDFLAGS=-L../src -L../ext_libs -lvgmstream -lvorbis -lmpg123-0 -lg7221_decode -lg719_decode -lat3plusdecoder -lm
|
2015-08-30 13:47:35 -05:00
|
|
|
#export CC=i586-mingw32msvc-gcc
|
|
|
|
#export AR=i586-mingw32msvc-ar
|
|
|
|
#export STRIP=i586-mingw32msvc-strip
|
|
|
|
export CC=i686-w64-mingw32-gcc
|
|
|
|
export AR=i686-w64-mingw32-ar
|
|
|
|
export STRIP=i686-w64-mingw32-strip
|
2008-03-10 19:20:40 +00:00
|
|
|
|
2015-05-11 15:02:21 -07:00
|
|
|
.PHONY: libvgmstream.a libvorbis.a libmpg123-0.a libg7221_decode.a libg719_decode.a libat3plusdecoder.a
|
2008-03-10 19:20:40 +00:00
|
|
|
|
2015-05-11 15:02:21 -07:00
|
|
|
test.exe: libvgmstream.a libvorbis.a libmpg123-0.a libg7221_decode.a libg719_decode.a libat3plusdecoder.a
|
2008-03-14 13:11:14 +00:00
|
|
|
$(CC) $(CFLAGS) "-DVERSION=\"`../version.sh`\"" test.c $(LDFLAGS) -o test.exe
|
2008-03-11 05:40:29 +00:00
|
|
|
$(STRIP) test.exe
|
2008-03-10 19:20:40 +00:00
|
|
|
|
|
|
|
libvgmstream.a:
|
2008-06-15 05:43:40 +00:00
|
|
|
$(MAKE) -C ../src $@
|
|
|
|
|
2008-06-15 11:24:09 +00:00
|
|
|
libvorbis.a:
|
2008-06-15 05:43:40 +00:00
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
2008-03-10 19:20:40 +00:00
|
|
|
|
2008-07-05 11:49:29 +00:00
|
|
|
libmpg123-0.a:
|
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
|
|
|
|
2010-03-23 20:57:12 +00:00
|
|
|
libg7221_decode.a:
|
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
|
|
|
|
2015-01-24 21:08:25 -08:00
|
|
|
libg719_decode.a:
|
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
|
|
|
|
2015-05-11 15:02:21 -07:00
|
|
|
libat3plusdecoder.a:
|
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
|
|
|
|
2008-03-10 19:20:40 +00:00
|
|
|
clean:
|
|
|
|
rm -f test.exe
|