
#========================================================================
#
# Apdf Makefile
#
# Copyright 1999 Emmanuel Lesueur
#
#========================================================================

srcdir = ../../xpdf

GOOSRCDIR = $(srcdir)/../goo
GOOLIBDIR = ../goo

CXXFLAGS = -m68020 -fomit-frame-pointer -noixemul -O2 -DNO_PRINT_COMMANDS -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1  -DA4_PAPER -DUSE_GZIP -I$(GOOSRCDIR) -I$(srcdir) -I/gg/include/g++

OTHERLIBS =

CXX = gcc
STRIP = strip

LIBPREFIX = lib
EXE = 

#------------------------------------------------------------------------

%.o: $(srcdir)/%.cc
	$(CXX) $(CXXFLAGS) -c $<

%.o: $(srcdir)/%.c
	$(CXX) $(CXXFLAGS) -c $<

#------------------------------------------------------------------------

CXX_SRC = \
	$(srcdir)/mystdio.cc \
	$(srcdir)/Array.cc \
	$(srcdir)/Catalog.cc \
	$(srcdir)/Dict.cc \
	$(srcdir)/Error.cc \
	$(srcdir)/Gfx.cc \
	$(srcdir)/GfxFont.cc \
	$(srcdir)/GfxState.cc \
	$(srcdir)/ImageOutputDev.cc \
	$(srcdir)/Lexer.cc \
	$(srcdir)/Link.cc \
	$(srcdir)/Object.cc \
	$(srcdir)/OutputDev.cc \
	$(srcdir)/Page.cc \
	$(srcdir)/Parser.cc \
	$(srcdir)/PBMOutputDev.cc \
	$(srcdir)/PDFDoc.cc \
	$(srcdir)/PSOutputDev.cc \
	$(srcdir)/Stream.cc \
	$(srcdir)/TextOutputDev.cc \
	$(srcdir)/XRef.cc \
	$(srcdir)/Apdf.c \
	$(srcdir)/Apdfcommon.cc \
	$(srcdir)/AOutputDev.cc \
	$(srcdir)/FontOutputDev.cc \
	$(srcdir)/AGfx.cc \
	$(srcdir)/poly.cc

#------------------------------------------------------------------------

apdfnofpu: Apdf

all: apdfnofpu

#------------------------------------------------------------------------

APDF_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
	TextOutputDev.o AOutputDev.o XRef.o AGfx.o \
	GfxState.o Lexer.o Link.o Object.o OutputDev.o mystdio.o \
	Page.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
	Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o
APDF_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm

Apdf: $(APDF_OBJS)
	$(CXX) $(CXXFLAGS) -o Apdf /gg/lib/libnix/swapstack.o $(APDF_OBJS) $(APDF_LIBS)
	$(STRIP) Apdf

clean:
	rm -f $(APDF_OBJS) Apdf *.bak

#------------------------------------------------------------------------

depend:
	cp Makefile Makefile.bak
	sed '/^#----- dependences -----/q' Makefile.bak >Makefile
	$(CXX) $(CXXFLAGS) -MM $(CXX_SRC) >>Makefile

#----- dependences -----
mystdio.o: ../../xpdf/mystdio.cc ../../xpdf/mystdio.h \
 ../../xpdf/../goo/gmem.h
Array.o: ../../xpdf/Array.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h
Catalog.o: ../../xpdf/Catalog.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/Page.h ../../xpdf/Error.h \
 ../../xpdf/config.h ../../xpdf/Link.h ../../xpdf/Catalog.h
Dict.o: ../../xpdf/Dict.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/XRef.h
Error.o: ../../xpdf/Error.cc ../../xpdf/../goo/gtypes.h \
 ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h
Gfx.o: ../../xpdf/Gfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
 ../../xpdf/GfxFont.h ../../xpdf/GfxState.h ../../xpdf/OutputDev.h \
 ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h \
 ../../xpdf/Gfx.h
GfxFont.o: ../../xpdf/GfxFont.cc ../../xpdf/../goo/GString.h \
 ../../xpdf/../goo/gmem.h ../../xpdf/../goo/gfile.h \
 ../../xpdf/../goo/gtypes.h ../../xpdf/config.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/Params.h \
 ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
GfxState.o: ../../xpdf/GfxState.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/GfxState.h
ImageOutputDev.o: ../../xpdf/ImageOutputDev.cc \
 ../../xpdf/../goo/gmem.h ../../xpdf/config.h ../../xpdf/Error.h \
 ../../xpdf/GfxState.h ../../xpdf/../goo/gtypes.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/GString.h ../../xpdf/Array.h \
 ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/ImageOutputDev.h \
 ../../xpdf/OutputDev.h
Lexer.o: ../../xpdf/Lexer.cc ../../xpdf/Lexer.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
 ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
 ../../xpdf/Error.h ../../xpdf/config.h
Link.o: ../../xpdf/Link.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Error.h ../../xpdf/config.h \
 ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
 ../../xpdf/Link.h
Object.o: ../../xpdf/Object.cc ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
 ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
 ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
OutputDev.o: ../../xpdf/OutputDev.cc ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
 ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
 ../../xpdf/GfxState.h ../../xpdf/OutputDev.h
Page.o: ../../xpdf/Page.cc ../../xpdf/Object.h ../../xpdf/mystdio.h \
 ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
 ../../xpdf/Gfx.h ../../xpdf/Error.h ../../xpdf/config.h \
 ../../xpdf/Params.h ../../xpdf/Page.h
Parser.o: ../../xpdf/Parser.cc ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
 ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
 ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/Error.h \
 ../../xpdf/config.h
PBMOutputDev.o: ../../xpdf/PBMOutputDev.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
 ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
 ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Params.h \
 ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
 ../../xpdf/OutputDev.h
PDFDoc.o: ../../xpdf/PDFDoc.cc ../../xpdf/../goo/GString.h \
 ../../xpdf/config.h ../../xpdf/Page.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/gmem.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/Catalog.h ../../xpdf/XRef.h \
 ../../xpdf/Link.h ../../xpdf/OutputDev.h ../../xpdf/Params.h \
 ../../xpdf/Error.h ../../xpdf/PDFDoc.h
PSOutputDev.o: ../../xpdf/PSOutputDev.cc ../../xpdf/../goo/GString.h \
 ../../xpdf/config.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
 ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
 ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
 ../../xpdf/Error.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
 ../../xpdf/Catalog.h ../../xpdf/Page.h ../../xpdf/PSOutputDev.h \
 ../../xpdf/OutputDev.h
Stream.o: ../../xpdf/Stream.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/Stream-CCITT.h
TextOutputDev.o: ../../xpdf/TextOutputDev.cc \
 ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
 ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
 ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
 ../../xpdf/TextOutputFontInfo.h
XRef.o: ../../xpdf/XRef.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
 ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
Apdf.o: ../../xpdf/Apdf.c ../../xpdf/config.h ../../xpdf/AComm.h
Apdfcommon.o: ../../xpdf/Apdfcommon.cc ../../xpdf/../goo/parseargs.h \
 ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/GString.h \
 ../../xpdf/../goo/gmem.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
 ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
 ../../xpdf/XRef.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
 ../../xpdf/Link.h ../../xpdf/PDFDoc.h ../../xpdf/AOutputDev.h \
 ../../xpdf/config.h ../../xpdf/OutputDev.h ../../xpdf/AGfx.h \
 ../../xpdf/poly.h ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
 ../../xpdf/ImageOutputDev.h ../../xpdf/FontOutputDev.h \
 ../../xpdf/GfxFont.h ../../xpdf/Error.h ../../xpdf/AComm.h
AOutputDev.o: ../../xpdf/AOutputDev.cc ../../xpdf/../goo/gmem.h \
 ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
 ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
 ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/TextOutputDev.h \
 ../../xpdf/OutputDev.h ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h \
 ../../xpdf/poly.h ../../xpdf/FontOutputDev.h
FontOutputDev.o: ../../xpdf/FontOutputDev.cc \
 ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
 ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
 ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
 ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
 ../../xpdf/Stream.h ../../xpdf/FontOutputDev.h ../../xpdf/OutputDev.h \
 ../../xpdf/XOutputFontInfo.h
AGfx.o: ../../xpdf/AGfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/AGfx.h \
 ../../xpdf/poly.h
poly.o: ../../xpdf/poly.cc ../../xpdf/poly.h
