
#
# Makefile for view subdirectory
#
# This file is part of K WebTree
#
# K WebTree 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, or (at your option)
# any later version.
#
# K WebTree 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 K WebTree; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#


SOURCES	= wtview.cpp viewport.cpp treelist.cpp viewfn.cpp kpanner.cpp animw.cpp
SRCMETA	= mwtview.cpp mviewport.cpp mtreelist.cpp mkpanner.cpp manimw.cpp

OBJECTS = wtview.o viewport.o treelist.o viewfn.o kpanner.o animw.o
OBJMETA	= mwtview.o mviewport.o mtreelist.o mkpanner.o manimw.o

TARGET	= view.o


.SUFFIXES: .cpp .deps

.cpp.o: 
	$(CC) -c $(CFLAGS) $(INC_DIRS) $<

all:    $(TARGET)


$(TARGET): $(OBJECTS) $(OBJMETA)
	$(AR) -rs $@ $?


.deps: $(SRCMETA) $(SOURCES)
	@makedepend $(INC_DIRS) $(SOURCES) $(SRCMETA) -f- >.deps 2>/dev/null


clean:  
	-rm -f core .deps
	-rm -f *.o *.bak *BAK *~ *% #*
	-rm -f $(SRCMETA) $(TARGET)

$(SRCMETA): m%.cpp : %.h
	$(MOC) $< -o $@

include .deps
