summaryrefslogtreecommitdiff
path: root/makeinclude.in
diff options
context:
space:
mode:
Diffstat (limited to 'makeinclude.in')
-rw-r--r--makeinclude.in19
1 files changed, 8 insertions, 11 deletions
diff --git a/makeinclude.in b/makeinclude.in
index fb0d287fa..b023e1481 100644
--- a/makeinclude.in
+++ b/makeinclude.in
@@ -36,7 +36,7 @@ mandir = @mandir@
srcdir = @srcdir@
docdir = $(datadir)/doc/fltk
VPATH = @srcdir@
-
+USEMMFILES = @USEMMFILES@
# programs we use...
HTMLDOC = @HTMLDOC@
DOXYDOC = @DOXYDOC@
@@ -143,7 +143,7 @@ UNINSTALL_DESKTOP = @UNINSTALL_DESKTOP@
.SILENT:
# Build commands and filename extensions...
-.SUFFIXES: .0 .1 .3 .6 .c .cxx .h .fl .man .o .z $(EXEEXT)
+.SUFFIXES: .0 .1 .3 .6 .c .cxx .mm .h .fl .man .o .z $(EXEEXT)
.o$(EXEEXT):
echo Linking $@...
@@ -155,15 +155,12 @@ UNINSTALL_DESKTOP = @UNINSTALL_DESKTOP@
.cxx.o:
echo Compiling $<...
- @if test `uname` = Darwin -a $< = Fl.cxx ; then \
- $(CXX) -I.. $(ARCHFLAGS) @PNGINC@ @JPEGINC@ @ZLIBINC@ $(CXXFLAGS) -x objective-c++ -c $< -o $@; \
- elif test `uname` = Darwin -a $< = Fl_Native_File_Chooser.cxx ; then \
- $(CXX) -I.. $(ARCHFLAGS) @PNGINC@ @JPEGINC@ @ZLIBINC@ $(CXXFLAGS) -x objective-c++ -c $< -o $@; \
- elif test `uname` = Darwin -a $< = Fl_Printer.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
+ $(CXX) -I.. $(ARCHFLAGS) @PNGINC@ @JPEGINC@ @ZLIBINC@ $(CXXFLAGS) -c $< -o $@
+
+.mm.o:
+ echo Compiling $<...
+ $(CXX) -I.. $(ARCHFLAGS) $(CXXFLAGS) -x objective-c++ -c $< -o $@
+
.man.0 .man.1 .man.3 .man.6:
echo Formatting $<...