A correct way of getting version number.

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@50 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-03-14 13:11:14 +00:00
parent f9ed4332f4
commit 77d40d681d
6 changed files with 7 additions and 6 deletions

View File

@ -26,7 +26,7 @@ Drop the in_vgmstream.dll in your Winamp plugins directory. There is no
configuration or seeking yet. configuration or seeking yet.
--- ---
Formats supported by this version of vgmstream ($Revision$): Formats supported by this version of vgmstream:
- .adx (CRI ADX ADPCM) - .adx (CRI ADX ADPCM)
- .brstm (RSTM: GC/Wii DSP ADPCM, 8/16 bit PCM) - .brstm (RSTM: GC/Wii DSP ADPCM, 8/16 bit PCM)
- .strm (STRM: NDS IMA ADPCM, 8/16 bit PCM) - .strm (STRM: NDS IMA ADPCM, 8/16 bit PCM)

View File

@ -1,11 +1,12 @@
export SHELL = /bin/sh export SHELL = /bin/sh
export CFLAGS=-Wall -O3 export CFLAGS=-Wall -O3
export LDFLAGS=-lm -L../src -lvgmstream export LDFLAGS=-lm -L../src -lvgmstream
export STRIP=strip
.PHONY: libvgmstream.a .PHONY: libvgmstream.a
test: libvgmstream.a test: libvgmstream.a
$(CC) $(CFLAGS) test.c $(LDFLAGS) -o test $(CC) $(CFLAGS) "-DVERSION=\"`../version.sh`\"" test.c $(LDFLAGS) -o test
$(STRIP) test $(STRIP) test
libvgmstream.a: libvgmstream.a:

View File

@ -8,7 +8,7 @@ export STRIP=i586-mingw32msvc-strip
.PHONY: libvgmstream.a .PHONY: libvgmstream.a
test.exe: libvgmstream.a test.exe: libvgmstream.a
$(CC) $(CFLAGS) test.c $(LDFLAGS) -o test.exe $(CC) $(CFLAGS) "-DVERSION=\"`../version.sh`\"" test.c $(LDFLAGS) -o test.exe
$(STRIP) test.exe $(STRIP) test.exe
libvgmstream.a: libvgmstream.a:

View File

@ -9,7 +9,7 @@ extern char * optarg;
extern int optind, opterr, optopt; extern int optind, opterr, optopt;
void usage(const char * name) { void usage(const char * name) {
fprintf(stderr,"vgmstream test decoder $Revision$, $Date$\n" fprintf(stderr,"vgmstream test decoder " VERSION "\n"
"Usage: %s [-o outfile.wav] [-l loop count]\n" "Usage: %s [-o outfile.wav] [-l loop count]\n"
"\t[-f fade time] [-i] [-p] [-c] [-m] infile\n" "\t[-f fade time] [-i] [-p] [-c] [-m] infile\n"
"Options:\n" "Options:\n"

View File

@ -8,7 +8,7 @@ export STRIP=i586-mingw32msvc-strip
.PHONY: libvgmstream.a .PHONY: libvgmstream.a
in_vgmstream.dll: libvgmstream.a in_vgmstream.dll: libvgmstream.a
$(CC) -shared $(CFLAGS) in_vgmstream.c $(LDFLAGS) -o in_vgmstream.dll $(CC) -shared $(CFLAGS) "-DVERSION=\"`../version.sh`\"" in_vgmstream.c $(LDFLAGS) -o in_vgmstream.dll
$(STRIP) in_vgmstream.dll $(STRIP) in_vgmstream.dll
libvgmstream.a: libvgmstream.a:

View File

@ -12,7 +12,7 @@
#include "../src/util.h" #include "../src/util.h"
#include "in2.h" #include "in2.h"
#define PLUGIN_DESCRIPTION "vgmstream plugin ($Revision$, $Date$)" #define PLUGIN_DESCRIPTION "vgmstream plugin " VERSION
/* post when playback stops */ /* post when playback stops */
#define WM_WA_MPEG_EOF WM_USER+2 #define WM_WA_MPEG_EOF WM_USER+2