summaryrefslogtreecommitdiff
path: root/makeinclude.in
diff options
context:
space:
mode:
Diffstat (limited to 'makeinclude.in')
-rw-r--r--makeinclude.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/makeinclude.in b/makeinclude.in
index c42e0c333..999d632d4 100644
--- a/makeinclude.in
+++ b/makeinclude.in
@@ -152,7 +152,11 @@ UNINSTALL_DESKTOP = @UNINSTALL_DESKTOP@
.cxx.o:
echo Compiling $<...
- $(CXX) -I.. $(ARCHFLAGS) @PNGINC@ @JPEGINC@ @ZLIBINC@ $(CXXFLAGS) -c $< -o $@
+ @if [ $< = Fl.cxx ]; then \
+ $(CXX) -I.. $(ARCHFLAGS) @PNGINC@ @JPEGINC@ @ZLIBINC@ $(CXXFLAGS) -x objective-c++ -c $< -o $@; \
+ else \
+ $(CXX) -I.. $(ARCHFLAGS) @PNGINC@ @JPEGINC@ @ZLIBINC@ $(CXXFLAGS) -c $< -o $@; \
+ fi
.man.0 .man.1 .man.3 .man.6:
echo Formatting $<...