# This file is part of wmaloader.*
# Copyright 2004 Andrew Wild */

# wmaloader is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. */

# wmaloader is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details. */

# You should have received a copy of the GNU General Public License
# along with wmaloader; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


# Where to install binary
DEST=/usr/local/bin

# Path to uPnP include files
UPNP_INC=/usr/local/upnp

# Path to uPnP libraries
UPNP_LIBS=/usr/local/lib/upnp

CC=gcc
LDFLAGS=-lixml -lupnp -lthreadutil -L$(UPNP_LIBS)
CFLAGS=-Wall -O2 -I$(UPNP_INC) $(LIBS) -D_REENTRANT

TARGET=wmaloader
OBJS=wmaloader.o image_transfer.o common.o

# Files in distribution archive
DIST_FILES=Makefile *.c *.h COPYING README CHANGELOG
DIST=wmaloader-0.1

all: $(TARGET)

$(TARGET) : wmaloader.o image_transfer.o common.o 

clean :
	rm -f $(TARGET) *.o

install : $(TARGET)
	cp -f $(TARGET) $(DEST)

uninstall :
	rm -f $(DEST)/$(TARGET)


dist : clean
	rm -rf $(DIST)
	mkdir $(DIST)
	cp $(DIST_FILES) $(DIST)
	tar -zc -f $(DIST).tar.gz $(DIST)