all: ../lib/penplot.a

################# penplot.a ###############################
PEN_PLOT_OBJS   = $(PEN_PLOT_C_SRC:.c=.o) $(PEN_PLOT_F_OBJS)
PEN_PLOT_C_SRC  = ex.c penplot2.c
PEN_PLOT_F_OBJS = export.o contur.o penplot1.o dash1.o manyplot.o letter.o fix.o
fix.o:fix.f
penplot1.o:penplot1.f penplot.com
ex.o:ex.c
penplot2.o:penplot2.c
dash1.o:dash1.f penplot.com
manyplot.o:manyplot.f penplot.com
letter.o:letter.f penplot.com
contur.o:contur.f
export.o:export.f penplot.com

../lib/penplot.a: $(PEN_PLOT_OBJS)
	-mkdir ../lib
	$(AR) $@ $?
	$(RANLIB) $@
	echo "Done building $@"