# local include files shared by graphics LINC= $(fricas_src_srcdir)/graph/include # global include files shared by everyone GINC= $(fricas_src_srcdir)/include build_libdir = $(abs_top_builddir)/src/lib bin_PROGRAMS = view2D$(EXEEXT) view2D_sources = buttons2d.c control2d.c graph2d.c main2d.c pot2d.c \ process2d.c spadAction2d.c stuff2d.c viewport2D.c write2d.c view2D_objects = $(view2D_sources:.c=.$(OBJEXT)) Gfun_objects = ../Gdraws/Gfun.$(OBJEXT) view2D_LDADD = -L$(build_libdir) -lspad view2D_DEPENDENCIES = $(Gfun_objects) $(build_libdir)/libspad.a subdir = src/graph/view2D/ FRICAS_CFLAGS = ${CCF} ${FRICAS_X11_CFLAGS} -I${LINC} -I${GINC} -I$(srcdir) \ $(fricas_includes) GDRAW_OBJS = ../Gdraws/Gfun.$(OBJEXT) HEADERS = $(srcdir)/header2.h $(srcdir)/globals2.h ${LINC}/view2D.h \ ${LINC}/actions.h ${LINC}/viewCommand.h ${GINC}/view.h ${LINC}/G.h .PHONY: all all-ax all-view2D all: all-ax all-ax all-view2D: stamp @ echo finished $(builddir) stamp: $(fricas_target_libdir)/view2D$(EXEEXT) -rm -f stamp $(STAMP) stamp $(fricas_target_libdir)/view2D$(EXEEXT): $(view2D_objects) $(view2D_DEPENDENCIES) ${CC} $(view2D_objects) $(Gfun_objects) -o $@ \ $(view2D_LDADD) $(FRICAS_X11_LDFLAGS) -lm .PRECIOUS: %.$(OBJEXT) %.$(OBJEXT): $(srcdir)/%.c $(fricas_c_macros) $(HEADERS) ${CC} -c $(CFLAGS) $(FRICAS_CFLAGS) -o $@ $< mostlyclean-local: -rm -f $(view2D_objects) -rm -f stamp clean-local: mostlyclean-local -rm -f $(fricas_target_libdir)/view2D$(EXEEXT) distclean-local: clean-local