mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 00:20:47 +01:00
changes for mingw32 building
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@22 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
39e4e02984
commit
62aa07926d
@ -13,6 +13,11 @@
|
|||||||
#ifndef _STREAMFILE_H
|
#ifndef _STREAMFILE_H
|
||||||
#define _STREAMFILE_H
|
#define _STREAMFILE_H
|
||||||
|
|
||||||
|
#ifdef __MSVCRT__
|
||||||
|
#define fseeko fseek
|
||||||
|
#define ftello ftell
|
||||||
|
#endif
|
||||||
|
|
||||||
#define STREAMFILE_DEFAULT_BUFFER_SIZE 0x400
|
#define STREAMFILE_DEFAULT_BUFFER_SIZE 0x400
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
|
SHELL = /bin/sh
|
||||||
CFLAGS=-lm -O3
|
CFLAGS=-lm -O3
|
||||||
|
|
||||||
test: test.c ../src/streamfile.c ../src/vgmstream.c ../src/util.c ../src/meta/adx_header.c ../src/coding/adx_decoder.c ../src/coding/gcdsp_decoder.c ../src/meta/brstm.c ../src/layout/interleave.c ../src/layout/nolayout.c ../src/coding/pcm_decoder.c ../src/meta/nds_strm.c ../src/coding/ima_decoder.c
|
VGMSTREAMFILES = ../src/streamfile.c ../src/vgmstream.c ../src/util.c ../src/meta/adx_header.c ../src/coding/adx_decoder.c ../src/coding/gcdsp_decoder.c ../src/meta/brstm.c ../src/layout/interleave.c ../src/layout/nolayout.c ../src/coding/pcm_decoder.c ../src/meta/nds_strm.c ../src/coding/ima_decoder.c
|
||||||
|
|
||||||
|
test: test.c $(VGMSTREAMFILES)
|
||||||
|
gcc $(CFLAGS) test.c $(VGMSTREAMFILES) -o test
|
||||||
|
strip test
|
||||||
|
|
||||||
|
test.exe: test.c $(VGMSTREAMFILES)
|
||||||
|
i586-mingw32msvc-gcc $(CFLAGS) test.c $(VGMSTREAMFILES) -o test.exe
|
||||||
|
i586-mingw32msvc-strip test.exe
|
||||||
clean:
|
clean:
|
||||||
rm test
|
rm -f test test.exe
|
||||||
|
Loading…
Reference in New Issue
Block a user