"Fossies" - the Fresh Open Source Software Archive

Member "vfplot-1.0.15/src/libvfplot/Makefile" (7 Nov 2019, 2340 Bytes) of package /linux/privat/vfplot-1.0.15.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 1.0.14_vs_1.0.15.

    1 # Makefile for the module arrow
    2 # (c) J.J.Green 2008
    3 
    4 NAME = vfplot
    5 
    6 include ../Common.mk
    7 
    8 CFLAGS  += -Itmp -I../include $(DFLAG)
    9 LDFLAGS += -L. -l$(NAME)
   10 
   11 LIBOBJ = arrow.o vfplot.o domain.o units.o vector.o bbox.o \
   12 	 polyline.o aspect.o curvature.o hedgehog.o adaptive.o \
   13 	 evaluate.o ellipse.o matrix.o cubic.o polynomial.o \
   14 	 margin.o page.o dim0.o dim1.o dim2.o status.o \
   15 	 contact.o bilinear.o mt.o rmdup.o sagwrite.o sincos.o \
   16 	 sagread.o gstack.o garray.o graph.o paths.o potential.o \
   17 	 gstate.o
   18 
   19 LIBHDR = arrow.h vfplot.h error.h fill.h domain.h units.h \
   20 	 vector.h bbox.h polyline.h aspect.h curvature.h \
   21 	 hedgehog.h adaptive.h limits.h evaluate.h ellipse.h \
   22 	 matrix.h cubic.h polynomial.h paths.h margin.h \
   23 	 page.h dim0.h dim1.h dim2.h status.h nbs.h contact.h \
   24 	 bilinear.h mt.h rmdup.h sagwrite.h sagread.h \
   25 	 sincos.h gstack.h garray.h graph.h flag.h macros.h \
   26 	 constants.h potential.h gstate.h
   27 
   28 LIB = lib$(NAME).a
   29 
   30 MAN5PAGES = sag.5 dom.5 vgs.5 vfplot-povray.5
   31 
   32 ifdef WITH_PTHREAD_EXTRA
   33 
   34 LIBOBJ += pthreadextra.o
   35 LIBHDR += pthreadextra.h
   36 
   37 endif
   38 
   39 RUBBISH += *~ $(LIBOBJ) $(LIB)
   40 
   41 .PHONY : all test clean install
   42 
   43 all : $(LIB) $(MAN5PAGES)
   44 
   45 clean :
   46 	$(RM) $(RUBBISH)
   47 
   48 spotless : clean uninstall-local
   49 
   50 install :
   51 	$(INSTDIR) $(MAN5)
   52 	for file in $(MAN5PAGES) ; do \
   53 	  $(INSTDATA) $$file $(MAN5)/$$file ;\
   54 	done
   55 
   56 install-local : all
   57 	$(INSTDATA) $(LIB) ../lib/$(LIB)
   58 	ranlib ../lib/$(LIB)
   59 	for h in $(LIBHDR) ; do \
   60 	  $(INSTDATA) $$h ../include/vfplot/$$h ;\
   61 	done
   62 
   63 uninstall-local :
   64 	$(RM) ../lib/$(LIB)
   65 	for h in $(LIBHDR) ; do $(RM) ../include/vfplot/$$h ; done
   66 
   67 # program
   68 
   69 DTOBJ    = domain-test.o
   70 RUBBISH += $(DTOBJ) domain-test
   71 
   72 domain-test : $(DTOBJ) $(LIB)
   73 	$(CC) $(DTOBJ) $(LDFLAGS) $(LDLIBS) -o domain-test
   74 
   75 CTCOBJ   = contact-fvals.o matrix.o vector.o ellipse.o cubic.o polynomial.o
   76 RUBBISH += $(CTCOBJ) contact-fvals
   77 
   78 contact-fvals.o : contact.c
   79 	$(CC) contact.c $(CFLAGS) -DFVALS -c -o contact-fvals.o
   80 
   81 contact-fvals : $(CTCOBJ)
   82 	$(CC) $(CTCOBJ) $(LDLAGS) $(LDLIBS) -o contact-fvals
   83 
   84 BLTOBJ   = bilinear-test.o bbox.o
   85 RUBBISH += $(BLTOBJ) bilinear-test
   86 
   87 bilinear-test.o : bilinear.c
   88 	$(CC) bilinear.c $(CFLAGS) -DTEST -c -o bilinear-test.o
   89 
   90 bilinear-test : $(BLTOBJ)
   91 	$(CC) $(BLTOBJ) $(LDLAGS) $(LDLIBS) -o bilinear-test
   92 
   93 # library
   94 
   95 $(LIB) : $(LIBOBJ)
   96 	ar rs $(LIB) $(LIBOBJ)
   97 
   98 include ../DocBook.mk