#################################################
# Makefile
#
#   Copyright (C) 2003 Robert Muth <robert at muth dot org>
#
#   This program 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; version 2 of June 1991.
#
#   This program 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 this program in form of the file COPYING; 
#   if not, write to the 
#
#   Free Software Foundation, Inc. <http://www.fsf.org>
#   59 Temple Place, Suite 330, 
#   Boston, MA 02111-1307  USA
#
#   $Id: Makefile,v 1.4 2004/07/08 12:33:55 muth Exp $
#
#################################################

PROGRAMS = apetag

SOURCES = basic.C switch.C main.C 

OBJECTS = $(SOURCES:.C=.o)

HEADERS =

CXXDEBUG = -g
CXXOPT = -O
CXXFLAGS = -Wall -Werror -pedantic $(CXXOPT)   $(CXXDEBUG) 

all:	$(PROGRAMS)

#################################################

apetag: $(OBJECTS)
	$(CXX) $(CXXDEBUG) -o apetag $(OBJECTS) 

apetag.static: $(OBJECTS)
	$(CXX) $(CXXDEBUG) -static -o apetag.static  $(OBJECTS) 

check:
	tidy -xml index.html >/dev/null

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

cleaner:
	rm -f *.o *.pyc *~ \#*

dep:
	makedepend -Y $(SOURCES)

#################################################

# DO NOT DELETE

