2008-03-10 20:20:40 +01:00
|
|
|
export SHELL = /bin/sh
|
2008-06-15 07:43:40 +02:00
|
|
|
export CFLAGS=-Wall -O3 -I../ext_includes
|
2008-07-05 13:49:29 +02:00
|
|
|
export LDFLAGS=-lm -L../src -L../ext_libs -lvgmstream -lvorbis -lmpg123-0
|
2008-03-10 20:20:40 +01:00
|
|
|
export CC=i586-mingw32msvc-gcc
|
|
|
|
export AR=i586-mingw32msvc-ar
|
2008-03-11 06:40:29 +01:00
|
|
|
export STRIP=i586-mingw32msvc-strip
|
2008-03-10 20:20:40 +01:00
|
|
|
|
2008-07-05 13:49:29 +02:00
|
|
|
.PHONY: libvgmstream.a libvorbis.a libmpg123-0.a
|
2008-03-10 20:20:40 +01:00
|
|
|
|
2008-07-05 13:49:29 +02:00
|
|
|
test.exe: libvgmstream.a libvorbis.a libmpg123-0.a
|
2008-03-14 14:11:14 +01:00
|
|
|
$(CC) $(CFLAGS) "-DVERSION=\"`../version.sh`\"" test.c $(LDFLAGS) -o test.exe
|
2008-03-11 06:40:29 +01:00
|
|
|
$(STRIP) test.exe
|
2008-03-10 20:20:40 +01:00
|
|
|
|
|
|
|
libvgmstream.a:
|
2008-06-15 07:43:40 +02:00
|
|
|
$(MAKE) -C ../src $@
|
|
|
|
|
2008-06-15 13:24:09 +02:00
|
|
|
libvorbis.a:
|
2008-06-15 07:43:40 +02:00
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
2008-03-10 20:20:40 +01:00
|
|
|
|
2008-07-05 13:49:29 +02:00
|
|
|
libmpg123-0.a:
|
|
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
|
|
|
|
2008-03-10 20:20:40 +01:00
|
|
|
clean:
|
|
|
|
rm -f test.exe
|