vgmstream/winamp/Makefile

26 lines
770 B
Makefile

export SHELL = /bin/sh
export CFLAGS=-Wall -O3 -I../ext_includes
export LDFLAGS=-lm -L../src -L../ext_libs -lvgmstream -lvorbisfile
export CC=i586-mingw32msvc-gcc
export AR=i586-mingw32msvc-ar
export STRIP=i586-mingw32msvc-strip
export WINDRES=i586-mingw32msvc-windres
.PHONY: libvgmstream.a libvorbisfile.a
in_vgmstream.dll: libvgmstream.a libvorbisfile.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
libvorbisfile.a:
$(MAKE) -C ../ext_libs -f Makefile.mingw libvorbisfile.a
clean:
rm -f in_vgmstream.dll resource.o