2008-03-10 23:58:31 +01:00
|
|
|
export SHELL = /bin/sh
|
|
|
|
export CFLAGS=-Wall -O3
|
|
|
|
export LDFLAGS=-lm -L../src -lvgmstream
|
|
|
|
export CC=i586-mingw32msvc-gcc
|
|
|
|
export AR=i586-mingw32msvc-ar
|
|
|
|
export STRIP=i586-mingw32msvc-strip
|
2008-05-16 18:09:28 +02:00
|
|
|
export WINDRES=i586-mingw32msvc-windres
|
2008-03-10 23:58:31 +01:00
|
|
|
|
|
|
|
.PHONY: libvgmstream.a
|
|
|
|
|
2008-05-16 18:09:28 +02:00
|
|
|
in_vgmstream.dll: libvgmstream.a in_vgmstream.c resource.o
|
|
|
|
$(CC) -shared $(CFLAGS) "-DVERSION=\"`../version.sh`\"" in_vgmstream.c resource.o $(LDFLAGS) -o in_vgmstream.dll
|
2008-03-10 23:58:31 +01:00
|
|
|
$(STRIP) in_vgmstream.dll
|
|
|
|
|
2008-05-16 18:09:28 +02:00
|
|
|
resource.o: resource.rc resource.h
|
|
|
|
$(WINDRES) -o resource.o resource.rc
|
|
|
|
|
2008-03-10 23:58:31 +01:00
|
|
|
libvgmstream.a:
|
|
|
|
$(MAKE) -C ../src libvgmstream.a
|
|
|
|
|
|
|
|
clean:
|
2008-05-19 10:21:51 +02:00
|
|
|
rm -f in_vgmstream.dll resource.o
|