mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 09:40:51 +01:00
61db7c5991
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@246 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
22 lines
535 B
Makefile
22 lines
535 B
Makefile
export SHELL = /bin/sh
|
|
export CFLAGS=-Wall -O3 -I../ext_includes
|
|
export LDFLAGS=-lm -L../src -L../ext_libs -lvgmstream -lvorbisfile
|
|
export CC=i586-mingw32msvc-gcc
|
|
export AR=i586-mingw32msvc-ar
|
|
export STRIP=i586-mingw32msvc-strip
|
|
|
|
.PHONY: libvgmstream.a libvorbisfile.a
|
|
|
|
test.exe: libvgmstream.a libvorbisfile.a
|
|
$(CC) $(CFLAGS) "-DVERSION=\"`../version.sh`\"" test.c $(LDFLAGS) -o test.exe
|
|
$(STRIP) test.exe
|
|
|
|
libvgmstream.a:
|
|
$(MAKE) -C ../src $@
|
|
|
|
libvorbisfile.a:
|
|
$(MAKE) -C ../ext_libs -f Makefile.mingw $@
|
|
|
|
clean:
|
|
rm -f test.exe
|