-.objs/browser_widget.% .objs/child_iterator.% .objs/link_iterator.% \
-.objs/null_prompt_service.% .objs/style_sheets.% .objs/videolink.% \
-.objs/xpcom_support.% \
- : CXXFLAGS += -Wno-non-virtual-dtor
-
-# These dig a bit deeper into Mozilla
-.objs/link_iterator.% .objs/null_prompt_service.% .objs/style_sheets.% \
-.objs/videolink.% \
- : CPPFLAGS += $(addprefix -I$(moz_include_dir)/, \
- content docshell dom gfx imglib2 layout locale \
- necko uconv webshell widget) \
- -DMOZILLA_INTERNAL_API \
+$(sources_using_moz:%.cpp=.objs/%.o) : CXXFLAGS += -Wno-non-virtual-dtor
+
+$(sources_using_moz_unstable:%.cpp=.objs/%.o) \
+ : CPPFLAGS += $(moz_unstable_cppflags_extra) \