jw-pkg/make/qt-rules.mk
Jan Lindemann 634992f447 *.mk: Prefix non-env C/C++ flags with BUILD_
Prefix all CFLAGS / CPPFLAGS / LDFLAGS with BUILD_ to distinguish
them from flags read from the environment (and getting longer and
longer with +=).
2012-02-04 16:48:58 +00:00

26 lines
406 B
Makefile

ifeq ($(QT_MAJOR_VERSION),3)
moc_%.cpp: %.h
$(MOC) -o $@ $<
else
moc_%.cpp: %.h
$(MOC) $(filter -D% -I%,$(strip $(BUILD_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: ui_%.h
echo -e "#include <$<>\n" > $@
else
uic_%.cpp: %.h %.ui
$(UIC) $*.ui -i $< -o $@
endif