rules.mk: Fix moc for Qt 3

This commit is contained in:
Jan Lindemann 2006-03-07 21:05:16 +00:00 committed by Jan Lindemann
commit 9e2b78be92

View file

@ -24,8 +24,13 @@ $(LIBDIR):
# $(AR) r $@ $*.o # $(AR) r $@ $*.o
# $(RM) $*.o # $(RM) $*.o
ifeq ($(QT_VERSION),3)
moc_%.cpp: %.h
$(MOC) -o $@ $<
else
moc_%.cpp: %.h moc_%.cpp: %.h
$(MOC) $(filter -D% -I%,$(strip $(CPPFLAGS))) -o $@ $< $(MOC) $(filter -D% -I%,$(strip $(CPPFLAGS))) -o $@ $<
endif
rcc_%.cpp: %.qrc rcc_%.cpp: %.qrc
$(RCC) -o $@ $< $(RCC) -o $@ $<