2008-03-10 20:20:40 +01:00
|
|
|
export SHELL = /bin/sh
|
2015-05-17 00:30:15 +02:00
|
|
|
export CFLAGS=-Wall -O3 -I../ext_includes -DUSE_ALLOCA -DVGM_USE_MAIATRAC3PLUS
|
|
|
|
# -DVGM_USE_G7221 -DVGM_USE_G719
|
|
|
|
export LDFLAGS=-L../src -L ../ext_libs -lvgmstream -lvorbisfile -lmpg123 -lat3plusdecoder -lpthread -lm
|
|
|
|
#-lg719_decode -lg7221_decode -lsiren_decode
|
2015-01-22 01:28:43 +01:00
|
|
|
export CC=gcc
|
|
|
|
export AR=ar
|
2008-03-14 14:11:14 +01:00
|
|
|
export STRIP=strip
|
2008-01-31 07:15:03 +01:00
|
|
|
|
2008-06-15 13:24:09 +02:00
|
|
|
.PHONY: libvgmstream.a
|
2008-01-31 07:15:03 +01:00
|
|
|
|
2015-01-22 01:28:43 +01:00
|
|
|
test.exe: libvgmstream.a
|
2015-05-17 00:30:15 +02:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) "-DVERSION=\"`../version.sh`\"" test.c $(LDFLAGS) -o vgmstream
|
|
|
|
$(STRIP) vgmstream
|
2008-03-25 08:25:46 +01:00
|
|
|
|
2008-03-10 20:20:40 +01:00
|
|
|
libvgmstream.a:
|
2015-01-22 01:28:43 +01:00
|
|
|
$(MAKE) -C ../src $@
|
2008-02-06 01:27:51 +01:00
|
|
|
|
2008-01-31 07:15:03 +01:00
|
|
|
clean:
|
2008-03-25 08:42:43 +01:00
|
|
|
rm -f test test.o
|