#############################################################################
# Makefile for building: kdocker
# Generated by qmake (1.07a) (Qt 3.3.3) on: Fri Jun 17 19:36:22 2005
# Project:  kdocker.pro
# Template: app
# Command: $(QMAKE) -o Makefile kdocker.pro
#############################################################################

####### Compiler, tools and options

CC       = gcc
CXX      = g++
LEX      = flex
YACC     = yacc
CFLAGS   = -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4  -DTRANSLATIONS_PATH='"/usr/local/share/kdocker/i18n"' -DICONS_PATH='"/usr/local/share/kdocker/icons"' -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
CXXFLAGS = -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4  -DTRANSLATIONS_PATH='"/usr/local/share/kdocker/i18n"' -DICONS_PATH='"/usr/local/share/kdocker/icons"' -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
LEXFLAGS = 
YACCFLAGS= -d
INCPATH  = -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -Isrc -I/usr/X11R6/include/X11 -I/usr/include/X11R6 -I$(QTDIR)/include -Itmp/
LINK     = g++
LFLAGS   = 
LIBS     = $(SUBLIBS) -L/usr/X11/lib -L/usr/X11R6/lib -L$(QTDIR)/lib -L/usr/X11R6/lib -lXpm -lXmu -lqt-mt -lXext -lX11 -lm
AR       = ar cqs
RANLIB   = 
MOC      = $(QTDIR)/bin/moc
UIC      = $(QTDIR)/bin/uic
QMAKE    = qmake
TAR      = tar -cf
GZIP     = gzip -9f
COPY     = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK  = ln -sf
DEL_DIR  = rmdir
MOVE     = mv -f
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p

####### Output directory

OBJECTS_DIR = tmp/

####### Files

HEADERS = src/customtraylabel.h \
		src/kdocker.h \
		src/qtraylabel.h \
		src/trace.h \
		src/traylabelmgr.h \
		src/util.h
SOURCES = src/customtraylabel.cpp \
		src/kdocker.cpp \
		src/main.cpp \
		src/qtraylabel.cpp \
		src/trace.cpp \
		src/traylabelmgr.cpp \
		src/util.cpp
OBJECTS = tmp/customtraylabel.o \
		tmp/kdocker.o \
		tmp/main.o \
		tmp/qtraylabel.o \
		tmp/trace.o \
		tmp/traylabelmgr.o \
		tmp/util.o
FORMS = 
UICDECLS = 
UICIMPLS = 
SRCMOC   = tmp/moc_customtraylabel.cpp \
		tmp/moc_kdocker.cpp \
		tmp/moc_qtraylabel.cpp \
		tmp/moc_traylabelmgr.cpp
OBJMOC = tmp/moc_customtraylabel.o \
		tmp/moc_kdocker.o \
		tmp/moc_qtraylabel.o \
		tmp/moc_traylabelmgr.o
DIST	   = kdocker.pro
QMAKE_TARGET = kdocker
DESTDIR  = 
TARGET   = kdocker

first: all
####### Implicit rules

.SUFFIXES: .c .o .cpp .cc .cxx .C

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: Makefile $(TARGET)

$(TARGET):  $(UICDECLS) $(OBJECTS) $(OBJMOC)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)

mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)

$(MOC): 
	( cd $(QTDIR)/src/moc && $(MAKE) )

Makefile: kdocker.pro  /usr/lib/qt-3.3/mkspecs/default/qmake.conf /usr/lib/qt-3.3/lib/libqt-mt.prl
	$(QMAKE) -o Makefile kdocker.pro
qmake: 
	@$(QMAKE) -o Makefile kdocker.pro

dist: 
	@mkdir -p tmp/kdocker && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) tmp/kdocker/ && $(COPY_FILE) --parents i18n/kdocker_en.ts i18n/kdocker_es.ts i18n/kdocker_fr.ts i18n/kdocker_cs.ts i18n/kdocker_ru.ts i18n/kdocker_pt_BR.ts i18n/kdocker_de.ts i18n/kdocker_pl.ts i18n/kdocker_id.ts i18n/kdocker_it.ts i18n/kdocker_bg.ts tmp/kdocker/ && ( cd `dirname tmp/kdocker` && $(TAR) kdocker.tar kdocker && $(GZIP) kdocker.tar ) && $(MOVE) `dirname tmp/kdocker`/kdocker.tar.gz . && $(DEL_FILE) -r tmp/kdocker

mocclean:
	-$(DEL_FILE) $(OBJMOC)
	-$(DEL_FILE) $(SRCMOC)

uiclean:

yaccclean:
lexclean:
clean: mocclean
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) $(TARGET) $(TARGET)


FORCE:

####### Compile

tmp/customtraylabel.o: src/customtraylabel.cpp src/trace.h \
		src/customtraylabel.h \
		src/traylabelmgr.h \
		src/kdocker.h \
		src/qtraylabel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/customtraylabel.o src/customtraylabel.cpp

tmp/kdocker.o: src/kdocker.cpp src/trace.h \
		src/traylabelmgr.h \
		src/kdocker.h \
		src/customtraylabel.h \
		src/qtraylabel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/kdocker.o src/kdocker.cpp

tmp/main.o: src/main.cpp src/kdocker.h \
		src/traylabelmgr.h \
		src/trace.h \
		src/customtraylabel.h \
		src/qtraylabel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/main.o src/main.cpp

tmp/qtraylabel.o: src/qtraylabel.cpp src/trace.h \
		src/qtraylabel.h \
		src/util.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/qtraylabel.o src/qtraylabel.cpp

tmp/trace.o: src/trace.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/trace.o src/trace.cpp

tmp/traylabelmgr.o: src/traylabelmgr.cpp src/trace.h \
		src/traylabelmgr.h \
		src/util.h \
		src/customtraylabel.h \
		src/qtraylabel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/traylabelmgr.o src/traylabelmgr.cpp

tmp/util.o: src/util.cpp src/trace.h \
		src/util.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/util.o src/util.cpp

tmp/moc_customtraylabel.o: tmp/moc_customtraylabel.cpp  src/customtraylabel.h src/qtraylabel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_customtraylabel.o tmp/moc_customtraylabel.cpp

tmp/moc_kdocker.o: tmp/moc_kdocker.cpp  src/kdocker.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_kdocker.o tmp/moc_kdocker.cpp

tmp/moc_qtraylabel.o: tmp/moc_qtraylabel.cpp  src/qtraylabel.h 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_qtraylabel.o tmp/moc_qtraylabel.cpp

tmp/moc_traylabelmgr.o: tmp/moc_traylabelmgr.cpp  src/traylabelmgr.h src/customtraylabel.h \
		src/qtraylabel.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_traylabelmgr.o tmp/moc_traylabelmgr.cpp

tmp/moc_customtraylabel.cpp: $(MOC) src/customtraylabel.h
	$(MOC) src/customtraylabel.h -o tmp/moc_customtraylabel.cpp

tmp/moc_kdocker.cpp: $(MOC) src/kdocker.h
	$(MOC) src/kdocker.h -o tmp/moc_kdocker.cpp

tmp/moc_qtraylabel.cpp: $(MOC) src/qtraylabel.h
	$(MOC) src/qtraylabel.h -o tmp/moc_qtraylabel.cpp

tmp/moc_traylabelmgr.cpp: $(MOC) src/traylabelmgr.h
	$(MOC) src/traylabelmgr.h -o tmp/moc_traylabelmgr.cpp

####### Install

install_target: all 
	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/bin/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/bin/"
	-$(INSTALL_FILE) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"

uninstall_target: 
	-$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/bin/"


install_icons: all 
	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/"
	-$(INSTALL_FILE) "icons/kdocker.png" "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/"
	-$(INSTALL_FILE) "icons/question.png" "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/"


uninstall_icons: 
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/kdocker.png"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/question.png"
	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/"


install_docs: all 
	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/"
	-$(INSTALL_FILE) "README" "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/"


uninstall_docs: 
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/README"
	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/"


install_translations: all 
	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_bg.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_cs.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_de.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_en.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_es.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_fr.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_id.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_it.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_pl.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_pt_BR.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
	-$(INSTALL_FILE) "i18n/kdocker_ru.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"


uninstall_translations: 
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_bg.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_cs.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_de.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_en.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_es.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_fr.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_id.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_it.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_pl.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_pt_BR.qm"
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_ru.qm"
	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"


install_desktop: all 
	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/applications/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/applications/"
	-$(INSTALL_FILE) "kdocker.desktop" "$(INSTALL_ROOT)/usr/share/applications/"


uninstall_desktop: 
	-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/applications/kdocker.desktop"
	-$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/applications/"


install: install_target install_icons install_docs install_translations install_desktop  

uninstall: uninstall_target uninstall_icons uninstall_docs uninstall_translations uninstall_desktop