################################################################################
# Projet   : Plugin XMMS pour le format bonk
# Fichier  : Makefile
# Cration : 03.04.2002
# Rvision : 16.05.2002
# Objet    : Makefile
################################################################################

CPP=g++
INSTDIR=`xmms-config --plugin-dir`/Input

ifdef DEBUG
  CFLAGS=-Wall -O2 -fno-exceptions -ffast-math -D_REENTRANT `gtk-config --cflags` -g -DDEBUG
else
  CFLAGS=-Wall -O2 -fno-exceptions -ffast-math -D_REENTRANT `gtk-config --cflags`
endif

libbonk.so : bonk-xmms.cc
	$(CPP) $(CFLAGS) -shared -o libbonk.so bonk-xmms.cc -lstdc++

install : libbonk.so
	cp libbonk.so $(INSTDIR)

uninstall :
	rm -f $(INSTDIR)/libbonk.so

clean :
	rm -f libbonk.so
