# Makefile for PDFlib clients
# $Id: Makefile.in,v 1.17 2001/03/29 09:12:56 tm Exp $

LIBPDF		= lib@l@
SHELL		= @SHELL@
INSTALL		= @INSTALL@
INSTALL_DATA 	= @INSTALL_DATA@
srcdir		= @srcdir@
top_builddir	= ..
VPATH		= @srcdir@
EXE		= @EXEEXT@
OBJ		= @OBJEXT@
CC		= @CC@
RM      	= @RM@
LIBTOOL		= ../libtool --silent
PDFLIBLINK	= @PDFLIBLINK@

CFLAGS		= -I../pdflib @DEFS@ @DEFINES@
LDFLAGS		= @LDFLAGS@

.SUFFIXES: .c .$(OBJ) .lo

.c.lo:
	$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $<

.c.$(OBJ):
	$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $<

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

SRC	= \
	$(srcdir)/pdfimpose.c	\
	$(srcdir)/pdfimage.c	\
	$(srcdir)/text2pdf.c

OBJS	= \
	$(srcdir)/pdfimpose.$(OBJ)	\
	$(srcdir)/pdfimage.$(OBJ)	\
	$(srcdir)/text2pdf.$(OBJ)

all:	 pdfimpose$(EXE) pdfimage$(EXE) text2pdf$(EXE)

.PHONY: clean

pdfimpose$(EXE): pdfimpose.lo ../pdflib/pdflib.h ../pdflib/libpdf.la
	$(LIBTOOL) --mode=link $(CC) -static $(LDFLAGS) -o $@ pdfimpose.lo $(PDFLIBLINK)

pdfimage$(EXE): pdfimage.lo ../pdflib/pdflib.h ../pdflib/libpdf.la
	$(LIBTOOL) --mode=link $(CC) -static $(LDFLAGS) -o $@ pdfimage.lo $(PDFLIBLINK)

text2pdf$(EXE): text2pdf.lo ../pdflib/pdflib.h ../pdflib/libpdf.la
	$(LIBTOOL) --mode=link $(CC) -static $(LDFLAGS) -o $@ text2pdf.lo $(PDFLIBLINK)

clean:
	-$(RM) *.$(OBJ) *.lo *.la pdfimpose$(EXE) pdfimage$(EXE) text2pdf$(EXE) *.bak .libs

dummy:
