vgmstream/test/Makefile
2012-09-05 03:05:14 +00:00

19 lines
390 B
Makefile

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