LTKSRCDIR = $(srcdir)/../ltk
LTKLIBDIR = ../ltk
-CXXFLAGS = @CXXFLAGS@ @DEFS@ @OPTIONS@ -I$(GOOSRCDIR) -I$(LTKSRCDIR) -I$(srcdir) @X_CFLAGS@ @Xpm_CFLAGS@
-
+#CXXFLAGS = @CXXFLAGS@ @DEFS@ @OPTIONS@ -I$(GOOSRCDIR) -I$(LTKSRCDIR) -I$(srcdir) @X_CFLAGS@ @Xpm_CFLAGS@
+CXXFLAGS = @CXXFLAGS@ @DEFS@ @OPTIONS@ `gnome-config --cflags gnomeui` -I$(srcdir) @X_CFLAGS@
XLIBS = @Xpm_LIBS@ @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@
OTHERLIBS = @LIBS@
#------------------------------------------------------------------------
+all: gpdf
+
all: xpdf$(EXE) pdftops$(EXE) pdftotext$(EXE) pdfinfo$(EXE) \
pdftopbm$(EXE) pdfimages$(EXE)
GfxState.o Lexer.o Link.o LTKOutputDev.o Object.o OutputDev.o \
Page.o Params.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
TextOutputDev.o XOutputDev.o XRef.o xpdf.o
+
+GPDF_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
+ GfxState.o Lexer.o Link.o GOutputDev.o Object.o OutputDev.o \
+ Page.o Params.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
+ TextOutputDev.o XOutputDev.o XRef.o gpdf.o
+
XPDF_LIBS = -L$(LTKLIBDIR) -lLTK -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
+GPDF_LIBS = `gnome-config --libs gnomeui`
+
+gpdf: $(GPDF_OBJS)
+ $(CXX) $(CXXFLAGS) -o gpdf $(GPDF_OBJS) $(GPDF_LIBS)
+
xpdf$(EXE): $(XPDF_OBJS)
$(CXX) $(CXXFLAGS) -o xpdf$(EXE) $(XPDF_OBJS) $(XPDF_LIBS)
$(STRIP) xpdf$(EXE)
--- /dev/null
+//========================================================================
+//
+// xpdf.cc
+//
+// Copyright 1996 Derek B. Noonburg
+// Copyright 1999 Miguel de Icaza
+//
+//========================================================================
+
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stddef.h>
+#include <string.h>
+#include <gnome.h>
+#include "gtypes.h"
+#include "GString.h"
+#include "parseargs.h"
+#include "gfile.h"
+#include "gmem.h"
+#include "Object.h"
+#include "Stream.h"
+#include "Array.h"
+#include "Dict.h"
+#include "XRef.h"
+#include "Catalog.h"
+#include "Page.h"
+#include "Link.h"
+#include "PDFDoc.h"
+#include "XOutputDev.h"
+#include "PSOutputDev.h"
+#include "TextOutputDev.h"
+#include "Params.h"
+#include "Error.h"
+#include "config.h"
+
+int
+main (int argc, char *argv [])
+{
+ gnome_init ("GPDF", "1.0", argv, argv);
+
+ gtk_main ();
+}