# # $Id$ # $Log$ # Revision 1.8 1999/11/29 14:46:57 bzfbenge # Superflous omments removed. # # # # Usage for qt.rules: # # Create a target depending on all *.moc files, # and explicitely state the first inclusion dependency, # e.g.: # # moc: Object.moc # # Object.cpp: Object.moc # # whereby it is assumed that Object.cpp includes # Object.moc and Object.moc is generated out of Object.h # or Object.hpp . # # # NOTE: The .moc files are generated in the source code # directory. If competing architectures have different # meta object compilers, this would lead to false results. # There is a way to make this work, but there is no reason # thinkable why the meta object compiler should behave # different on different architectures, so there is no # reason to do so. # # 11.5.99: # Better don't change global LIB/INCLUDES variables here, package which like # to use QT must add QTLIBS/QTINCLUDES to their INCLUDES/LIBS variables themselves. # (otherwise even targets that don't need QT would be required to link with QT). # ifdef QTDIR QTLIBS = -L$(QTDIR)/lib -lqt QTINCLUDES = -I$(QTDIR)/include endif ifndef MOC MOC = $(QTDIR)/bin/moc endif # # Some often used rules for the QT library # .SUFFIXES: .h .hpp .moc .h.moc: $(MOC) -o $@ $< .hpp.moc: $(MOC) -o $@ $<