vgmstream/winamp/Makefile
halleyscometsw c5d066c6b5 add resource.o to Makefile
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@171 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-05-19 08:21:51 +00:00

23 lines
617 B
Makefile

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
export WINDRES=i586-mingw32msvc-windres
.PHONY: libvgmstream.a
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
$(STRIP) in_vgmstream.dll
resource.o: resource.rc resource.h
$(WINDRES) -o resource.o resource.rc
libvgmstream.a:
$(MAKE) -C ../src libvgmstream.a
clean:
rm -f in_vgmstream.dll resource.o