summaryrefslogtreecommitdiffstats
path: root/Rules.mk
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-10-05 12:11:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-05 13:59:59 -0700
commit5a139c934dcd5ee3514c04ac9dc3e1dcb0a13ff7 (patch)
tree180f6c14f05eb6fe7400caf2a1f534c6b6860373 /Rules.mk
parent3e0ecb5ff6a95e1be8f22359048e4dfa85d165bc (diff)
downloadsubsurface-5a139c934dcd5ee3514c04ac9dc3e1dcb0a13ff7.tar.gz
Don't include headers under extern "C" unless we have to.
libxml headers include ICU headers and ICU has C++ code. If it detects __cplusplus, it will start declaring C++ templates and whatnot, which aren't allowed under extern "C". Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Rules.mk')
-rw-r--r--Rules.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/Rules.mk b/Rules.mk
index a62b1bea4..8af00a859 100644
--- a/Rules.mk
+++ b/Rules.mk
@@ -215,8 +215,12 @@ ui_%.h: %.ui .uic
@mkdir -p .uic/qt-ui
$(COMPILE_PREFIX)$(UIC) $< -o .uic/$@
-.uic:
- $(COMPILE_PREFIX)mkdir $@
+# This forces the creation of ui headers with the wrong path
+# This is required because the -MG option to the compiler outputs
+# unknown files with no path prefix
+ui_%.h: qt-ui/%.ui
+ @$(PRETTYECHO) ' UIC' $<
+ $(COMPILE_PREFIX)$(UIC) $< -o qt-ui/$@
share/locale/%.UTF-8/LC_MESSAGES/$(NAME).mo: po/%.po po/%.aliases
@$(PRETTYECHO) ' MSGFMT' $*.po