# Makefile for PDFlib tests
#
# modified for Amiga SAS/C 68k by ARK (28/Nov/99)
#

VERSION = @VERSION@

SHELL = @SHELL@
INSTALL = @INSTALL@

srcdir = /test

INCDIR  =
CC      = SC
CCOPT   =
LD      = SLINK LIB:c.o
LDOPT   =
OBJ     = o
EXE     =
RM      = #delete
AR      = oml
AROPTS  =
RANLIB  =
PDFLIB  = /lib/libpdf.lib
LIBS    = $(PDFLIB)

LDFLAGS =

.SUFFIXES: .c

.c.o:
        $(CC) $(CFLAGS) $(DEFINES) $<

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

SRC     = \
        $(srcdir)/pdftest.c

OBJS    = \
        $(srcdir)/pdftest.$(OBJ)

all:    pdftest$(EXE)

test: pdftest$(EXE)
        LD_LIBRARY_PATH=../pdflib ./pdftest

pdftest$(EXE): pdftest.$(OBJ) $(PDFLIB)

                SLINK LIB:c.o pdftest.o /util/getopt.o LIB $(PDFLIB) LIB:scm.lib LIB:sc.lib LIB:amiga.lib TO pdftest SC SD ND

clean:
        -$(RM) pdftest$(EXE) pdftest*.pdf $(OBJS)

maintainer-clean: clean
        -$(RM) Makefile.in.bak

depend:
        cp Makefile.in Makefile.in.bak
        sed '/^# Automatically generated dependencies/q' Makefile.in.bak >Makefile.in
        $(CC) $(CFLAGS) -MM $(SRC)>>Makefile.in

# Automatically generated dependencies
pdftest.o: pdftest.c /pdflib/pdflib.h
