--- /dev/null
+SUBDIRS = @ZLIB_DIR@ @JPEG_DIR@ rdr network Xregion rfb
+++ /dev/null
-
-SUBDIRS = @ZLIB_DIR@ @JPEG_DIR@ rdr network Xregion rfb
-
-# followed by boilerplate.mk
--- /dev/null
+noinst_LTLIBRARIES = libXregion.la
+
+libXregion_la_SOURCES = Region.c
+++ /dev/null
-
-SRCS = Region.c
-
-OBJS = $(SRCS:.c=.o)
-
-library = libXregion.a
-
-all:: $(library)
-
-$(library): $(OBJS)
- rm -f $(library)
- $(AR) $(library) $(OBJS)
- $(RANLIB) $(library)
-
-# followed by boilerplate.mk
AC_PREREQ([2.61])
AC_INIT([librfb], [1.5.0a1], [http://www.tightvnc.com/bugs.html])
+AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])
+
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
-AC_PROG_RANLIB
+AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
AC_LANG([C++])
dnl Checks for IRIX-specific Compression Library.
AC_CHECK_LIB(cl, clQuerySchemeFromName,
[AC_DEFINE(HAVE_CL)
- PLATFORM_CXXSRCS="$PLATFORM_CXXSRCS IrixCLJpegCompressor.cxx"
+ IRIX_COMPRESS=yes
LIBS="$LIBS -lcl"])
+AM_CONDITIONAL([IRIX_COMPRESS], [ test "x$IRIX_COMPRESS" = xyes ])
dnl Checks for IRIX-specific Digital Media libraries.
AC_CHECK_LIB(dmedia, dmICCreate,
[AC_DEFINE(HAVE_DMEDIA)
- PLATFORM_CXXSRCS="$PLATFORM_CXXSRCS IrixDMJpegCompressor.cxx"
- PLATFORM_CXXSRCS="$PLATFORM_CXXSRCS IrixDMIC_RawToJpeg.cxx"
+ IRIX_MEDIA=yes
LIBS="$LIBS -ldmedia"])
-
-AC_SUBST(PLATFORM_CXXSRCS)
+AM_CONDITIONAL([IRIX_MEDIA], [ test "x$IRIX_MEDIA" = xyes ])
AC_ARG_WITH([tight-zlib],
AS_HELP_STRING([--with-tight-zlib],
fi
fi
-AC_OUTPUT(Makefile:Makefile.in:$BOILERPLATE \
- rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \
- network/Makefile:network/Makefile.in:$BOILERPLATE \
- Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \
- rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \
-)
+AC_OUTPUT([Makefile
+ rdr/Makefile
+ network/Makefile
+ Xregion/Makefile
+ rfb/Makefile])
--- /dev/null
+noinst_LTLIBRARIES = libnetwork.la
+
+libnetwork_la_SOURCES = TcpSocket.cxx
+
+libnetwork_la_CPPFLAGS = -I$(top_srcdir) @SOCKLEN_T_DEFINE@
+
+++ /dev/null
-
-SRCS = TcpSocket.cxx
-
-OBJS = $(SRCS:.cxx=.o)
-
-DIR_CPPFLAGS = -I$(top_srcdir) @SOCKLEN_T_DEFINE@
-
-library = libnetwork.a
-
-all:: $(library)
-
-$(library): $(OBJS)
- rm -f $(library)
- $(AR) $(library) $(OBJS)
- $(RANLIB) $(library)
-
-# followed by boilerplate.mk
--- /dev/null
+noinst_LTLIBRARIES = librdr.la
+
+librdr_la_SOURCES = Exception.cxx FdInStream.cxx FdOutStream.cxx InStream.cxx \
+ RandomStream.cxx ZlibInStream.cxx ZlibOutStream.cxx HexInStream.cxx \
+ HexOutStream.cxx
+
+librdr_la_CPPFLAGS = -I$(top_srcdir) @ZLIB_INCLUDE@
+++ /dev/null
-
-SRCS = Exception.cxx FdInStream.cxx FdOutStream.cxx InStream.cxx \
- RandomStream.cxx ZlibInStream.cxx ZlibOutStream.cxx \
- HexInStream.cxx HexOutStream.cxx
-
-OBJS = $(SRCS:.cxx=.o)
-
-DIR_CPPFLAGS = -I$(top_srcdir) @ZLIB_INCLUDE@
-
-library = librdr.a
-
-all:: $(library)
-
-$(library): $(OBJS)
- rm -f $(library)
- $(AR) $(library) $(OBJS)
- $(RANLIB) $(library)
-
-# followed by boilerplate.mk
--- /dev/null
+noinst_LTLIBRARIES = librfb.la
+
+librfb_la_SOURCES = Blacklist.cxx CConnection.cxx CMsgHandler.cxx \
+ CMsgReader.cxx CMsgReaderV3.cxx CMsgWriter.cxx CMsgWriterV3.cxx \
+ CSecurityVncAuth.cxx CapsContainer.cxx CapsList.cxx \
+ ComparingUpdateTracker.cxx Configuration.cxx ConnParams.cxx \
+ Cursor.cxx Decoder.cxx d3des.c Encoder.cxx FileInfo.cxx \
+ FileManager.cxx FileReader.cxx FileWriter.cxx JpegCompressor.cxx \
+ JpegEncoder.cxx HTTPServer.cxx HextileDecoder.cxx HextileEncoder.cxx \
+ KeyRemapper.cxx LogWriter.cxx Logger.cxx Logger_file.cxx \
+ Logger_stdio.cxx Password.cxx PixelBuffer.cxx PixelFormat.cxx \
+ RREEncoder.cxx RREDecoder.cxx RawDecoder.cxx RawEncoder.cxx \
+ Region.cxx SConnection.cxx SFTMsgReader.cxx SFTMsgWriter.cxx \
+ SFileTransfer.cxx SFileTransferManager.cxx SMsgHandler.cxx \
+ SMsgReader.cxx SMsgReaderV3.cxx SMsgWriter.cxx SMsgWriterV3.cxx \
+ ServerCore.cxx SSecurityFactoryStandard.cxx SSecurityVncAuth.cxx \
+ ScaledPixelBuffer.cxx ScaleFilters.cxx Timer.cxx TightDecoder.cxx \
+ TightEncoder.cxx TightPalette.cxx TransImageGetter.cxx \
+ TransferQueue.cxx UpdateTracker.cxx VNCSConnectionST.cxx \
+ VNCServerST.cxx ZRLEEncoder.cxx ZRLEDecoder.cxx encodings.cxx \
+ secTypes.cxx util.cxx
+
+if IRIX_COMPRESS
+librfb_la_SOURCES += IrixCLJpegCompressor.cxx
+endif
+if IRIX_MEDIA
+librfb_la_SOURCES += IrixDMJpegCompressor.cxx IrixDMIC_RawToJpeg.cxx
+endif
+
+librfb_la_CPPFLAGS = -I$(top_srcdir) @JPEG_INCLUDE@ @VSNPRINTF_DEFINE@ \
+ @STRCASECMP_DEFINE@ @STRNCASECMP_DEFINE@
+++ /dev/null
-
-CXXSRCS = \
- Blacklist.cxx \
- CConnection.cxx \
- CMsgHandler.cxx \
- CMsgReader.cxx \
- CMsgReaderV3.cxx \
- CMsgWriter.cxx \
- CMsgWriterV3.cxx \
- CSecurityVncAuth.cxx \
- CapsContainer.cxx \
- CapsList.cxx \
- ComparingUpdateTracker.cxx \
- Configuration.cxx \
- ConnParams.cxx \
- Cursor.cxx \
- Decoder.cxx \
- Encoder.cxx \
- FileInfo.cxx \
- FileManager.cxx \
- FileReader.cxx \
- FileWriter.cxx \
- JpegCompressor.cxx \
- JpegEncoder.cxx \
- HTTPServer.cxx \
- HextileDecoder.cxx \
- HextileEncoder.cxx \
- KeyRemapper.cxx \
- LogWriter.cxx \
- Logger.cxx \
- Logger_file.cxx \
- Logger_stdio.cxx \
- Password.cxx \
- PixelBuffer.cxx \
- PixelFormat.cxx \
- RREEncoder.cxx \
- RREDecoder.cxx \
- RawDecoder.cxx \
- RawEncoder.cxx \
- Region.cxx \
- SConnection.cxx \
- SFTMsgReader.cxx \
- SFTMsgWriter.cxx \
- SFileTransfer.cxx \
- SFileTransferManager.cxx \
- SMsgHandler.cxx \
- SMsgReader.cxx \
- SMsgReaderV3.cxx \
- SMsgWriter.cxx \
- SMsgWriterV3.cxx \
- ServerCore.cxx \
- SSecurityFactoryStandard.cxx \
- SSecurityVncAuth.cxx \
- ScaledPixelBuffer.cxx \
- ScaleFilters.cxx \
- Timer.cxx \
- TightDecoder.cxx \
- TightEncoder.cxx \
- TightPalette.cxx \
- TransImageGetter.cxx \
- TransferQueue.cxx \
- UpdateTracker.cxx \
- VNCSConnectionST.cxx \
- VNCServerST.cxx \
- ZRLEEncoder.cxx \
- ZRLEDecoder.cxx \
- encodings.cxx \
- secTypes.cxx \
- util.cxx \
- @PLATFORM_CXXSRCS@
-
-SRCS = d3des.c $(CXXSRCS)
-
-OBJS = d3des.o $(CXXSRCS:.cxx=.o)
-
-DIR_CPPFLAGS = -I$(top_srcdir) @JPEG_INCLUDE@ @VSNPRINTF_DEFINE@ \
- @STRCASECMP_DEFINE@ @STRNCASECMP_DEFINE@
-
-library = librfb.a
-
-all:: $(library)
-
-$(library): $(OBJS)
- rm -f $(library)
- $(AR) $(library) $(OBJS)
- $(RANLIB) $(library)
-
-# followed by boilerplate.mk