Виндовс, библиотека на основе qt, в папке с файлами библиотеки есть
commonqt.cpp commonqt.h commonqt.pro
commonqt.pro:
unix:TEMPLATE = lib
win32:TEMPLATE = vclib
HEADERS += commonqt.h
SOURCES += commonqt.cpp
CONFIG += qt thread debug dll
unix:LIBS += -lsmokeqtcore
win32:LIBS += smokeqtcore.lib
Видимо я чего-то не понимаю и делаю не так(хотя дело вроде в кривых путях к создаваемым Makefile.Debug и Makefile.Release), а делаю я следующее -
qmake -makefile
C:\Documents and Settings\Kovalev\quicklisp\dists\quicklisp\software\commonqt-20
110110-git>qmake -makefile
WARNING: Unable to generate output for: C:/Documents and Settings/Kovalev/quickl
isp/dists/quicklisp/software/commonqt-20110110-git//Makefile.Debug [TEMPLATE vcl
ib]
WARNING: Unable to generate output for: C:/Documents and Settings/Kovalev/quickl
isp/dists/quicklisp/software/commonqt-20110110-git//Makefile.Release [TEMPLATE vclib]
clib]
#############################################################################
# Makefile for building: commonqt
# Generated by qmake (2.01a) (Qt 4.7.0) on: ?? 17. ??? 15:25:47 2011
# Project: commonqt.pro
# Template: vclib
# Command: c:\Qt\2010.05\qt\bin\qmake.exe -o qmake.log commonqt.pro
#############################################################################
first: debug
install: debug-install
uninstall: debug-uninstall
MAKEFILE = qmake.log
QMAKE = c:\Qt\2010.05\qt\bin\qmake.exe
DEL_FILE = del
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
COPY = copy /y
COPY_FILE = $(COPY)
COPY_DIR = xcopy /s /q /y /i
INSTALL_FILE = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = del
SYMLINK =
DEL_DIR = rmdir
MOVE = move
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
SUBTARGETS = \
debug \
release
debug: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug
debug-make_default: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug
debug-make_first: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug first
debug-all: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug all
debug-clean: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug clean
debug-distclean: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug distclean
debug-install: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug install
debug-uninstall: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug uninstall
release: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release
release-make_default: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release
release-make_first: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release first
release-all: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release all
release-clean: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release clean
release-distclean: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release distclean
release-install: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release install
release-uninstall: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release uninstall
qmake.log: commonqt.pro c:/Qt/2010.05/qt/mkspecs/default/qmake.conf c:/Qt/2010.05/qt/mkspecs/qconfig.pri \
c:/Qt/2010.05/qt/mkspecs/modules/qt_webkit_version.pri \
c:/Qt/2010.05/qt/mkspecs/features/qt_functions.prf \
c:/Qt/2010.05/qt/mkspecs/features/qt_config.prf \
c:/Qt/2010.05/qt/mkspecs/features/exclusive_builds.prf \
c:/Qt/2010.05/qt/mkspecs/features/default_pre.prf \
c:/Qt/2010.05/qt/mkspecs/features/win32/default_pre.prf \
c:/Qt/2010.05/qt/mkspecs/features/debug.prf \
c:/Qt/2010.05/qt/mkspecs/features/debug_and_release.prf \
c:/Qt/2010.05/qt/mkspecs/features/default_post.prf \
c:/Qt/2010.05/qt/mkspecs/features/win32/default_post.prf \
c:/Qt/2010.05/qt/mkspecs/features/dll.prf \
c:/Qt/2010.05/qt/mkspecs/features/shared.prf \
c:/Qt/2010.05/qt/mkspecs/features/win32/thread.prf \
c:/Qt/2010.05/qt/mkspecs/features/qt.prf \
c:/Qt/2010.05/qt/mkspecs/features/moc.prf \
c:/Qt/2010.05/qt/mkspecs/features/win32/rtti.prf \
c:/Qt/2010.05/qt/mkspecs/features/win32/exceptions.prf \
c:/Qt/2010.05/qt/mkspecs/features/win32/stl.prf \
c:/Qt/2010.05/qt/mkspecs/features/warn_on.prf \
c:/Qt/2010.05/qt/mkspecs/features/win32/windows.prf \
c:/Qt/2010.05/qt/mkspecs/features/resources.prf \
c:/Qt/2010.05/qt/mkspecs/features/uic.prf \
c:/Qt/2010.05/qt/mkspecs/features/yacc.prf \
c:/Qt/2010.05/qt/mkspecs/features/lex.prf \
c:/Qt/2010.05/qt/mkspecs/features/include_source_dir.prf
$(QMAKE) -o qmake.log commonqt.pro
c:\Qt\2010.05\qt\mkspecs\qconfig.pri:
c:\Qt\2010.05\qt\mkspecs\modules\qt_webkit_version.pri:
c:\Qt\2010.05\qt\mkspecs\features\qt_functions.prf:
c:\Qt\2010.05\qt\mkspecs\features\qt_config.prf:
c:\Qt\2010.05\qt\mkspecs\features\exclusive_builds.prf:
c:\Qt\2010.05\qt\mkspecs\features\default_pre.prf:
c:\Qt\2010.05\qt\mkspecs\features\win32\default_pre.prf:
c:\Qt\2010.05\qt\mkspecs\features\debug.prf:
c:\Qt\2010.05\qt\mkspecs\features\debug_and_release.prf:
c:\Qt\2010.05\qt\mkspecs\features\default_post.prf:
c:\Qt\2010.05\qt\mkspecs\features\win32\default_post.prf:
c:\Qt\2010.05\qt\mkspecs\features\dll.prf:
c:\Qt\2010.05\qt\mkspecs\features\shared.prf:
c:\Qt\2010.05\qt\mkspecs\features\win32\thread.prf:
c:\Qt\2010.05\qt\mkspecs\features\qt.prf:
c:\Qt\2010.05\qt\mkspecs\features\moc.prf:
c:\Qt\2010.05\qt\mkspecs\features\win32\rtti.prf:
c:\Qt\2010.05\qt\mkspecs\features\win32\exceptions.prf:
c:\Qt\2010.05\qt\mkspecs\features\win32\stl.prf:
c:\Qt\2010.05\qt\mkspecs\features\warn_on.prf:
c:\Qt\2010.05\qt\mkspecs\features\win32\windows.prf:
c:\Qt\2010.05\qt\mkspecs\features\resources.prf:
c:\Qt\2010.05\qt\mkspecs\features\uic.prf:
c:\Qt\2010.05\qt\mkspecs\features\yacc.prf:
c:\Qt\2010.05\qt\mkspecs\features\lex.prf:
c:\Qt\2010.05\qt\mkspecs\features\include_source_dir.prf:
qmake: qmake_all FORCE
@$(QMAKE) -o qmake.log commonqt.pro
qmake_all: FORCE
make_default: debug-make_default release-make_default FORCE
make_first: debug-make_first release-make_first FORCE
all: debug-all release-all FORCE
clean: debug-clean release-clean FORCE
-$(DEL_FILE) libcommonqt.a
distclean: debug-distclean release-distclean FORCE
-$(DEL_FILE) qmake.log
check: first
debug-mocclean: $(MAKEFILE).Debug
$(MAKE) -f $(MAKEFILE).Debug mocclean
release-mocclean: $(MAKEFILE).Release
$(MAKE) -f $(MAKEFILE).Release mocclean
mocclean: debug-mocclean release-mocclean
debug-mocables: $(MAKEFILE).Debug
$(MAKE) -f $(MAKEFILE).Debug mocables
release-mocables: $(MAKEFILE).Release
$(MAKE) -f $(MAKEFILE).Release mocables
mocables: debug-mocables release-mocables
FORCE:
$(MAKEFILE).Debug: qmake.log
$(MAKEFILE).Release: qmake.log
также я хотел спросить про сам процесс создания мэйкфалов - Makefile и Makefile.Release, Makefile.Debug создаются независимо или последние 2 на основе первого?