
#
# 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.
#



DLGSOURCES =  dlg_coltab.cpp dlg_fonttab.cpp dlg_inextab.cpp dlg_viewtab.cpp dlg_httptab.cpp dlg_htmltab.cpp dlg_info_d.cpp dlg_other.cpp
SIMPLSOURCES = dlg_appear.cpp dlg_pref.cpp dlg_info.cpp dlg_about.cpp dlg_about_d.cpp
TRANSOURCES = tdlg_coltab.cpp tdlg_fonttab.cpp tdlg_inextab.cpp tdlg_viewtab.cpp tdlg_httptab.cpp tdlg_htmltab.cpp tdlg_info_d.cpp tdlg_other.cpp

SOURCES = $(SIMPLSOURCES) $(TRANSOURCES)

SRCMETA	= mdlg_appear.cpp mdlg_pref.cpp mdlg_coltab.cpp mdlg_fonttab.cpp mdlg_inextab.cpp mdlg_viewtab.cpp mdlg_httptab.cpp mdlg_htmltab.cpp mdlg_info_d.cpp mdlg_info.cpp mdlg_about.cpp mdlg_about_d.cpp mdlg_other.cpp

OBJECTS = dlg_appear.o dlg_pref.o tdlg_coltab.o tdlg_fonttab.o tdlg_inextab.o tdlg_viewtab.o tdlg_httptab.o tdlg_htmltab.o dlg_info.o tdlg_info_d.o dlg_about.o dlg_about_d.o tdlg_other.o
OBJMETA	= mdlg_appear.o mdlg_pref.o mdlg_coltab.o mdlg_fonttab.o mdlg_inextab.o mdlg_viewtab.o mdlg_httptab.o mdlg_htmltab.o mdlg_info.o mdlg_info_d.o mdlg_about.o mdlg_about_d.o mdlg_other.o

TARGET	= dlg.o


.SUFFIXES: .cpp .deps

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

all:    $(TARGET)


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


.deps: $(SRCMETA) $(SOURCES) 
	@makedepend -I$(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 $@

$(TRANSOURCES): t%.cpp : %.cpp
	awk -f translate.awk $< > $@

include .deps
