# $Id$ # Copyright (C) 1997-2000, 2004 Bernhard Reiter # # The programm is Free Software published under the GNU GPL v>=2 # and comes without any warranty or fitness for a particular purpose. # you have to change the following paths to where you have installed plotutils BASE=/usr PLOTLIBPATH=$(BASE)/lib PLOTBINPATH=$(BASE)/bin PLOTINCLUDEPATH=$(BASE)/include PLOT2X=$(PLOTBINPATH)/plot -T X CC=gcc -Wall -ansi-strict CFLAGS= -I$(PLOTINCLUDEPATH) #CFLAGS= -g -I$(PLOTINCLUDEPATH) -DDEBUG LDFLAGS= -L$(PLOTLIBPATH) # for OSF1/alpha 4.0d's cc, try #CC=cc -w0 -std1 all: piechart test test:: piechart probe.dat probe.dat echo 'Bernhard 50' >>probe.dat echo 'Cliff 20' >>probe.dat echo 'Joe Box 10' >>probe.dat piechart: piechart.c $(PLOTLIBPATH)/libplot.so $(CC) $(CFLAGS) $(LDFLAGS) \ piechart.c -o $@ -lplot -lm