summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--Rules.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3e0af9993..6ebba4dd5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ VERSION=3.0.2
CC=gcc
CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS) -DGSEAL_ENABLE
CXX=g++
-CXXFLAGS=-Wall -g $(CLCFLAGS) -DQT_NO_KEYWORDS
+CXXFLAGS=-Wall -g $(CLCXXFLAGS) -DQT_NO_KEYWORDS
INSTALL=install
# these locations seem to work for SuSE and Fedora
diff --git a/Rules.mk b/Rules.mk
index d3c8c79a8..d5bc31246 100644
--- a/Rules.mk
+++ b/Rules.mk
@@ -210,7 +210,7 @@ doc:
clean:
rm -f $(ALL_OBJS) *~ $(NAME) $(NAME).exe po/*~ po/subsurface-new.pot \
- $(VERSION_FILE) qt-ui/*.moc qt-ui/ui_*.h
+ $(VERSION_FILE) $(HEADERS_NEEDING_MOC:.h=.moc) *.moc qt-ui/*.moc qt-ui/ui_*.h
rm -f $(RESOURCES:.qrc=.qrc.cpp)
rm -rf share