2008-03-10 23:58:31 +01:00
|
|
|
export SHELL = /bin/sh
|
2015-01-22 01:28:43 +01:00
|
|
|
export CFLAGS=-Wall -O3 "-DVGM_USE_G7221" "-DVGM_USE_MAIATRAC3PLUS" -I../ext_includes
|
|
|
|
export LDFLAGS=-L../src -L../ext_libs -lvgmstream -lvorbis -lmpg123-0 -lg7221_decode -lat3plusdecoder -lm
|
2008-03-10 23:58:31 +01:00
|
|
|
export CC=i586-mingw32msvc-gcc
|
|
|
|
export AR=i586-mingw32msvc-ar
|
|
|
|
export STRIP=i586-mingw32msvc-strip
|
2008-05-16 18:09:28 +02:00
|
|
|
export WINDRES=i586-mingw32msvc-windres
|
2008-03-10 23:58:31 +01:00
|
|
|
|
2015-01-22 01:28:43 +01:00
|
|
|
#export CC=i686-w64-mingw32-gcc
|
|
|
|
#export AR=i686-w64-mingw32-ar
|
|
|
|
#export STRIP=i686-w64-mingw32-strip
|
|
|
|
#export WINDRES=i686-w64-mingw32-windres
|
|
|
|
|
|
|
|
.PHONY: libvgmstream.a libvorbis.a libmpg123-0.a libg7221_decode.a at3plusdecoder.a
|
2008-03-10 23:58:31 +01:00
|
|
|
|
2010-03-23 21:57:12 +01:00
|
|
|
in_vgmstream.dll: libvgmstream.a libvorbis.a libmpg123-0.a libg7221_decode.a in_vgmstream.c resource.o
|
2014-09-17 01:29:32 +02:00
|
|
|
$(CC) -shared -static-libgcc $(CFLAGS) "-DVERSION=\"`../version.sh`\"" in_vgmstream.c resource.o $(LDFLAGS) -o in_vgmstream.dll
|
2008-03-10 23:58:31 +01:00
|
|
|
$(STRIP) in_vgmstream.dll
|
|
|
|
|
2008-05-16 18:09:28 +02:00
|
|
|
resource.o: resource.rc resource.h
|
|
|
|
$(WINDRES) -o resource.o resource.rc
|
|
|
|
|
2008-03-10 23:58:31 +01:00
|
|
|
libvgmstream.a:
|
|
|
|
$(MAKE) -C ../src libvgmstream.a
|
|
|
|
|
2008-06-15 13:24:09 +02:00
|
|
|
libvorbis.a:
|
2010-03-23 21:57:12 +01:00
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
2008-06-15 07:43:40 +02:00
|
|
|
|
2008-07-05 13:49:29 +02:00
|
|
|
libmpg123-0.a:
|
2010-03-23 21:57:12 +01:00
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
|
|
|
|
|
|
|
libg7221_decode.a:
|
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
2008-07-05 13:49:29 +02:00
|
|
|
|
2015-01-22 01:28:43 +01:00
|
|
|
at3plusdecoder.a:
|
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
|
|
|
|
2008-03-10 23:58:31 +01:00
|
|
|
clean:
|
2008-05-19 10:21:51 +02:00
|
|
|
rm -f in_vgmstream.dll resource.o
|