mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-17 03:47:10 +01:00
19 lines
407 B
Makefile
19 lines
407 B
Makefile
export SHELL = /bin/sh
|
|
export CFLAGS=-Wall -O3 -I../ext_includes
|
|
export LDFLAGS=-L../src -L ../ext_libs -lvgmstream -lvorbisfile -lmpg123-0 -lm
|
|
export CC=gcc
|
|
export AR=ar
|
|
export STRIP=strip
|
|
|
|
.PHONY: libvgmstream.a
|
|
|
|
test.exe: libvgmstream.a
|
|
$(CC) $(CFLAGS) $(LDFLAGS) "-DVERSION=\"`../version.sh`\"" test.c $(LDFLAGS) -o test
|
|
$(STRIP) test
|
|
|
|
libvgmstream.a:
|
|
$(MAKE) -C ../src $@
|
|
|
|
clean:
|
|
rm -f test test.o
|