mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-17 03:47:10 +01:00
61db7c5991
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@246 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
20 lines
409 B
Makefile
20 lines
409 B
Makefile
export SHELL = /bin/sh
|
|
export CFLAGS=-Wall -O3
|
|
export LDFLAGS=-lm -L../src -lvgmstream -lvorbisfile
|
|
export STRIP=strip
|
|
|
|
.PHONY: libvgmstream.a libvorbisfile.a
|
|
|
|
test: libvgmstream.a test.o
|
|
$(CC) test.o $(LDFLAGS) $(CFLAGS) -o test
|
|
$(STRIP) 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
|