234 lines
7.1 KiB
Text
234 lines
7.1 KiB
Text
![]() |
#############################################################################
|
||
|
# Makefile for building: QTMatrix
|
||
|
# Generated by qmake (2.01a) (Qt 4.4.3) on: So Jan 25 20:23:06 2009
|
||
|
# Project: QTMatrix.pro
|
||
|
# Template: app
|
||
|
#############################################################################
|
||
|
|
||
|
####### Compiler, tools and options
|
||
|
|
||
|
CC = gcc
|
||
|
CXX = g++
|
||
|
DEFINES = -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
|
||
|
CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
|
||
|
CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
|
||
|
INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Irelease -I.
|
||
|
LINK = g++
|
||
|
LFLAGS = -Wl,--no-undefined
|
||
|
LIBS = $(SUBLIBS) -L/usr/lib -lQtXml -lQtGui -lQtCore -lpthread
|
||
|
AR = ar cqs
|
||
|
RANLIB =
|
||
|
QMAKE = /usr/bin/qmake
|
||
|
TAR = tar -cf
|
||
|
COMPRESS = gzip -9f
|
||
|
COPY = cp -f
|
||
|
SED = sed
|
||
|
COPY_FILE = $(COPY)
|
||
|
COPY_DIR = $(COPY) -r
|
||
|
INSTALL_FILE = install -m 644 -p
|
||
|
INSTALL_DIR = $(COPY_DIR)
|
||
|
INSTALL_PROGRAM = install -m 755 -p
|
||
|
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 = release/
|
||
|
|
||
|
####### Files
|
||
|
|
||
|
SOURCES = line.cpp \
|
||
|
point.cpp \
|
||
|
main.cpp \
|
||
|
qtmatrix.cpp \
|
||
|
drawwidget.cpp release/moc_qtmatrix.cpp \
|
||
|
release/moc_drawwidget.cpp \
|
||
|
release/qrc_icons.cpp
|
||
|
OBJECTS = release/line.o \
|
||
|
release/point.o \
|
||
|
release/main.o \
|
||
|
release/qtmatrix.o \
|
||
|
release/drawwidget.o \
|
||
|
release/moc_qtmatrix.o \
|
||
|
release/moc_drawwidget.o \
|
||
|
release/qrc_icons.o
|
||
|
DIST = /usr/share/qt4/mkspecs/common/g++.conf \
|
||
|
/usr/share/qt4/mkspecs/common/unix.conf \
|
||
|
/usr/share/qt4/mkspecs/common/linux.conf \
|
||
|
/usr/share/qt4/mkspecs/qconfig.pri \
|
||
|
/usr/share/qt4/mkspecs/features/qt_functions.prf \
|
||
|
/usr/share/qt4/mkspecs/features/qt_config.prf \
|
||
|
/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
|
||
|
/usr/share/qt4/mkspecs/features/default_pre.prf \
|
||
|
/usr/share/qt4/mkspecs/features/release.prf \
|
||
|
/usr/share/qt4/mkspecs/features/debug_and_release.prf \
|
||
|
/usr/share/qt4/mkspecs/features/default_post.prf \
|
||
|
/usr/share/qt4/mkspecs/features/build_pass.prf \
|
||
|
/usr/share/qt4/mkspecs/features/warn_on.prf \
|
||
|
/usr/share/qt4/mkspecs/features/qt.prf \
|
||
|
/usr/share/qt4/mkspecs/features/unix/thread.prf \
|
||
|
/usr/share/qt4/mkspecs/features/moc.prf \
|
||
|
/usr/share/qt4/mkspecs/features/resources.prf \
|
||
|
/usr/share/qt4/mkspecs/features/uic.prf \
|
||
|
/usr/share/qt4/mkspecs/features/yacc.prf \
|
||
|
/usr/share/qt4/mkspecs/features/lex.prf \
|
||
|
QTMatrix.pro
|
||
|
QMAKE_TARGET = QTMatrix
|
||
|
DESTDIR =
|
||
|
TARGET = QTMatrix
|
||
|
|
||
|
first: all
|
||
|
####### Implicit rules
|
||
|
|
||
|
.SUFFIXES: .o .c .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.Release $(TARGET)
|
||
|
|
||
|
$(TARGET): ui_qtmatrix.h ui_drawwidget.h $(OBJECTS)
|
||
|
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
|
||
|
|
||
|
qmake: FORCE
|
||
|
@$(QMAKE) -unix CONFIG+=debug_and_release -o Makefile.Release QTMatrix.pro
|
||
|
|
||
|
dist:
|
||
|
@$(CHK_DIR_EXISTS) release/QTMatrix1.0.0 || $(MKDIR) release/QTMatrix1.0.0
|
||
|
$(COPY_FILE) --parents $(SOURCES) $(DIST) release/QTMatrix1.0.0/ && $(COPY_FILE) --parents line.h point.h qtmatrix.h drawwidget.h release/QTMatrix1.0.0/ && $(COPY_FILE) --parents icons.qrc release/QTMatrix1.0.0/ && $(COPY_FILE) --parents line.cpp point.cpp main.cpp qtmatrix.cpp drawwidget.cpp release/QTMatrix1.0.0/ && $(COPY_FILE) --parents qtmatrix.ui drawwidget.ui release/QTMatrix1.0.0/ && (cd `dirname release/QTMatrix1.0.0` && $(TAR) QTMatrix1.0.0.tar QTMatrix1.0.0 && $(COMPRESS) QTMatrix1.0.0.tar) && $(MOVE) `dirname release/QTMatrix1.0.0`/QTMatrix1.0.0.tar.gz . && $(DEL_FILE) -r release/QTMatrix1.0.0
|
||
|
|
||
|
|
||
|
clean:compiler_clean
|
||
|
-$(DEL_FILE) $(OBJECTS)
|
||
|
-$(DEL_FILE) *~ core *.core
|
||
|
|
||
|
|
||
|
####### Sub-libraries
|
||
|
|
||
|
distclean: clean
|
||
|
-$(DEL_FILE) $(TARGET)
|
||
|
-$(DEL_FILE) Makefile.Release
|
||
|
|
||
|
|
||
|
mocclean: compiler_moc_header_clean compiler_moc_source_clean
|
||
|
|
||
|
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
|
||
|
|
||
|
compiler_moc_header_make_all: release/moc_qtmatrix.cpp release/moc_drawwidget.cpp
|
||
|
compiler_moc_header_clean:
|
||
|
-$(DEL_FILE) release/moc_qtmatrix.cpp release/moc_drawwidget.cpp
|
||
|
release/moc_qtmatrix.cpp: ui_qtmatrix.h \
|
||
|
drawwidget.h \
|
||
|
point.h \
|
||
|
line.h \
|
||
|
ui_drawwidget.h \
|
||
|
qtmatrix.h
|
||
|
/usr/bin/moc-qt4 $(DEFINES) $(INCPATH) qtmatrix.h -o release/moc_qtmatrix.cpp
|
||
|
|
||
|
release/moc_drawwidget.cpp: point.h \
|
||
|
line.h \
|
||
|
ui_drawwidget.h \
|
||
|
drawwidget.h
|
||
|
/usr/bin/moc-qt4 $(DEFINES) $(INCPATH) drawwidget.h -o release/moc_drawwidget.cpp
|
||
|
|
||
|
compiler_rcc_make_all: release/qrc_icons.cpp
|
||
|
compiler_rcc_clean:
|
||
|
-$(DEL_FILE) release/qrc_icons.cpp
|
||
|
release/qrc_icons.cpp: icons.qrc \
|
||
|
add.png \
|
||
|
del.png
|
||
|
/usr/bin/rcc -name icons icons.qrc -o release/qrc_icons.cpp
|
||
|
|
||
|
compiler_image_collection_make_all: qmake_image_collection.cpp
|
||
|
compiler_image_collection_clean:
|
||
|
-$(DEL_FILE) qmake_image_collection.cpp
|
||
|
compiler_moc_source_make_all:
|
||
|
compiler_moc_source_clean:
|
||
|
compiler_uic_make_all: ui_qtmatrix.h ui_drawwidget.h
|
||
|
compiler_uic_clean:
|
||
|
-$(DEL_FILE) ui_qtmatrix.h ui_drawwidget.h
|
||
|
ui_qtmatrix.h: qtmatrix.ui \
|
||
|
drawwidget.h \
|
||
|
point.h \
|
||
|
line.h \
|
||
|
ui_drawwidget.h
|
||
|
/usr/bin/uic-qt4 qtmatrix.ui -o ui_qtmatrix.h
|
||
|
|
||
|
ui_drawwidget.h: drawwidget.ui
|
||
|
/usr/bin/uic-qt4 drawwidget.ui -o ui_drawwidget.h
|
||
|
|
||
|
compiler_yacc_decl_make_all:
|
||
|
compiler_yacc_decl_clean:
|
||
|
compiler_yacc_impl_make_all:
|
||
|
compiler_yacc_impl_clean:
|
||
|
compiler_lex_make_all:
|
||
|
compiler_lex_clean:
|
||
|
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean
|
||
|
|
||
|
####### Compile
|
||
|
|
||
|
release/line.o: line.cpp line.h \
|
||
|
point.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/line.o line.cpp
|
||
|
|
||
|
release/point.o: point.cpp point.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/point.o point.cpp
|
||
|
|
||
|
release/main.o: main.cpp qtmatrix.h \
|
||
|
ui_qtmatrix.h \
|
||
|
drawwidget.h \
|
||
|
point.h \
|
||
|
line.h \
|
||
|
ui_drawwidget.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/main.o main.cpp
|
||
|
|
||
|
release/qtmatrix.o: qtmatrix.cpp qtmatrix.h \
|
||
|
ui_qtmatrix.h \
|
||
|
drawwidget.h \
|
||
|
point.h \
|
||
|
line.h \
|
||
|
ui_drawwidget.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/qtmatrix.o qtmatrix.cpp
|
||
|
|
||
|
release/drawwidget.o: drawwidget.cpp drawwidget.h \
|
||
|
point.h \
|
||
|
line.h \
|
||
|
ui_drawwidget.h
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/drawwidget.o drawwidget.cpp
|
||
|
|
||
|
release/moc_qtmatrix.o: release/moc_qtmatrix.cpp
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/moc_qtmatrix.o release/moc_qtmatrix.cpp
|
||
|
|
||
|
release/moc_drawwidget.o: release/moc_drawwidget.cpp
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/moc_drawwidget.o release/moc_drawwidget.cpp
|
||
|
|
||
|
release/qrc_icons.o: release/qrc_icons.cpp
|
||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o release/qrc_icons.o release/qrc_icons.cpp
|
||
|
|
||
|
####### Install
|
||
|
|
||
|
install: FORCE
|
||
|
|
||
|
uninstall: FORCE
|
||
|
|
||
|
FORCE:
|
||
|
|