diff options
author | Adam Tkac <atkac@redhat.com> | 2008-03-20 11:48:41 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2008-03-20 11:48:41 +0000 |
commit | ae2c6454d953f142efc02da285655b0451d86da0 (patch) | |
tree | a48a2ab700c33f43c87a94c3804ef17b90d263d1 /unix/x0vncserver | |
parent | d547e72eba2e44a3201f603fee66bd504db7b854 (diff) | |
download | tigervnc-ae2c6454d953f142efc02da285655b0451d86da0.tar.gz tigervnc-ae2c6454d953f142efc02da285655b0451d86da0.zip |
- use Makefile.am and configure.ac
- removed unwanted files
- internationalization and jpeg library doesn't work yet
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1.5-xserver@2433 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/x0vncserver')
-rw-r--r-- | unix/x0vncserver/Image.cxx | 4 | ||||
-rw-r--r-- | unix/x0vncserver/Image.h | 4 | ||||
-rw-r--r-- | unix/x0vncserver/Makefile.am | 13 | ||||
-rw-r--r-- | unix/x0vncserver/Makefile.in | 30 | ||||
-rw-r--r-- | unix/x0vncserver/x0vncserver.cxx | 4 |
5 files changed, 25 insertions, 30 deletions
diff --git a/unix/x0vncserver/Image.cxx b/unix/x0vncserver/Image.cxx index f998c6a5..9e9a5bb2 100644 --- a/unix/x0vncserver/Image.cxx +++ b/unix/x0vncserver/Image.cxx @@ -20,6 +20,10 @@ // Image.cxx // +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <sys/types.h> diff --git a/unix/x0vncserver/Image.h b/unix/x0vncserver/Image.h index 4cac8b41..4e1442d6 100644 --- a/unix/x0vncserver/Image.h +++ b/unix/x0vncserver/Image.h @@ -23,6 +23,10 @@ #ifndef __IMAGE_H__ #define __IMAGE_H__ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <X11/Xlib.h> #include <X11/Xutil.h> diff --git a/unix/x0vncserver/Makefile.am b/unix/x0vncserver/Makefile.am new file mode 100644 index 00000000..59fa6c5a --- /dev/null +++ b/unix/x0vncserver/Makefile.am @@ -0,0 +1,13 @@ +bin_PROGRAMS = x0vncserver + +x0vncserver_SOURCES = buildtime.c Geometry.cxx Geometry.h Image.cxx Image.h \ + PollingManager.cxx PollingManager.h PollingScheduler.cxx \ + PollingScheduler.h TimeMillis.cxx TimeMillis.h XPixelBuffer.cxx \ + XPixelBuffer.h x0vncserver.cxx \ + $(UNIX_DIR)/vncconfig/QueryConnectDialog.cxx + +x0vncserver_CPPFLAGS = -I$(UNIX_DIR) -I$(COMMON_DIR) -I$(TX_DIR) \ + -I$(VNCCONFIG_DIR) + +x0vncserver_LDADD = $(RFB_LIBS) $(NETWORK_LIBS) $(RDR_LIBS) $(TX_LIBS) \ + $(ZLIB_LIBS) $(JPEG_LIBS) -lXext -lX11 diff --git a/unix/x0vncserver/Makefile.in b/unix/x0vncserver/Makefile.in deleted file mode 100644 index ade15268..00000000 --- a/unix/x0vncserver/Makefile.in +++ /dev/null @@ -1,30 +0,0 @@ - -SRCS = Image.cxx TimeMillis.cxx PollingScheduler.cxx PollingManager.cxx \ - Geometry.cxx XPixelBuffer.cxx \ - x0vncserver.cxx ../vncconfig/QueryConnectDialog.cxx - -OBJS = $(SRCS:.cxx=.o) - -program = x0vncserver - -DEP_LIBS = $(COMMON)/rfb/librfb.a \ - $(COMMON)/network/libnetwork.a \ - $(COMMON)/rdr/librdr.a \ - $(TOP)/tx/libtx.a - -EXTRA_LIBS = @ZLIB_LIB@ @JPEG_LIB@ @INET_LIB@ @X_PRE_LIBS@ @X_LIBS@ \ - @XTEST_LIB@ -lXext -lX11 @X_EXTRA_LIBS@ @CL_LIB@ @DMEDIA_LIB@ - -# X_CFLAGS are really CPPFLAGS -DIR_CPPFLAGS = -I$(COMMON) -I$(TOP) -I$(TOP)/tx -I$(TOP)/vncconfig \ - @XTEST_DEFINE@ @READDISPLAY_DEFINE@ @MITSHM_DEFINE@ @X_CFLAGS@ - -all:: $(program) - -$(program): $(OBJS) buildtime.o $(DEP_LIBS) - rm -f $(program) - $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) buildtime.o $(DEP_LIBS) $(LIBS) $(EXTRA_LIBS) - -buildtime.o: $(OBJS) $(DEP_LIBS) - -# followed by boilerplate.mk diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx index 4eb6b226..e260f326 100644 --- a/unix/x0vncserver/x0vncserver.cxx +++ b/unix/x0vncserver/x0vncserver.cxx @@ -20,6 +20,10 @@ // FIXME: Check cases when screen width/height is not a multiply of 32. // e.g. 800x600. +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <strings.h> #include <sys/types.h> #include <sys/stat.h> |