compiler_moc_header_clean:MacBook-arch:test arch$ cat Makefile | grep broken.h $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/broken1.0.0/ && $(COPY_FILE) --parents broken.h .tmp/broken1.0.0/ && $(COPY_FILE) --parents main.cpp .tmp/broken1.0.0/ && (cd `dirname .tmp/broken1.0.0` && $(TAR) broken1.0.0.tar broken1.0.0 && $(COMPRESS) broken1.0.0.tar) && $(MOVE) `dirname .tmp/broken1.0.0`/broken1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/broken1.0.0
MacBook-arch:test arch$ /usr/local/Trolltech/Qt-4.6.0/bin/qmake MacBook-arch:test arch$ cat Makefile | grep broken.h $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/broken1.0.0/ && $(COPY_FILE) --parents broken.h .tmp/broken1.0.0/ && $(COPY_FILE) --parents main.cpp .tmp/broken1.0.0/ && (cd `dirname .tmp/broken1.0.0` && $(TAR) broken1.0.0.tar broken1.0.0 && $(COMPRESS) broken1.0.0.tar) && $(MOVE) `dirname .tmp/broken1.0.0`/broken1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/broken1.0.0[b]main.o: main.cpp broken.h[/b]
>mingw32-makemingw32-make -f Makefile.Debugmingw32-make[1]: Entering directory `D:/Work/broken'mingw32-make[1]: Nothing to be done for `first'.mingw32-make[1]: Leaving directory `D:/Work/broken'
############################################################################## Makefile for building: broken# Generated by qmake (2.01a) (Qt 4.6.0) on: ?? 5. ??? 20:54:56 2010# Project: broken.pro# Template: app#################################################################################### Compiler, tools and optionsCC = gccCXX = g++DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORTCFLAGS = -g -Wall $(DEFINES)CXXFLAGS = -g -frtti -fexceptions -mthreads -Wall $(DEFINES)INCPATH = -I"..\qt-everywhere-opensource-src-4.6.0\include\QtCore" -I"..\qt-everywhere-opensource-src-4.6.0\include\QtGui" -I"..\qt-everywhere-opensource-src-4.6.0\include" -I"..\qt-everywhere-opensource-src-4.6.0\include\ActiveQt" -I"debug" -I"..\qt-everywhere-opensource-src-4.6.0\mkspecs\win32-g++"LINK = g++LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -WlLIBS = -L"d:\Work\qt-everywhere-opensource-src-4.6.0\lib" -lQtGuid4 -lQtCored4 QMAKE = d:\Work\qt-everywhere-opensource-src-4.6.0\bin\qmake.exeIDC = d:\Work\qt-everywhere-opensource-src-4.6.0\bin\idc.exeIDL = midlZIP = zip -r -9DEF_FILE = RES_FILE = COPY = copy /yCOPY_FILE = $(COPY)COPY_DIR = xcopy /s /q /y /iDEL_FILE = delDEL_DIR = rmdirMOVE = moveCHK_DIR_EXISTS= if not existMKDIR = mkdirINSTALL_FILE = $(COPY_FILE)INSTALL_PROGRAM = $(COPY_FILE)INSTALL_DIR = $(COPY_DIR)####### Output directoryOBJECTS_DIR = debug####### FilesSOURCES = main.cpp OBJECTS = debug/main.oDIST = QMAKE_TARGET = brokenDESTDIR = debug\ #avoid trailing-slash linebreakTARGET = broken.exeDESTDIR_TARGET = debug\broken.exe####### Implicit rules.SUFFIXES: .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: $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<####### Build rulesfirst: allall: Makefile.Debug $(DESTDIR_TARGET)$(DESTDIR_TARGET): $(OBJECTS) $(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS)qmake: FORCE @$(QMAKE) -win32 -o Makefile.Debug broken.prodist: $(ZIP) broken.zip $(SOURCES) $(DIST) broken.pro ..\qt-everywhere-opensource-src-4.6.0\mkspecs\qconfig.pri ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\qt_functions.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\qt_config.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\exclusive_builds.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\default_pre.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\win32\default_pre.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\debug.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\debug_and_release.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\default_post.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\win32\default_post.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\build_pass.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\win32\console.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\win32\rtti.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\win32\exceptions.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\win32\stl.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\shared.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\warn_on.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\qt.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\win32\thread.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\moc.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\resources.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\uic.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\yacc.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\lex.prf ..\qt-everywhere-opensource-src-4.6.0\mkspecs\features\include_source_dir.prf HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES clean: compiler_clean -$(DEL_FILE) debug\main.odistclean: clean -$(DEL_FILE) $(DESTDIR_TARGET) -$(DEL_FILE) Makefile.Debugmocclean: compiler_moc_header_clean compiler_moc_source_cleanmocables: compiler_moc_header_make_all compiler_moc_source_make_allcompiler_moc_header_make_all:compiler_moc_header_clean:compiler_rcc_make_all:compiler_rcc_clean:compiler_image_collection_make_all: qmake_image_collection.cppcompiler_image_collection_clean: -$(DEL_FILE) qmake_image_collection.cppcompiler_moc_source_make_all:compiler_moc_source_clean:compiler_uic_make_all:compiler_uic_clean: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: ####### Compiledebug/main.o: main.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\main.o main.cpp####### Installinstall: FORCEuninstall: FORCEFORCE:
C++ (Qt)//#include "broken.h" int main( int argc, char ** argv )
INI############################################################################## Makefile for building: test# Generated by qmake (2.01a) (Qt 4.6.0) on: ?? ???. 5 21:26:53 2010# Project: test.pro# Template: app# Command: /home/nixman/qtsdk-2009.05/qt/bin/qmake -unix -o Makefile test.pro############################################################################# ####### Compiler, tools and options CC = gccCXX = g++DEFINES = -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHAREDCFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)CXXFLAGS = -pipe -std=c++0x -O2 -Wall -W -D_REENTRANT $(DEFINES)INCPATH = -I../qtsdk-2009.05/qt/mkspecs/linux-g++ -I. -I../qtsdk-2009.05/qt/include/QtCore -I../qtsdk-2009.05/qt/include -I.LINK = g++LFLAGS = -Wl,-O1 -Wl,-rpath,/home/nixman/qtsdk-2009.05/qt/libLIBS = $(SUBLIBS) -L/home/nixman/qtsdk-2009.05/qt/lib -lboost_system -lQtCore -L/home/nixman/qtsdk-2009.05/qt/lib -lpthread AR = ar cqsRANLIB = QMAKE = /home/nixman/qtsdk-2009.05/qt/bin/qmakeTAR = tar -cfCOMPRESS = gzip -9fCOPY = cp -fSED = sedCOPY_FILE = $(COPY)COPY_DIR = $(COPY) -rSTRIP = stripINSTALL_FILE = install -m 644 -pINSTALL_DIR = $(COPY_DIR)INSTALL_PROGRAM = install -m 755 -pDEL_FILE = rm -fSYMLINK = ln -sfDEL_DIR = rmdirMOVE = mv -fCHK_DIR_EXISTS= test -dMKDIR = mkdir -p ####### Output directory OBJECTS_DIR = ./ ####### Files SOURCES = main.cpp OBJECTS = main.oDIST = ../qtsdk-2009.05/qt/mkspecs/common/g++.conf \ ../qtsdk-2009.05/qt/mkspecs/common/unix.conf \ ../qtsdk-2009.05/qt/mkspecs/common/linux.conf \ ../qtsdk-2009.05/qt/mkspecs/qconfig.pri \ ../qtsdk-2009.05/qt/mkspecs/features/qt_functions.prf \ ../qtsdk-2009.05/qt/mkspecs/features/qt_config.prf \ ../qtsdk-2009.05/qt/mkspecs/features/exclusive_builds.prf \ ../qtsdk-2009.05/qt/mkspecs/features/default_pre.prf \ ../qtsdk-2009.05/qt/mkspecs/features/release.prf \ ../qtsdk-2009.05/qt/mkspecs/features/default_post.prf \ ../qtsdk-2009.05/qt/mkspecs/features/warn_on.prf \ ../qtsdk-2009.05/qt/mkspecs/features/qt.prf \ ../qtsdk-2009.05/qt/mkspecs/features/unix/thread.prf \ ../qtsdk-2009.05/qt/mkspecs/features/moc.prf \ ../qtsdk-2009.05/qt/mkspecs/features/resources.prf \ ../qtsdk-2009.05/qt/mkspecs/features/uic.prf \ ../qtsdk-2009.05/qt/mkspecs/features/yacc.prf \ ../qtsdk-2009.05/qt/mkspecs/features/lex.prf \ ../qtsdk-2009.05/qt/mkspecs/features/include_source_dir.prf \ test.proQMAKE_TARGET = testDESTDIR = TARGET = test 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 $(TARGET) $(TARGET): $(OBJECTS) $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) Makefile: test.pro ../qtsdk-2009.05/qt/mkspecs/linux-g++/qmake.conf ../qtsdk-2009.05/qt/mkspecs/common/g++.conf \ ../qtsdk-2009.05/qt/mkspecs/common/unix.conf \ ../qtsdk-2009.05/qt/mkspecs/common/linux.conf \ ../qtsdk-2009.05/qt/mkspecs/qconfig.pri \ ../qtsdk-2009.05/qt/mkspecs/features/qt_functions.prf \ ../qtsdk-2009.05/qt/mkspecs/features/qt_config.prf \ ../qtsdk-2009.05/qt/mkspecs/features/exclusive_builds.prf \ ../qtsdk-2009.05/qt/mkspecs/features/default_pre.prf \ ../qtsdk-2009.05/qt/mkspecs/features/release.prf \ ../qtsdk-2009.05/qt/mkspecs/features/default_post.prf \ ../qtsdk-2009.05/qt/mkspecs/features/warn_on.prf \ ../qtsdk-2009.05/qt/mkspecs/features/qt.prf \ ../qtsdk-2009.05/qt/mkspecs/features/unix/thread.prf \ ../qtsdk-2009.05/qt/mkspecs/features/moc.prf \ ../qtsdk-2009.05/qt/mkspecs/features/resources.prf \ ../qtsdk-2009.05/qt/mkspecs/features/uic.prf \ ../qtsdk-2009.05/qt/mkspecs/features/yacc.prf \ ../qtsdk-2009.05/qt/mkspecs/features/lex.prf \ ../qtsdk-2009.05/qt/mkspecs/features/include_source_dir.prf \ /home/nixman/qtsdk-2009.05/qt/lib/libQtCore.prl $(QMAKE) -unix -o Makefile test.pro../qtsdk-2009.05/qt/mkspecs/common/g++.conf:../qtsdk-2009.05/qt/mkspecs/common/unix.conf:../qtsdk-2009.05/qt/mkspecs/common/linux.conf:../qtsdk-2009.05/qt/mkspecs/qconfig.pri:../qtsdk-2009.05/qt/mkspecs/features/qt_functions.prf:../qtsdk-2009.05/qt/mkspecs/features/qt_config.prf:../qtsdk-2009.05/qt/mkspecs/features/exclusive_builds.prf:../qtsdk-2009.05/qt/mkspecs/features/default_pre.prf:../qtsdk-2009.05/qt/mkspecs/features/release.prf:../qtsdk-2009.05/qt/mkspecs/features/default_post.prf:../qtsdk-2009.05/qt/mkspecs/features/warn_on.prf:../qtsdk-2009.05/qt/mkspecs/features/qt.prf:../qtsdk-2009.05/qt/mkspecs/features/unix/thread.prf:../qtsdk-2009.05/qt/mkspecs/features/moc.prf:../qtsdk-2009.05/qt/mkspecs/features/resources.prf:../qtsdk-2009.05/qt/mkspecs/features/uic.prf:../qtsdk-2009.05/qt/mkspecs/features/yacc.prf:../qtsdk-2009.05/qt/mkspecs/features/lex.prf:../qtsdk-2009.05/qt/mkspecs/features/include_source_dir.prf:/home/nixman/qtsdk-2009.05/qt/lib/libQtCore.prl:qmake: FORCE @$(QMAKE) -unix -o Makefile test.pro dist: @$(CHK_DIR_EXISTS) .tmp/test1.0.0 || $(MKDIR) .tmp/test1.0.0 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/test1.0.0/ && $(COPY_FILE) --parents main.h .tmp/test1.0.0/ && $(COPY_FILE) --parents main.cpp .tmp/test1.0.0/ && (cd `dirname .tmp/test1.0.0` && $(TAR) test1.0.0.tar test1.0.0 && $(COMPRESS) test1.0.0.tar) && $(MOVE) `dirname .tmp/test1.0.0`/test1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/test1.0.0 clean:compiler_clean -$(DEL_FILE) $(OBJECTS) -$(DEL_FILE) *~ core *.core ####### Sub-libraries distclean: clean -$(DEL_FILE) $(TARGET) -$(DEL_FILE) Makefile 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:compiler_moc_header_clean:compiler_rcc_make_all:compiler_rcc_clean:compiler_image_collection_make_all: qmake_image_collection.cppcompiler_image_collection_clean: -$(DEL_FILE) qmake_image_collection.cppcompiler_moc_source_make_all:compiler_moc_source_clean:compiler_uic_make_all:compiler_uic_clean: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: ####### Compile main.o: main.cpp main.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp ####### Install install: FORCE uninstall: FORCE FORCE: