vgmstream/test/Makefile
halleyscometsw 315d70e415 change test building
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@54 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-03-25 07:25:46 +00:00

20 lines
356 B
Makefile

export SHELL = /bin/sh
export CFLAGS=-Wall -O3
export LDFLAGS=-lm -L../src -lvgmstream
export STRIP=strip
.PHONY: libvgmstream.a
test: libvgmstream.a test.o
$(CC) test.o $(LDFLAGS) -o test
$(STRIP) test
test.o:
$(CC) $(CFLAGS) -c "-DVERSION=\"`../version.sh`\"" test.c -o test.o
libvgmstream.a:
$(MAKE) -C ../src libvgmstream.a
clean:
rm -f test