# *
# *  XMMP - LinuX MultiMedia Project ( www.frozenproductions.com )
# *  Copyright (c) 1999 - 2002 Arthur Kleer <kleer@frozenproductions.com>
# *

TOPDIR = ../../..

include $(TOPDIR)/Makefile.conf

SO_OBJS = mpg123.o mpg123head.o id3v1.o
SO_TARGET = mpg123.so
SO_LIBS_A = $(TOPDIR)/contrib/libid3tag/.libs/libid3tag.a
SO_LIBS_SO = -lxmm -lm -lz

CFLAGS_ALL = -I$(TOPDIR)/contrib

all:	libid3tag.a dll

clean:	cleanlib
	$(MAKE)	-C $(TOPDIR)/contrib/libid3tag clean

install: all
	$(INSTALL) $(SO_TARGET) $(PLUGINDIR)/Input/

include $(TOPDIR)/Makefile.make

libid3tag.a:	$(TOPDIR)/contrib/libid3tag/Makefile
	$(MAKE)	-C $(TOPDIR)/contrib/libid3tag

$(TOPDIR)/contrib/libid3tag/Makefile:
	( cd $(TOPDIR)/contrib/libid3tag; ./configure )
