*.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 +=).
This commit is contained in:
Jan Lindemann 2012-02-04 16:48:58 +00:00 committed by Jan Lindemann
commit 634992f447
6 changed files with 94 additions and 94 deletions

View file

@ -3,7 +3,7 @@ moc_%.cpp: %.h
$(MOC) -o $@ $<
else
moc_%.cpp: %.h
$(MOC) $(filter -D% -I%,$(strip $(CPPFLAGS))) -o $@ $<
$(MOC) $(filter -D% -I%,$(strip $(BUILD_CPPFLAGS))) -o $@ $<
endif
rcc_%.cpp: %.qrc