op-flasher: use dynamic libflash

Replace the old statically linked snapshot of libflash with
the real shared library.

Resolves: openbmc/openbmc#542
Change-Id: I3b6f634d17951c714ebc571518ad5067eaf44e97
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/op-flasher/Makefile b/op-flasher/Makefile
index 6876ad0..2b2575b 100644
--- a/op-flasher/Makefile
+++ b/op-flasher/Makefile
@@ -1,14 +1,4 @@
 BINS=flasher
-EXTRA_OBJS+=progress.o \
-	    ast-sf-ctrl.o \
-	    libflash.o \
-	    libffs.o \
-	    arm_io.o
-ALL_CFLAGS+=-Ipflash
+LDLIBS+=-lflash
 include ../gdbus.mk
 include ../rules.mk
-
-%.o: pflash/%.c
-	$(CC) -c $(ALL_CFLAGS) -o $@ $<
-%.o: pflash/libflash/%.c
-	$(CC) -c $(ALL_CFLAGS) -o $@ $<