【正文】
name of all source files in the project.For example:SOURCES = \ \ See alsoHEADERSSUBDIRSThis variable, when used with the 39。subdir39。TEMPLATEcontains the names of all subdirectories to look for a project file.For example:SUBDIRS = kernel \ toolsTARGETThis specifies the name of the target file.For example:TEMPLATE = appTARGET = myappSOURCES = The project file above would produce an executable named 39。myapp39。 on unix and 39。39。 on windows.TEMPLATEThis variable contains the name of the template to use when generating the project. The allowed values are: app Creates a makefile for building applications (the default) lib Creates a makefile for building libraries subdirs Creates a makefile for building targets in subdirectories vcapp win32 onlyCreates an application project file vclib win32 onlyCreates a library project fileFor example:TEMPLATE = libSOURCES = TARGET = mylibVERSIONThis variable contains the version number of the library if the 39。lib39。TEMPLATEis specified.For example:VERSION = DISTFILESThis variable contains a list of files to be included in the dist target. This feature is supported by UnixMake specs only.For example:DISTFILES += ../YACCSOURCESThis variable contains a list of yacc source files to be included in the project. All dependencies, headers and source files will automatically be included in the project.For example:YACCSOURCES = Rarely Used System VariablesThe following variables are also recognized byqmakebut are either internal or very rarely used.DESTDIR_TARGETThis variable is set internally byqmake, which is basically the DESTDIR variable with the TARGET variable appened at the end. The value of this variable is typically handled byqmakeorand rarely needs to be modified.DSP_TEMPLATEThis variable is set internally byqmake, which specifies where the dsp template file for basing generated dsp files is stored. The value of this variable is typically handled byqmakeorand rarely needs to be modified.LEXIMPLSThis variable contains a list of lex implementation files. The value of this variable is typically handled byqmakeorand rarely needs to be modified.LEXOBJECTSThis variable contains the names of intermediate lex object value of this variable is typically handled byqmakeand rarely needs to be modified.MAKEFILEThis variable specifies the name of the makefile whichqmakeshould use when outputting the dependency information for building a project. The value of this variable is typically handled byqmakeorand rarely needs to be modified.MAKEFILE_GENERATORThis variable contains the name of the makefile generator to use when generating a makefile. The value of this variable is typically handled internally byqmakeand rarely needs to be modified.OBJECTSThis variable is generated from theSOURCESvariable. The extension of each source file will have been replaced by .o (Unix) or .obj (Win32). The value of this variable is typically handled byqmakeorand rarely needs to be modified.OBJMOCThis variable is set byqmakeif files can be found that contain the Q_OBJECT macro.OBJMOCcontains the name of all intermediate moc object files. The value of this variable is typically handled byqmakeorand rarely needs to be modified.PRECOMPHThis variable contains a list of header files that require some sort of prepilation step (such as with moc). The value of this variable is typically handled byqmakeorand rarely needs to be modified.QMAKEThis variable contains the name of theqmakeprogram itself and is placed in generated makefiles. The value of this variable is typically handled byqmakeorand rarely needs to be modified.QMAKESPECThis variable contains the name of theqmakeconfiguration to use when generating makefiles. The value of this variable is typically handled byqmakeorand rarely needs to be modified. Use theQMAKESPECenvironment variable instead.QMAKE_AIX_SHLIBIf this variable is not empty, then this variable tellsqmaketo generate theTARGETas an AIX shared library.QMAKE_APP_FLAGThis variable is empty unless the 39。app39。TEMPLATEis specified. The value of this variable is typically handled byqmakeorand rarely needs to be modified. Use the following instead:app { conditional code for 39。app39。 template here}QMAKE_APP_OR_DLLThis variable is empty unless the 39。app39。 or 39。dll39。TEMPLATEis specified. The value of this variable is typically handled byqmakeorand rarely needs to be modified.QMAKE_AR_CMDThis is used on Unix platforms onlyThis variable contains the mand for invoking the program which creates, modifies and extracts archives. The value of this variable is typically handled byqmakeorand rarely needs to be modified.QMAKE_CFLAGS_DEBUGThis variable contains the flags for the C piler in debug value of this variable is typically handled byqmakeorand rarely needs to be modified.QMAKE_CFLAGS_MTThis variable contains the piler flags for creating a multithreaded application. The value of this variable is typically handled byqmakeorand rarely needs to be modified.QMAKE_CFLAGS_MT_DBGThis variable contains the piler flags for creating a debuggable multithreaded application. The value of this variable is typically handled byqmakeorand rarely needs to be modified.QMAKE_CFLAGS_MT_DLLThis is used on Windows onlyThis variable contains the piler flags for creating a multithreaded dll. The value of this variable is typically handled byqmakeorand rarely needs to be modified.QMAKE_CFLAGS_MT_DLLDBGThis is used on Windows onlyThis variable contains the piler flags for creating a debuggable multithreaded dll. The value of this variable is typically handled by16