make things easier (PUN)

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@49 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-03-11 05:40:29 +00:00
parent f7b5b2ff5a
commit f9ed4332f4
3 changed files with 26 additions and 0 deletions

23
Makefile Normal file
View File

@ -0,0 +1,23 @@
.PHONY: buildrelease mingw_test mingw_winamp
buildrelease: clean vgmstream.tar.gz vgmstream-test.zip
vgmstream.tar.gz:
tar cvzf vgmstream.tar.gz readme.txt LICENSE Makefile src test winamp
vgmstream-test.zip: mingw_test mingw_winamp
zip -j vgmstream-test.zip readme.txt LICENSE test/test.exe winamp/in_vgmstream.dll
mingw_test:
$(MAKE) -C test -f Makefile.mingw test.exe
mingw_winamp:
$(MAKE) -C winamp in_vgmstream.dll
clean:
rm -f vgmstream.tar.gz
rm -f vgmstream-test.zip
$(MAKE) -C test clean
$(MAKE) -C test -f Makefile.mingw clean
$(MAKE) -C winamp clean
$(MAKE) -C src clean

View File

@ -6,6 +6,7 @@ export LDFLAGS=-lm -L../src -lvgmstream
test: libvgmstream.a
$(CC) $(CFLAGS) test.c $(LDFLAGS) -o test
$(STRIP) test
libvgmstream.a:
$(MAKE) -C ../src libvgmstream.a

View File

@ -3,11 +3,13 @@ export CFLAGS=-Wall -O3
export LDFLAGS=-lm -L../src -lvgmstream
export CC=i586-mingw32msvc-gcc
export AR=i586-mingw32msvc-ar
export STRIP=i586-mingw32msvc-strip
.PHONY: libvgmstream.a
test.exe: libvgmstream.a
$(CC) $(CFLAGS) test.c $(LDFLAGS) -o test.exe
$(STRIP) test.exe
libvgmstream.a:
$(MAKE) -C ../src libvgmstream.a