mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 11:18:31 +01:00
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:
parent
f7b5b2ff5a
commit
f9ed4332f4
23
Makefile
Normal file
23
Makefile
Normal 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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user