# Makefile.in generated by automake 1.8.2 from Makefile.am.
# Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
#-----------------------------------------------------
TOPDIR  :=  $(shell /bin/pwd)
TOPDIR  :=  $(TOPDIR)/../..

include $(TOPDIR)/prerules.mk
#-----------------------------------------------------

CFLAGS+=-DUSE_MMAP
LDSHARED=$(CC) -shared -Wl,-soname,libid3tag.so.0

SOURCES=$(wildcard *.c)
OBJS = $(patsubst %.c, %.o, $(SOURCES))

all: libid3tag

libid3tag: $(OBJS)
	$(CC) -shared -Wl,-soname,libid3tag.so.0 -o libid3tag.so.0.0 $(OBJS)
	$(STRIP) libid3tag.so.0.0
	ln -sf libid3tag.so.0.0 libid3tag.so.0
	ln -sf libid3tag.so.0 libid3tag.so
	cp -a libid3tag.so* $(COMM_LIB_PATH)
	cp -a id3tag.h $(COMM_INC_PATH)

install: 
	cp -af libid3tag.so* $(T_LIB)
.c.o:
	$(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(COMM_INC_PATH) $(CFLAGS) $<
	
clean:
	rm -f *.o *.lo libid3tag.so*

depend:
	makedepend -- $(CFLAGS) -- *.[ch]

# DO NOT DELETE THIS LINE -- make depend depends on it.


