qt-rules.mk: Add file

This commit is contained in:
Jan Lindemann 2007-08-21 16:30:06 +00:00 committed by Jan Lindemann
commit 8ddd9c1c5c

26
make/qt-rules.mk Normal file
View file

@ -0,0 +1,26 @@
ifeq ($(QT_MAJOR_VERSION),3)
moc_%.cpp: %.h
$(MOC) -o $@ $<
else
moc_%.cpp: %.h
$(MOC) $(filter -D% -I%,$(strip $(CPPFLAGS))) -o $@ $<
endif
rcc_%.cpp: %.qrc
$(RCC) -o $@ $<
ifeq ($(QT_MAJOR_VERSION),4)
ui_%.h: %.ui
else
%.h: %.ui
endif
$(UIC) $< -o $@
ifeq ($(QT_MAJOR_VERSION),4)
uic_%.cpp: %.h
echo -e "#include <$<>\n" > $@
else
uic_%.cpp: %.h %.ui
$(UIC) $*.ui -i $< -o $@
endif