# dvipdfm 0.13.2b for Amiga
# Makefile automatically generated by MKMK V6.55
# Thu Jan 11 23:27:59 2001
#

CFLAGS= IDIR "" DEF FOPEN_RBIN_MODE="rb" DEF FOPEN_WBIN_MODE="wb" DEF FOPEN_R_MODE="r" DEF FOPEN_W_MODE="w" DEF true=!0 \
        DATA f OPT PARM r
OBJS0= pdfobj.o pdfparse.o mem.o mfileio.o jpeg.o numbers.o
OBJS= dvipdfm.o vf.o type1.o tpic.o ttf.o tfm.o thumbnail.o t1crypt.o psspecial.o \
      psimage.o pngimage.o pkfont.o pdfspecial.o pdfdoc.o \
      pdfdev.o mpost.o htex.o epdf.o \
      encodings.o dvi.o colorsp.o $(OBJS0)

all: dvipdfm ebb ascii85

dvipdfm: $(OBJS) kpathsea/kpathsea.o
	sc link $(OBJS) kpathsea/kpathsea.o MATH s

ebb: ebb.o $(OBJS0) kpathsea/kpathsea.o
	sc link $< $(OBJS0) kpathsea/kpathsea.o MATH s

ascii85: ascii85.o
	sc link $<

vf.o: vf.c system.h mfileio.h pdflimits.h numbers.h mem.h error.h tfm.h \
      pdfdev.h dvi.h vf.h config.h dvicodes.h pdfobj.h

type1.o: type1.c system.h mem.h error.h mfileio.h pdfobj.h numbers.h type1.h \
         tfm.h pdfparse.h pdflimits.h t1crypt.h twiddle.h encodings.h \
         standardenc.h

tpic.o: tpic.c system.h mem.h mfileio.h tpic.h pdfparse.h pdfdoc.h dvi.h \
        numbers.h pdfobj.h error.h pdfdev.h

ttf.o: ttf.c config.h ttf.h system.h mem.h error.h mfileio.h pdfobj.h \
       numbers.h tfm.h pdflimits.h twiddle.h encodings.h macglyphs.h

tfm.o: tfm.c system.h mem.h error.h mfileio.h pdflimits.h numbers.h tfm.h \
       config.h

thumbnail.o: thumbnail.c system.h config.h mfileio.h mem.h pdfobj.h \
             thumbnail.h pngimage.h numbers.h

t1crypt.o: t1crypt.c t1crypt.h

psspecial.o: psspecial.c system.h mem.h mfileio.h psspecial.h pdfparse.h \
             pdfspecial.h psimage.h mpost.h pdfdoc.h numbers.h pdfobj.h

psimage.o: psimage.c system.h config.h mem.h mfileio.h pdfobj.h psimage.h \
           epdf.h numbers.h pdfspecial.h

pngimage.o: pngimage.c system.h config.h mem.h pdfobj.h

pkfont.o: pkfont.c system.h mem.h error.h mfileio.h numbers.h pkfont.h \
          pdfobj.h pdflimits.h tfm.h# ctype.h

pdfspecial.o: pdfspecial.c system.h mem.h mfileio.h numbers.h dvi.h \
              pdflimits.h pdfspecial.h pdfobj.h pdfdoc.h pdfdev.h pdfparse.h \
              jpeg.h epdf.h mpost.h psimage.h config.h pngimage.h error.h

pdfparse.o: pdfparse.c system.h mem.h mfileio.h numbers.h dvi.h pdfparse.h \
            pdfspecial.h pdfobj.h pdfdoc.h pdfdev.h error.h
	$(CC) $(CFLAGS) DATA n $<

pdfobj.o: pdfobj.c system.h config.h mem.h error.h mfileio.h pdflimits.h \
          pdfobj.h pdfspecial.h pdfparse.h twiddle.h numbers.h
	$(CC) $(CFLAGS) DATA n $<

pdfdoc.o: pdfdoc.c system.h config.h mem.h error.h mfileio.h numbers.h dvi.h \
          pdflimits.h pdfobj.h pdfdev.h pdfdoc.h pdfspecial.h thumbnail.h

pdfdev.o: pdfdev.c config.h system.h mem.h error.h mfileio.h numbers.h dvi.h \
          tfm.h pdfdev.h pdfdoc.h pdfobj.h type1.h ttf.h pkfont.h \
          pdfspecial.h pdfparse.h tpic.h htex.h mpost.h psspecial.h colorsp.h \
          pdflimits.h twiddle.h encodings.h colors.h

numbers.o: numbers.c system.h error.h mfileio.h numbers.h
	$(CC) $(CFLAGS) DATA n $<

mpost.o: mpost.c system.h mem.h error.h mfileio.h dvi.h pdfobj.h pdfspecial.h \
         pdfparse.h mpost.h pdflimits.h pdfdev.h pdfdoc.h numbers.h

mfileio.o: mfileio.c system.h mfileio.h error.h numbers.h
	$(CC) $(CFLAGS) DATA n $<

mem.o: mem.c mem.h
	$(CC) $(CFLAGS) DATA n $<

jpeg.o: jpeg.c system.h mem.h mfileio.h numbers.h dvi.h jpeg.h pdfobj.h \
        pdfspecial.h error.h pdfdev.h
	$(CC) $(CFLAGS) DATA n $<

htex.o: htex.c system.h mem.h mfileio.h dvi.h htex.h pdfparse.h pdfdoc.h \
        numbers.h error.h pdfdev.h pdfobj.h

epdf.o: epdf.c system.h mem.h mfileio.h pdfobj.h pdfdoc.h pdfspecial.h epdf.h \
        numbers.h

encodings.o: encodings.c pdflimits.h pdfobj.h mem.h error.h mfileio.h \
             pdfparse.h encodings.h winansi.h system.h numbers.h

dvipdfm.o: dvipdfm.c config.h system.h mem.h mfileio.h dvi.h pdfdoc.h \
           pdfdev.h encodings.h type1.h ttf.h colorsp.h pdfspecial.h \
           pdfparse.h vf.h pkfont.h thumbnail.h psimage.h tfm.h numbers.h \
           error.h pdfobj.h

dvi.o: dvi.c system.h mem.h error.h mfileio.h numbers.h dvi.h dvicodes.h \
       pdflimits.h pdfdev.h pdfdoc.h tfm.h vf.h pdfobj.h

colorsp.o: colorsp.c system.h mem.h pdfdev.h pdfparse.h pdfspecial.h \
           dvipdfm.h numbers.h pdfobj.h

ebb.o: ebb.c system.h mem.h mfileio.h numbers.h pdfobj.h jpeg.h pdfparse.h \
       config.h pngimage.h pdfspecial.h
	$(CC) $(CFLAGS) DATA n $<

ascii85.o: ascii85.c
	$(CC) $(CFLAGS) DATA n PARM r $<


clean:
	-delete $(OBJS) kpathsea/kpathsea.o (ebb|ascii85).o \#?.lnk

archive: clean
	lha -r u RAM:dvipdfm // dvipdfm dvipdfm.info
