2008-03-10 20:20:40 +01:00
|
|
|
export SHELL = /bin/sh
|
|
|
|
export CFLAGS=-Wall -O3
|
|
|
|
export LDFLAGS=-lm -L../src -lvgmstream
|
2008-03-14 14:11:14 +01:00
|
|
|
export STRIP=strip
|
2008-01-31 07:15:03 +01:00
|
|
|
|
2008-03-10 20:20:40 +01:00
|
|
|
.PHONY: libvgmstream.a
|
2008-01-31 07:15:03 +01:00
|
|
|
|
2008-03-25 08:25:46 +01:00
|
|
|
test: libvgmstream.a test.o
|
|
|
|
$(CC) test.o $(LDFLAGS) -o test
|
2008-03-11 06:40:29 +01:00
|
|
|
$(STRIP) test
|
2008-03-10 20:20:40 +01:00
|
|
|
|
2008-03-25 08:25:46 +01:00
|
|
|
test.o:
|
|
|
|
$(CC) $(CFLAGS) -c "-DVERSION=\"`../version.sh`\"" test.c -o test.o
|
|
|
|
|
2008-03-10 20:20:40 +01:00
|
|
|
libvgmstream.a:
|
|
|
|
$(MAKE) -C ../src libvgmstream.a
|
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
|