I am trying to produce makefiles I can use with nmake. The problem is that qmake always use the default makespec.

I set QMAKESPEC to win32-msvc2008 but the makefile looks like this:

Qt Code:
  1. #############################################################################
  2. # Makefile for building: uglyviewer
  3. # Generated by qmake (2.01a) (Qt 4.5.0) on: Fr 6. Mrz 01:18:31 2009
  4. # Project: UglyViewer.pro
  5. # Template: app
  6. # Command: c:\Qt\4.5.0\bin\qmake.exe -win32 -o Makefile UglyViewer.pro
  7. #############################################################################
  8.  
  9. ####### Compiler, tools and options
  10.  
  11. CC = gcc
  12. CXX = g++
  13. DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
  14. CFLAGS = -O2 $(DEFINES)
  15. CXXFLAGS = -O2 $(DEFINES)
  16. INCPATH = -I"c:\Qt\4.5.0\include\QtCore" -I"c:\Qt\4.5.0\include\QtGui" -I"c:\Qt\4.5.0\include" -I"%OGRE_HOME%\include" -I"c:\Qt\4.5.0\include\ActiveQt" -I"tmp" -I"c:\Qt\4.5.0\mkspecs\default"
  17. LINK = g++
  18. LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s
  19. LIBS = -L"c:\Qt\4.5.0\lib" tmp\release\\app_res.o -L%OGRE_HOME%/bin/release -lOIS -lOgreMain -lQtGui -lQtCore
  20. QMAKE = c:\Qt\4.5.0\bin\qmake.exe
  21. IDC = c:\Qt\4.5.0\bin\idc.exe
  22. IDL = midl
  23. ZIP = zip -r -9
  24. DEF_FILE =
  25. RES_FILE = tmp\release\\app_res.o
  26. COPY = copy /y
  27. COPY_FILE = $(COPY)
  28. COPY_DIR = xcopy /s /q /y /i
  29. DEL_FILE = del
  30. DEL_DIR = rmdir
  31. MOVE = move
  32. CHK_DIR_EXISTS= if not exist
  33. MKDIR = mkdir
  34. INSTALL_FILE = $(COPY_FILE)
  35. INSTALL_PROGRAM = $(COPY_FILE)
  36. INSTALL_DIR = $(COPY_DIR)
To copy to clipboard, switch view to plain text mode