diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-12 21:03:57 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-12 21:03:57 +0000 |
commit | a44b9103bff26a3c537da63145f35f58a8b4b458 (patch) | |
tree | bfd6c0389354e2ad15bc59196e486ac83c8edc41 /net/ntop/files/Makefile.gdchart | |
parent | - Delete CVS directories in ${WRKSRC} properly (diff) |
- Fix graphs by: use bundled gdchart and use gd1 instead of gd2
- Get rid of interactive menu
- Rework build options
- Fix optional XML dumping support
PR: ports/60184
Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> (maintainer)
Notes
Notes:
svn path=/head/; revision=95683
Diffstat (limited to 'net/ntop/files/Makefile.gdchart')
-rw-r--r-- | net/ntop/files/Makefile.gdchart | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net/ntop/files/Makefile.gdchart b/net/ntop/files/Makefile.gdchart new file mode 100644 index 000000000000..9ff45345fc70 --- /dev/null +++ b/net/ntop/files/Makefile.gdchart @@ -0,0 +1,36 @@ +GDC_INCL = . +GD_INCL = $(LOCALBASE)/include/gd +GD_LIB = $(LOCALBASE)/lib + +AR=ar +RANLIB = ranlib + +all: libgdchart.a + +# --- compile the lib --- +price_conv.o: price_conv.c + $(CC) $(CFLAGS) -c price_conv.c + +gdc.o: gdc.c gdc.h + $(CC) -I$(GD_INCL) -I$(GDC_INCL) $(CFLAGS) -c gdc.c + +gdc_pie.o: $(GDC_INCL)/gdc.h $(GDC_INCL)/gdcpie.h gdc_pie.c + $(CC) -I$(GD_INCL) -I$(GDC_INCL) $(CFLAGS) -c gdc_pie.c + +gdchart.o: $(GDC_INCL)/gdc.h $(GDC_INCL)/gdchart.h gdchart.c + $(CC) -I$(GD_INCL) -I$(GDC_INCL) $(CFLAGS) -c gdchart.c + +libgdchart.a: gdc.o gdc_pie.o gdchart.o price_conv.o + $(AR) rc libgdchart.a gdc.o gdc_pie.o gdchart.o price_conv.o + @if [ -x $(RANLIB) ] ; then \ + $(RANLIB) libgdchart.a; \ + fi; + +install: + +# --- clean --- +clean: + rm -f *.o gdc_samp1 gdc_samp2 gdc_pie_samp libgdchart.a + cd $(GD_LIB) ; $(MAKE) -f Makefile clean + +distclean: clean |