You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
290 lines
10 KiB
290 lines
10 KiB
#############################################################################
|
|
# Makefile for building: tdedocker
|
|
# Generated by qmake (1.07a) (Qt 3.3.3) on: Fri Jun 17 19:36:22 2005
|
|
# Project: tdedocker.pro
|
|
# Template: app
|
|
# Command: $(QMAKE) -o Makefile tdedocker.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/tdedocker/i18n"' -DICONS_PATH='"/usr/local/share/tdedocker/icons"' -DTQT_NO_DEBUG -DQT_SHARED -DTQT_THREAD_SUPPORT
|
|
CXXFLAGS = -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DTRANSLATIONS_PATH='"/usr/local/share/tdedocker/i18n"' -DICONS_PATH='"/usr/local/share/tdedocker/icons"' -DTQT_NO_DEBUG -DQT_SHARED -DTQT_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$(TQTDIR)/include -Itmp/
|
|
LINK = g++
|
|
LFLAGS =
|
|
LIBS = $(SUBLIBS) -L/usr/X11/lib -L/usr/X11R6/lib -L$(TQTDIR)/lib -L/usr/X11R6/lib -lXpm -lXmu -ltqt-mt -lXext -lX11 -lm
|
|
AR = ar cqs
|
|
RANLIB =
|
|
MOC = $(TQTDIR)/bin/moc
|
|
UIC = $(TQTDIR)/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/tdedocker.h \
|
|
src/qtraylabel.h \
|
|
src/trace.h \
|
|
src/traylabelmgr.h \
|
|
src/util.h
|
|
SOURCES = src/customtraylabel.cpp \
|
|
src/tdedocker.cpp \
|
|
src/main.cpp \
|
|
src/qtraylabel.cpp \
|
|
src/trace.cpp \
|
|
src/traylabelmgr.cpp \
|
|
src/util.cpp
|
|
OBJECTS = tmp/customtraylabel.o \
|
|
tmp/tdedocker.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_tdedocker.cpp \
|
|
tmp/moc_qtraylabel.cpp \
|
|
tmp/moc_traylabelmgr.cpp
|
|
OBJMOC = tmp/moc_customtraylabel.o \
|
|
tmp/moc_tdedocker.o \
|
|
tmp/moc_qtraylabel.o \
|
|
tmp/moc_traylabelmgr.o
|
|
DIST = tdedocker.pro
|
|
QMAKE_TARGET = tdedocker
|
|
DESTDIR =
|
|
TARGET = tdedocker
|
|
|
|
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 $(TQTDIR)/src/moc && $(MAKE) )
|
|
|
|
Makefile: tdedocker.pro /usr/lib/qt-3.3/mkspecs/default/qmake.conf /usr/lib/qt-3.3/lib/libtqt-mt.prl
|
|
$(QMAKE) -o Makefile tdedocker.pro
|
|
qmake:
|
|
@$(QMAKE) -o Makefile tdedocker.pro
|
|
|
|
dist:
|
|
@mkdir -p tmp/tdedocker && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) tmp/tdedocker/ && $(COPY_FILE) --parents i18n/tdedocker_en.ts i18n/tdedocker_es.ts i18n/tdedocker_fr.ts i18n/tdedocker_cs.ts i18n/tdedocker_ru.ts i18n/tdedocker_pt_BR.ts i18n/tdedocker_de.ts i18n/tdedocker_pl.ts i18n/tdedocker_id.ts i18n/tdedocker_it.ts i18n/tdedocker_bg.ts tmp/tdedocker/ && ( cd `dirname tmp/tdedocker` && $(TAR) tdedocker.tar tdedocker && $(GZIP) tdedocker.tar ) && $(MOVE) `dirname tmp/tdedocker`/tdedocker.tar.gz . && $(DEL_FILE) -r tmp/tdedocker
|
|
|
|
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/tdedocker.h \
|
|
src/qtraylabel.h
|
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/customtraylabel.o src/customtraylabel.cpp
|
|
|
|
tmp/tdedocker.o: src/tdedocker.cpp src/trace.h \
|
|
src/traylabelmgr.h \
|
|
src/tdedocker.h \
|
|
src/customtraylabel.h \
|
|
src/qtraylabel.h
|
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/tdedocker.o src/tdedocker.cpp
|
|
|
|
tmp/main.o: src/main.cpp src/tdedocker.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_tdedocker.o: tmp/moc_tdedocker.cpp src/tdedocker.h
|
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_tdedocker.o tmp/moc_tdedocker.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_tdedocker.cpp: $(MOC) src/tdedocker.h
|
|
$(MOC) src/tdedocker.h -o tmp/moc_tdedocker.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/tdedocker/icons/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/tdedocker/icons/"
|
|
-$(INSTALL_FILE) "icons/tdedocker.png" "$(INSTALL_ROOT)/usr/local/share/tdedocker/icons/"
|
|
-$(INSTALL_FILE) "icons/question.png" "$(INSTALL_ROOT)/usr/local/share/tdedocker/icons/"
|
|
|
|
|
|
uninstall_icons:
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/icons/tdedocker.png"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/icons/question.png"
|
|
-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/tdedocker/icons/"
|
|
|
|
|
|
install_docs: all
|
|
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/share/tdedocker/docs/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/tdedocker/docs/"
|
|
-$(INSTALL_FILE) "README" "$(INSTALL_ROOT)/usr/local/share/tdedocker/docs/"
|
|
|
|
|
|
uninstall_docs:
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/docs/README"
|
|
-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/tdedocker/docs/"
|
|
|
|
|
|
install_translations: all
|
|
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_bg.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_cs.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_de.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_en.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_es.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_fr.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_id.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_it.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_pl.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_pt_BR.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
-$(INSTALL_FILE) "i18n/tdedocker_ru.qm" "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
|
|
|
|
uninstall_translations:
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_bg.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_cs.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_de.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_en.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_es.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_fr.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_id.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_it.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_pl.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_pt_BR.qm"
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/tdedocker_ru.qm"
|
|
-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/tdedocker/i18n/"
|
|
|
|
|
|
install_desktop: all
|
|
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/applications/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/applications/"
|
|
-$(INSTALL_FILE) "tdedocker.desktop" "$(INSTALL_ROOT)/usr/share/applications/"
|
|
|
|
|
|
uninstall_desktop:
|
|
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/applications/tdedocker.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
|
|
|