top_srcdir = @top_srcdir@
include ../Makefile.common
-DEVICES = devices/file.$(O) devices/swf.$(O) devices/render.$(O)
+DEVICES = devices/file.$(O) devices/swf.$(O) devices/render.$(O) #devices/opengl.$(O)
-all: librfxswf$(A) q.$(O) mem.$(O) os.$(O) gfxtools.$(O) gfxfont.$(O) art/libart$(A) png.$(O) mp3.$(O) wav.$(O) $(DEVICES)
+all: librfxswf$(A) libpdf$(A) q.$(O) mem.$(O) os.$(O) gfxtools.$(O) gfxfont.$(O) art/libart$(A) png.$(O) mp3.$(O) wav.$(O) $(DEVICES)
lame_objects = @lame_objects@
actioncompiler_objects = action/assembler.$(O) action/compile.$(O) action/lex.swf4.$(O) action/lex.swf5.$(O) action/libming.$(O) action/swf4compiler.tab.$(O) action/swf5compiler.tab.$(O) action/actioncompiler.$(O)
rfxswf_modules = modules/swfbits.c modules/swfaction.c modules/swfdump.c modules/swfcgi.c modules/swfbutton.c modules/swftext.c modules/swffont.c modules/swftools.c modules/swfsound.c modules/swfshape.c modules/swfobject.c modules/swfdraw.c modules/swfrender.c h.263/swfvideo.c
+libpdf$(A):
+ cd xpdf;$(MAKE);cd ..
+
bitio.$(O): bitio.c bitio.h
$(C) bitio.c -o $@
drawer.$(O): drawer.c drawer.h
$(C) devices/file.c -o devices/file.$(O)
devices/render.$(O): devices/render.c devices/render.h
$(C) devices/render.c -o devices/render.$(O)
+devices/opengl.$(O): devices/opengl.c devices/opengl.h
+ $(C) devices/opengl.c -o devices/opengl.$(O)
librfxswf$(A): Makefile rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) mem.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
$(AR) r librfxswf$(A) rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) mem.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)