#
# Makefile for docview example (UNIX).
-top_srcdir = @top_srcdir@
+top_srcdir = @top_srcdir@/..
top_builddir = ../..
-
-VPATH = :$(top_srcdir)/samples/docview
+program_dir = samples/docview
PROGRAM=docview
-OBJECTS=$(PROGRAM).o doc.o view.o
+OBJECTS =$(PROGRAM).o doc.o view.o
+DEPFILES=$(PROGRAM).d doc.d view.d
+
+RESOPTIONS=-i $(top_srcdir)/$(program_dir) chart.r doc.r docview.r mondrian.r -c WXMA
+SETOPTIONS=-a C
include ../../src/makeprog.env
+@IF_GNU_MAKE@-include $(DEPFILES)