2008-02-06 01:27:51 +01:00
|
|
|
SHELL = /bin/sh
|
2008-01-31 23:26:11 +01:00
|
|
|
CFLAGS=-lm -O3
|
2008-01-31 07:15:03 +01:00
|
|
|
|
2008-02-06 01:27:51 +01:00
|
|
|
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
|
2008-01-31 07:15:03 +01:00
|
|
|
|
2008-02-06 01:27:51 +01:00
|
|
|
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
|
2008-01-31 07:15:03 +01:00
|
|
|
clean:
|
2008-02-06 01:27:51 +01:00
|
|
|
rm -f test test.exe
|